02-26-2020 05:44 AM
Test set-up under investigation is a networked in which LAN-enabled MDO4054C Oscilloscope and computer are directly connected, and not connected to site LAN, the image here depicts the error message seen when an example code received along with driver are run.
How can I overcome this error#- 1073807194
02-26-2020 05:57 AM
Let's look up that error code (Help->Explain Error). "The connection for the given session has been lost." This tells me you were either never properly connected or the instrument is disconnecting you for some reason.
The VISA Resource name has nothing to do with the instrument model, so your screen shot is irrelevant. Are you able to communicate with the instrument through MAX (Measurement and Automation eXplorer)? Did you create a VISA alias in MAX?
02-26-2020 06:15 AM
Yes, I did successfully opened a VISA session to "TCPIP0::169.254.8.81::80::SOCKET"
but, when I try to write and read "*IDN?", I see Read Operation Error - connection for the given session has been lost...
(Write is not a problem)
02-26-2020 06:18 AM
Is there something to do with HTTP Port, which is 80 in present case
02-26-2020 06:44 AM
I have only ran into 1 instrument that actually needed the socket defined. Try using TCPIP0::169.254.8.81::INSTR for the session.
Also, what are your computer's network settings (IP Address and Subnet)? You might have incompatibility there.