05-16-2016 01:33 PM
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.
05-20-2016 11:28 AM
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?