Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Generating interruptable pulse train

I have a PCI6071E board and I'd like to use its counters (DAQ-STC) as a triggered pulse generator as follows.
I get an 50% duty cycle pulse F ~ 10Hz (F is inaccurate). On each lo->hi edge I want to generate a train of 50 pulses using the counters.(*) If next trigger edge occurs before the train finishes, I'd like to immediately reset the current train (the output should be 0) and to start next one.

There is an example of how to generate a finite-length train, but it fails to treat the (*) condition. As far as I understood, there is no hardware "reload" to the DAQ-STC counter. Is there another solution ?

If it's impossible, is there any cheap dedicated counter board with an RTSI bus and an option to perform a hardware "realoa
d" ? Any other options to solve this problem ?

Thank you,
Sergey.
0 Kudos
Message 1 of 3
(3,439 Views)
Hello;

Unfortunatelly, you can't accomplish that task with the STC counter chip. The STC counter doesn't support triggering operations.
You will need to migrate to one of the 660x counter boards so you can catch the trigger edge.

As far as the hardware reset is concerned, there is no National Instruments device that support that operation. Once the pulse generation is started by the trigger pulse, it will run freely in hardware until it generates all pulses of the train. In case another trigger pulse comes while the pulse train is being generated, it will be ignored by the hardware.

Regards
Filipe A.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 3
(3,439 Views)
I've read about the 660x counters and found that there is something called z-index input. A pulse on it tells to the counter to reload some predefined value. If I "predefine" 0 - can it be used for restarting the pulse generation ?

Thank you,
Sergey.
0 Kudos
Message 3 of 3
(3,439 Views)