LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Time difference between one Ext Trig and multiple secondary triggers ?

An external device generates a 100 Hz square wave (primary). During
each 10 msec period, another device (secondary) generates multiple
pulses at random times. I want to determine the time, with respect to
each primary waveform's leading edge, when each and every of the
secondary pulses occurs. Not just the first secondary pulse.

Count Buffered Edges.vi example records times when multiple secondary
pulses occur, but there does not seems to be a way to set the counter
value to zero by the primary pulse (especially on STC cards).

The TIO example Two Edge Separation.vi only measures time between the
primary pulse and the first secondary pulse, not all secondary pulses.

The TIO Measure Position.vi fo
r encoder use mentions using the Z-index
on the gate pin to initialize the count value. Is there a way to
combine this with ability to record multiple buffreed time differences
?

I envision each 100 Hz leading edge resetting a counter (which is
counting a high frequency time base) to zero. Then each secondary
pulse latches that counter's value into memory.

For each count latched by the secondary pulses, it is not necessary to
know within which specific primary period it belonged to.

An alternative is to use two of the Count Buffered Edges.vi and record
the times of both primary and secondary pulses and take their time
difference in software.
0 Kudos
Message 1 of 2
(2,463 Views)
Answered on another thread...

http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HFORCEKWTID=75037:5&HOID=5065000000080000009EA20000&HExpertOnly=&UCATEGORY_0=_32_%24_12_&UCATEGORY_S=0

Ron
0 Kudos
Message 2 of 2
(2,463 Views)