Visa timeout error - Tektronix oscilloscope

14 views (last 30 days)
Matthew
Matthew on 8 Apr 2025
Edited: Govind KM on 23 Jul 2025
Our lab was recently "upgraded" from Windows 10 to Windows 11 and I am now running into errors on previously working code. I am using Matlab to run a voltage pulse generator, oscilloscope, and optical power meter for optoelectronics testing and my testing scripts were consistently working as expected - allowing me to send commands to and read data from the attached tools. However, I am now getting VISA Timeout errors when trying to read data from the oscilloscope. I am still able to successfully connect to each of the tools (code copied and pasted from Instrument Control Toolbox) and am able to send commands to set up the tools using "fprintf" commands. When I try to read data from the oscilloscope using "query" commands I am consistently getting a VISA timeout error, but I am able to query data from the optical power meter. We have the most recent version of the National Instruments VISA driver installed and have tried running through troubleshooting steps from National Instruments but still have the same issue. The code was originally written on R2023a on a Windows 10 PC and runs reliably on that computer.
Does anyone have any suggestions?
Thank you!

Answers (1)

Govind KM
Govind KM on 23 Jul 2025
Edited: Govind KM on 23 Jul 2025
Have you tried increasing the allowed timeout value? You can try increasing this property and see if it helps: https://www.mathworks.com/help/releases/R2024a/instrument/visadev-properties.html#mw_db20d04c-59df-4683-9ceb-a60e79561aed

Products


Release

R2024a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!