High-Speed Digitizers

cancel
Showing results for 
Search instead for 
Did you mean: 

How to trigger a Digitizer with DAQmx's Counter?

Need helps.
There exist a PXI-6224 DAQ to output a pulse, and a PXI-5122 High speed digitizer to make a acquisition.
I need the pulse to drive testing module by its rising edge, and start 5122's acquisition on falling edge. when the pulse reaches its falling edge,the signal acquired by 5122 is going to rise from 0 to 30 thousand V.
But,my problem is,the signal before the falling edge is remain 0. So,how can i find the point the pulse falls? I need it to be the digital edge ref trigger of 5122,and make a measurement about the rising time from 0 to 15 thousand.
I try to export the Counter to PXI_Trig line,and config 5122's trigger as RTSI. Sometimes it works,but sometimes fetches nothing.
Attachment are the vi and a sketch map.
Thanks.
=======================
Windows XP SP2+LabVIEW 7.1
Download All
0 Kudos
Message 1 of 4
(7,382 Views)
Hello,
 
You basically have this VI set up correctly to trigger your digitizer off of your counter's falling edge.  The only problem is how you are starting your tasks.  When I change the pulse high time to 1 second, I would expect the waveform graph to update 1 second after I start the VI (when the falling edge occurs).  However, I still see the graph update immediately. 
 
What is happening here is that the route between the Counter output and PXI_Trig0 is being connected when DAQmx Start Task is called.  When this route is connected some glitching occurs on the RTSI line which causes the digitizer (which has already started and is awaiting a trigger) to false trigger.  I verified this by removing the DAQmx Start Task and replacing it with a DAQmx Control Task set to commit.  When I commit this Task, the digitizer triggers, even though the counter never generates a pulse.
 
To work around this problem, I inserted a DAQmx Control Task set to commit before the sequence structure and the niScope Initiate Acquisition.  This way, the route is connected before the digitizer task is started, and the digitizer misses the glitches which caused the false trigger before.
 
See the attached VI which demonstrates this fix.  I increased the pulse high time to 1 second so you could observe the time between the start of the VI and the falling edge of the pulse.  I also put the DAQmx Control.vi in a case structure so you can observe the difference in behavior with and without that function.
 
I hope this helps.  Please let me know if you have any further questions.
 
Regards,
Sean Close
Product Support Engineer: High Speed Digitizers
Message 2 of 4
(7,371 Views)
many thanks to Sean:)
But your VI version is later than my current version.I have LV 8.2b23.Would you please save it as older version?
Or please attach a control image?
thank you again.
=======================
Windows XP SP2+LabVIEW 7.1
0 Kudos
Message 3 of 4
(7,351 Views)
Hi Sean,
I have corrected my VI as your advice,and it works well now.DAQmx Control Task.vi setting to commit is quite helpful.
Thank you very much:)
=======================
Windows XP SP2+LabVIEW 7.1
0 Kudos
Message 4 of 4
(7,342 Views)