LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read trigger timestamps

Hi,

 

I have a VI which is supposed to output an analog waveform in response to a trigger on APFI1 (USB X-Series Card). This waveform is changed depending on the phase of my experiment. So during the first part it's just zeros, it then becomes a square pulse and a pulse train. My problem is now, that I need to keep track of when the triggers where elicited or how many triggers were done during the small timed while loop on the right, as I need to save it. The experiment is designed in a way, that the trigger rates vary depending on the signal outputted, so I want to see, whether more triggers occur if I output a pulsetrain instead of a square pulse (the pulses are not the trigger! the trigger is derived seperately). I spent hours getting the thing to at least allow retriggerable stimulation with different waveforms, but I just have no idea, how to monitor and log the trigger time stamps...

 

Thanks for your help!

 

Best,

Michael

 

ps: I guess it would be enough to connect the output start trigger to a counter and read this counter every time the 100 ms while loop runs. Unfortunately I have no idea how to do this...

Download All
0 Kudos
Message 1 of 3
(2,576 Views)

Hello Michael,

 

thanks for you request.

 

Unfortunately it is a little hard to see what the idea behind your VI is, as I find some contradictions between the VI and your description.

Could you update your VI with some comments on the single tasks, especially in the for-loop (in the same way as you did for the while loop) so it will be much easier for me to

understand your intentions.

If I know them I can build you an example (if non exists yet) how to produce your monitor.

 

Regards,

 

Eduard Gross

National Instruments

 

 

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

Hello Michael,

 

did you already find a solution for your problem or is it still actual?
Please make a post with a vi as requested so I can help you.

 

Regards,

Eduard Gross

National Instruments

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