Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

NI-VISA read timeout error using PyVisa

I am controlling a Tektronix DPO72994C oscilloscope with NI-VISA through a python wrapper (PyVisa). No matter what settings I use or how much delay I add, reading from the scope gives me a timeout error. The read theat fails is an attempt to read out the scope trace in ascii format. The syntax of the read command in python is:

raw = self.get('CURV?')

 

The error I get is:

pyvisa.errors.VisaIOError: VI_ERROR_TMO (-1073807339): Timeout expired before operation completed.

 

 

This used to be an intermittent error that I fixed by adding delays in my code at various locations. Now adding delays does not help, the read command always times out. Not sure what changed or if this is some kind of hardware error.

0 Kudos
Message 1 of 2
(4,935 Views)

What timeout are you currently specifying for that operation? How are you creating the delays that you mentioned? Is it only this command that times out or do other's do the same?

0 Kudos
Message 2 of 2
(4,885 Views)