Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

How to code a trigger delay using python (X series multifunctional DAQ)

Hello,

 

I am using the nidaqmx python library to read analog signals from my DAQ. I would like to introduce a delay to the trigger. 

 

The documentation is not clear to me how to code this. Below is my code but I do not believe it is doing anything. I need to also set the units of the delay and I would like to do a 200-ms delay.

 

task = nidaqmx.Task() 
task.triggers.start_trigger.cfg_anlg_edge_start_trig(trig_name,trigger_slope=nidaqmx.constants.Slope.RISING, trigger_level = 3, task.triggers.start_trigger.delay = 2000)
0 Kudos
Message 1 of 1
(928 Views)