Jan-08-2021, 04:09 PM
In summary; I am trying to connect to a device using Visa TCP Socket option.
The Connection does not complain but I can not run any SCPI command to the device.
[Edited the question to remove my first question about port number, since the 5025 is the correct port number]
Sample code in use:
The Connection does not complain but I can not run any SCPI command to the device.
[Edited the question to remove my first question about port number, since the 5025 is the correct port number]
Sample code in use:
import pyvisa as visa try: resourceManager = visa.ResourceManager() dev = 'TCPIP0::192.168.0.44::5025::SOCKET' session = resourceManager.open_resource(dev) print('\n Open Successful!') print('IDN:' +str(session.query('*IDN?'))) except Exception as e: print('[!] Exception:' +str(e))I get the below response:
Output:C:\d777py>python socket_test.py
Open Successful!
[!] Exception:VI_ERROR_TMO (-1073807339): Timeout expired before operation completed.
Thanks in advance! P.S. I had no issues with GPIB, USB or other TCPIP connections.