Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Tektronix TDS3000 Series Acqusition Status VI missing

Hello
 
I am using the downoaded Textronix TDS3000 series instrument drivers from NI.  I have noticed there is not a function to Query the Acquisition Status to see if it has compelted.  My issue is as follows:
 
 
Initiate the Acquisition
Stimulate the Trigger by opening a relay
{
Need some function here to see if Acqusition is complete!!!
}
Fetch Waveform.
 
The problem is that the waveform is NOT yet displayed on the Scope screen and the Fetch Waveform instead simply returns garbage data.  If I single step through the VI, and then wait to allow the Tektronix to display the waveform on the actual scope screen then it works fine.  Fetch Waveform has the following notes:
 
Note:
(1) In order for this VI to work the waveform must be displayed on the instrument.
(2) This is only used with Normal and Average Acquisition Types
(3) The instrument will return an error if you attempt to read more points than stored on the instrument.  Set the desired record length in the Configure Acquisition Record VI.
 
Any suggestions would be appreciated.
 
Thank you,
Paul Holzrichter
0 Kudos
Message 1 of 3
(3,770 Views)

According to the manual, you just need to issue the ACQ:STATE? query. If it returns anything other than 0, the acquisition is still in progress. 

I  just looked at the IVI driver for the scope, which does have an AcquisitionStatus function. It uses the ACQ:STATE? command. Don't know why the LabVIEW driver would be missing it.

0 Kudos
Message 2 of 3
(3,758 Views)
Thanks for pointing this out.  In drivers implemented without an Acquisition Status VI, you can typically increase the timeout of the Fetch VI to allow for the total time of your trigger and fetching of the data.  We will research this and may add this functionality to the driver (or make the Fetch VI more robust).  In the meantime, you can look at the Wait for Acquisition Complete VIs in the tkdpo4k and tkdpo7k LabVIEW drivers.  The implementation of these may be similar to what is needed for the TDS3000 series.
0 Kudos
Message 3 of 3
(3,751 Views)