AnsweredAssumed Answered

Reading Agilent34972a Voltage Data using VISA Library and SCPI commands

Question asked by adaware on Apr 20, 2015
Latest reply on May 4, 2015 by adaware
Hi,
I am using VISA lib as wrapper over USB to communicate with Agilent34972a and using SCPI commands to read channels 101:116 as follows:
1. Reset device
*RST
2. 
SYST:REM
3. 
*CLS
4. Set channel numbers for scan
ROUT:SCAN (@101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116)
5. Set auto ranging on
SENSE:VOLT:DC:RANG:AUTO ON,(@101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116)
6. Set sampling time to 100ms
SENSE:VOLT:DC:APER 0.00001,(@101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116)
7.Trigger scan
TRIG:COUNT INF
8.Start read
READ?

I am observing that when I read USB port using viRead function at a interval of 100ms,
I do not get data each time for all channels. I get zeros. I have set timeout of 80ms for viRead so that I call poll it for every 100ms.

What is wrong in above approach?
Am I missing anything in configuring meter before starting readings?
Is there any better approach so that I can get all the data meter is collecting with very high sampling rate?

Please help me.
Thanks in advance.  

Outcomes