07-28-2008 01:12 AM
Hi Tieling,
Unfortunately, you are correct that script triggers are only supported for generation. One method that you could try is to configure your
acquisition to use multi-records, with each record length being 1000 samples. You
can then export your script trigger to a PFI line (using the “niHSDIO Export
Signals” function found under NI-HSDIO»Acquisition»Configuration»Export Signal)
and use this PFI line as an advance trigger for your acquisition, as well as
the script trigger for generation. In this way, you will begin acquiring each record when the software script trigger is asserted.
In regards to discussing this issue over the phone, you may create a request online to speak to an applications engineer by going to www.ni.com/ask. Please note that doing this does require a valid service contract.
I hope this helps,
07-28-2008 10:06 AM
Hi Tieling,
Just to add to my previous post, another possible method to try for your application is similar to the above suggestion, but would use a pause trigger for your acquisition. To implement this, you can export the “Data Active Event” to a PFI line and use this as the pause trigger for your acquisition. This is similar to what you are currently using for your start trigger, only you will now be able to pause the acquisition while the generation is also paused.
Additionally, I have included a link below to a helpful article about High Speed Digital ATE and Stimulus Response, which should be helpful for your application.
National Instruments High-Speed Digital ATE and Stimulus
Response Features
http://zone.ni.com/devzone/cda/tut/p/id/3671
07-28-2008 10:30 AM
07-28-2008 10:54 AM
07-28-2008 06:37 PM
Hi Dan,
I have exported DATA READY EVENT to PFI3. then I connect PFI3 to PFI0, and config PFI0 as pause trigger for acquisition channel. The acquisition channel now has two triggers, one is start trigger, the other is pause trigger. Both trigger is connected to the exported DATA READY EVENT. start trigger is rising edge trigger, pause trigger is the low level triggle.
Everything is exactly as what you suggested. However, after I run it, I got following error after it executes the niHSDIO fetch waveform.
possible reason:
Some or all of the samples requested have not yet been acquired. To wait for the samples to become available, use a longer read timeout or read later in your program. If your session uses a trigger, make sure that your trigger is configured correctly.
If seems like the acquisition is not correctly paused. Can you help debug my problem here? I attached the new program here.