pyvisa / pyvisa-py

A pure python PyVISA backend
https://pyvisa-py.readthedocs.io
MIT License
282 stars 120 forks source link

error sending '.control_ren(mode)' (w/ class pyvisa.resources.TCPIPInstrument()) #237

Open gitMichael opened 4 years ago

gitMichael commented 4 years ago

https://github.com/pyvisa/pyvisa-py/blob/ade24d0425008e8f742cf2c9875b8a3544051ee2/pyvisa-py/highlevel.py#L257

Shouldn't it be like this? return sess.gpib_control_ren(mode)

MatthieuDartiailh commented 4 years ago

That is indeed incorrect. Feel free to open a PR. However note that that function is not implemented for TCPIP resources in pyvisa-py so if your need it you will also need to do some work in pyvisa-py/tcpip.py to get it to work fully.