From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Exact timing of digital output after pressing trigger button

Hi All,

 

I am trying to write this VI that acquires analog input signals continuously until the user hits the "trigger" button. At that moment, the VI will save X number of pretriggered samples and issue a TTL signal at the same time to one of the digital output lines to trigger another device. I also want to display the analog input signal in realtime so that the user can decide when to trigger. I have ended up with the VI in the attachment.

 

However, it seems there is an unknown delay between when the "trigger" button is pressed and when the digital output TTL is issued. I have the acquisition run in a while loop until the user hits the trigger button, then the operation will exit the while loop and issue the TTL. I wonder if this is an inefficient way of doing things, and would like to ask if anyone has a better idea to do this task. Alternatively, if there is a way to know the precise delay between the timing of the last pre-triggered sample and the time the TTL is issued, it would be OK too.

 

Thank you very much!!!

0 Kudos
Message 1 of 3
(3,344 Views)

Duplicate thread.  Let's keep the discussion in that thread.

 

Lynn

0 Kudos
Message 2 of 3
(3,337 Views)

Ok, thanks, I just though I might have posted in the wrong place.

0 Kudos
Message 3 of 3
(3,334 Views)