LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

looking for an solution on pausing generation and acqusition

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,

Daniel S.
National Instruments
0 Kudos
Message 11 of 15
(690 Views)

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

Regards,


Daniel S.
National Instruments
0 Kudos
Message 12 of 15
(671 Views)
I prefer your second recommendation - pausing the acquisition at the same time when generation is pausing.  However, in that case, do I still need to acquire multi-record? I think single-record works, right? Do I have to use multi-record for my application? Please comment. Thanks a lot.

Tieling
0 Kudos
Message 13 of 15
(667 Views)
Hi Tieling,

In the case of using a pause trigger, you would not need to perform a multi-record acquisition. You would simply be pausing a single record acquisition.
Regards,
Daniel S.
National Instruments
0 Kudos
Message 14 of 15
(664 Views)

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.

 

 

 

0 Kudos
Message 15 of 15
(648 Views)