Why am I receiving errors when reading and writing to an instrument with Instrument Control Toolbox R2024b?
I am connecting to my Windows 11 based Keysight oscilloscope and source via "visadev." I intermittently receive the following two errors when reading and writing to the instruments using "fscanf" and "fprintf":
Error using matlabshared.transportlib.internal.compatibility.LegacyASCIIMixin/fprintf (line 140)
Error writing String.
Error writing data to the transport.
Adaptor command ‘write’ failed with status code: -550.
Error using matlabshared.transportlib.internal.compatibility.LegacyASCIIMixin/fscanf (line 305)
Failed to read data from the instrument due to a driver error.
These errors occur seemingly at random, and a similar error occurs when using the function "visa" instead of "visadev":
Error using icinterface/fprintf (line 158)
VISA: The IO connection for the session has been lost
Why do these errors occur and how can I prevent them?I am connecting to my Windows 11 based Keysight oscilloscope and source via "visadev." I intermittently receive the following two errors when reading and writing to the instruments using "fscanf" and "fprintf":
Error using matlabshared.transportlib.internal.compatibility.LegacyASCIIMixin/fprintf (line 140)
Error writing String.
Error writing data to the transport.
Adaptor command ‘write’ failed with status code: -550.
Error using matlabshared.transportlib.internal.compatibility.LegacyASCIIMixin/fscanf (line 305)
Failed to read data from the instrument due to a driver error.
These errors occur seemingly at random, and a similar error occurs when using the function "visa" instead of "visadev":
Error using icinterface/fprintf (line 158)
VISA: The IO connection for the session has been lost
Why do these errors occur and how can I prevent them? I am connecting to my Windows 11 based Keysight oscilloscope and source via "visadev." I intermittently receive the following two errors when reading and writing to the instruments using "fscanf" and "fprintf":
Error using matlabshared.transportlib.internal.compatibility.LegacyASCIIMixin/fprintf (line 140)
Error writing String.
Error writing data to the transport.
Adaptor command ‘write’ failed with status code: -550.
Error using matlabshared.transportlib.internal.compatibility.LegacyASCIIMixin/fscanf (line 305)
Failed to read data from the instrument due to a driver error.
These errors occur seemingly at random, and a similar error occurs when using the function "visa" instead of "visadev":
Error using icinterface/fprintf (line 158)
VISA: The IO connection for the session has been lost
Why do these errors occur and how can I prevent them? fprintf, fscanf, instrumentcontroltoolbox, write, read MATLAB Answers — New Questions









