07-25-2017 09:31 AM
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. How 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.
07-26-2017 09:29 AM
Check this example. It is not exactly what you want, but it shows how to add markers programmatically. Use it as a reference.