I've been trying to setup a couple of programmes that will operate a fuel injector and a ccd camera for a university project.
Firstly, I need a programme that will generate two pulses of different width (I should be able to control the width) and a delay between them, ideally 1ms long.Both of the pulses will be generated by the same counter.I tried the simple solution of copying the existing vi I had for a single pulse (where I could control width and frequency of the pulse) and adding a wait function in between but I couldn't get the delay to go under 20ms.I have attached this attempt below (it's the ''Double Injection'' case).
Secondly, I need to create another programme -that I reckon will be very similar to the previous one- where I will generate two pulses (one for the injection and one for the camera), from two different counters, but the delay needs to be even lower, around 70 microseconds and very accurate. I don't know the specific specs of the computer, other than that the OS is W7. The DAQ card is a NI PCI 6071E connected to a terminal which in turn triggers a solenoid box that sends the voltage to the injector.
I should note that in order to measure the delay I used an oscilloscope. Thanks in advance for any ideas and suggestions.