I am trying to read back data from a U2353A multichannel DAQ. I am getting an error message on WAVeform:DATA?
My SCPI.
++++++++++++++++++++++++++++++++++++++++++
(INVOKE Query with queryString = "MOD?")
(INVOKE Command with commandString = "ROUT:SCAN (@102)")
(INVOKE Command with commandString = "ROUT:CHAN:RANG 10, (@102)")
(INVOKE Command with commandString = "ROUT:CHAN:POL UNIP, (@102)")
(INVOKE Command with commandString = "ROUT:CHAN:STYP NRS, (@102)")
(INVOKE Command with commandString = "ACQ:SRAT 100000")
(INVOKE Command with commandString = "ACQ:POIN 1000")
(INVOKE Command with commandString = "DIG")
(Wait 1000ms)
(INVOKE Query with queryString = "WAVeform:DATA?")
+++++++++++++++++++++++++++++++++++++++++++++++++++
The problem.
Step Instrument Code Results
"(INVOKE Query with queryString = ""WAVeform:DATA?"")"
"COMException:VI_ERROR_TMO: A timeout occurred | CommunicationTimeoutException:SCPI connection attempt timed out"
All code works except the last line WAVeform:DATA?
Any thoughts?
Hi,
I found this example in the programming manual: to prevent timeout problem, the command WAV:DATA? will be send only when acquisition will be done.
Example
This example illustrates how the WAVeform:STATus? query is used to return the acquisition status of the instrument.
→ ROUT:SCAN (@101) This command sets the instrument to monitor channel 101.
→ ACQ:SRAT 1000 This command sets the analog input sampling rate to 1 kHz.
→ ACQ:POIN 1000 This command sets the instrument to acquire 1000 sample points..
→ DIG This command starts the single-shot acquisition process.
→ WAV:COMP? This query returns the acquisition status of the instrument.
← NO The returned value is NO, indicating that the data is still being captured.
→ WAV:COMP? → YES The returned value is YES, indicating that the single-shot acquisition process has completed.
→ WAV:DATA? This query returns the raw data acquired from AI channel 101.
← #800002000 ... The acquired data block is returned.
Yves