LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Triggering a button when a voltage pulse is detected?

I have a daq with a voltage pulse input of 5V (+/-0.2ish) that I am using as an event marker. It is a ~1 sec pulse  as shown in the attached photo. image.pngHow can I set a trigger in my while loop to place a data marker every time this is detected but also have it so that a user can input a marker whenever they like via a button?I have tried to use the peak detection function with varying thresholds but none of them seem to work (due to the noise maybe?) and I get multiple instances of True resulting in multiple markers placed each time the voltage is detected. The code i am using for this marker placement is pasted below as well. image.png

 

 

 

 

 

 

0 Kudos
Message 1 of 2
(2,296 Views)

Check this example. It is not exactly what you want, but it shows how to add markers programmatically. Use it as a reference.

0 Kudos
Message 2 of 2
(2,251 Views)