Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Triggerd acquisition with the Agilent 66319D DC power supply

    I followed the example BASIC code example using VISA writes and read.  The commands seem to write without error, but the fetch does times out even for small array sizes and configuring a long visa timeout value.  Has anyone successfully used this instrument function and have code they could share?  Thanks in advance
0 Kudos
Message 1 of 4
(3,735 Views)

Did you send INITiate command before sending FETCh?  In general, FETCh:XXX command family requires that the instrument had already finished an acquisition, because FETCh has no effect to initiate a new measurement.  Try use INITiate and then FETCh, or simply use MEASure command.

INIT:NAME ACQ
FETC:ARR:CURR?

0 Kudos
Message 2 of 4
(3,732 Views)
Thank you Makoto for your input. Yeah I did the INIT before the fetch; I copied the example word for word. I mucked around with the IVI drivers (for which there is a dearth of examples and documentation) from NI's web site and found a solution. I can't use the measure routine because the acquired data has to be triggered off a current level. Thanks again.
0 Kudos
Message 3 of 4
(3,730 Views)

> but the fetch does times out even for small array sizes and configuring a long visa timeout value

As for the operation timeout, does it mean your VISA Read action was timeout after FETCh, rather than VISA Write of FETCh?

After the timeout error, I recommend to try querying the error codes by SYSTem:ERRor? query.  It will help to see what is happening.  Mind that SYSTem:ERRor may return multiple unread error codes one-by-one, so try to repeat the SYSTem:ERRor? query. until it returns 0,"No error".  Then what error(s) were returned?

 

0 Kudos
Message 4 of 4
(3,727 Views)