ValueError after a few hours of communication with a device
See original GitHub issueI am using pyvisa and the @py backend to control a vector signal generator. Everything runs fine for a while but sometimes the following error gets raised. Any pointers would be highly appreciated.
File "visa_client.py", line 20, in command
self.resource.write(command)
File "...\Python37-32\lib\site-packages\pyvisa\resources\messagebased.py", line 223, in write
count = self.write_raw(message.encode(enco))
File "...\Python37-32\lib\site-packages\pyvisa\resources\messagebased.py", line 201, in write_raw
return self.visalib.write(self.session, message)
File "...\Python37-32\lib\site-packages\pyvisa-py\highlevel.py", line 368, in write
ret = self.sessions[session].write(data)
File "...\Python37-32\lib\site-packages\pyvisa-py\tcpip.py", line 182, in write
flags, block)
ValueError: too many values to unpack (expected 2)
Error closing VISA link: wrong xid in reply 14206 instead of 14207
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:18 (11 by maintainers)
Top Results From Across the Web
SHTC3 Stops responding - Adafruit forums
After several hours (the amount of hours varies) I will stop receiving ... I see the following: "ValueError: No I2C device at address:...
Read more >How do I solve "ValueError: Found no graph nodes within the ...
I see three sub-questions. error "ValueError: Found no graph nodes within the requested polygon". no such error when using 20 sample points ...
Read more >pylablib.devices.Toptica package — pylablib 1.4.1 documentation
Toptica backend communication error ... Raises ValueError if the value is not present. serial ¶ ... Get the work hours (power on time...
Read more >ray.tune.tune — Ray 2.2.0 - the Ray documentation
Stopper``, which allows users to implement custom experiment-wide stopping (i.e., stopping an entire Tune run based on some time constraint). time_budget_s: ...
Read more >CircuitPython Basics: I2C and SPI - Digikey
The I2C, or inter-integrated circuit, protocol is one example of a serial protocol for devices to communicate with one another.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This issue is still present in 1.11.4.dev1+g6881af7
It is easily provoked by creating a bad query
Does anybody found the solution to the above problem? I am controlling an instrument via pyvisa and facing this value error randomly anytime. I tried to handle the exception but it still crashes my program.