LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Digital trigger on anolog edge

Hi,

 

If you wanted to get around the issue of a pulse being generated immediately if the input signal happens to be above the threshold when the pulse falls, you could use an additional counter.

 

Make the 1st counter be triggered off of the analog signal and make it have approximately the same period as your analog signal (for his signal it's a period of roughly 0.01 seconds). So then we have a digital pulse that happens at the same frequency of the analog signal. Then use this digital pulse to trigger another counter task (so set the source of the trigger of the 2nd counter task to be the 1st counter's output).

 

The 2nd counter task can have a high time of 0.03 seconds to achieve a frequency of ~30 Hz. The 2nd counter task will only trigger when the first counter is rising, so it wont matter if the 2nd counter falls low while the first counter is still high, it wont immediately trigger, it will instead wait until the next rising edge of the first counter.

 

Best regards,

Nicolas M.
National Instruments France


Journées Techniques LabVIEW 2012 : du 27 septembre au 22 novembre
2 sessions en parallèle : Débuter avec LabVIEW - Développer avec LabVIEW

0 Kudos
Message 11 of 11
(197 Views)