Created
November 6, 2016 18:40
-
-
Save StefanD986/830ede22e5a2bad067862874eaef777e to your computer and use it in GitHub Desktop.
timeout error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--------------------------------------------------------------------------- | |
VisaIOError Traceback (most recent call last) | |
<ipython-input-20-8ed5ed3eed95> in <module>() | |
----> 1 device1_tcp.query('*IDN?') | |
/usr/local/lib/python3.5/site-packages/pyvisa/resources/messagebased.py in query(self, message, delay) | |
405 if delay > 0.0: | |
406 time.sleep(delay) | |
--> 407 return self.read() | |
408 | |
409 # Kept for backwards compatibility. | |
/usr/local/lib/python3.5/site-packages/pyvisa/resources/messagebased.py in read(self, termination, encoding) | |
330 if termination is None: | |
331 termination = self._read_termination | |
--> 332 message = self.read_raw().decode(enco) | |
333 else: | |
334 with self.read_termination_context(termination): | |
/usr/local/lib/python3.5/site-packages/pyvisa/resources/messagebased.py in read_raw(self, size) | |
304 logger.debug('%s - reading %d bytes (last status %r)', | |
305 self._resource_name, size, status) | |
--> 306 chunk, status = self.visalib.read(self.session, size) | |
307 ret += chunk | |
308 except errors.VisaIOError as e: | |
/usr/local/lib/python3.5/site-packages/pyvisa-sim/highlevel.py in read(self, session, count) | |
185 chunk, status = sess.read(count) | |
186 if status == constants.StatusCode.error_timeout: | |
--> 187 raise errors.VisaIOError(constants.VI_ERROR_TMO) | |
188 return chunk, status | |
189 except AttributeError: | |
VisaIOError: VI_ERROR_TMO (-1073807339): Timeout expired before operation completed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment