LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

retriggering output

I'm trying to set up my output so that it sends out 'x' amount of pulses per trigger. I tried using an if...else statement so that if signal was high then pulse would be sent out and if low, meaning no signal, nothing would be sent... however that didn't work... I've been browsing the forums and gathered that I should possibly be using a gate and a second counter? If this is so, are there any labwindows v7 code for 'E' series card?
0 Kudos
Message 1 of 2
(2,843 Views)
I think that the ideal solution for you would be to set up a retriggerable finite pulse train operation on one of your counters.

On your computer there are some examples in the C:\Program Files\National Instruments\CVI71\samples\daq\Ctr directory, then you might want to take a look at STCgenerateRepeatedTriggeredPulse
That should show you how to do a repeated triggered pulse. Now instead of doing a single pulse, you just need to generate a finite pulse train.

You can find an example of that here: Generating a Finite Pulse Train

Finally there is this example: Retriggerable Analog Input using CVI and E Series DAQ Boards
It does what you are trying to do, but applies the retriggerable finite pulse train as the clock for an analog operation. You could just strip out the parts for analog input operations.
0 Kudos
Message 2 of 2
(2,830 Views)