Modbus-tk interferes with pyvisa

54 views
Skip to first unread message

Nicolas Rodriguez

unread,
Jan 3, 2022, 4:39:10 PM1/3/22
to modbus-tk
Hello all,

I am using modbus-tk to talk to an egauge, however, I also want to talk to a dmm through pyvisa.

I check for available ports (make sure at least 2) and then try getting a connection with the egauge (if it is there). I do this by simply looping through the list of available ports and seeing if modbus-tk can connect and receive a valid response. then i move on to pyvisa

however, COM3 is the dmm and COM6 is the egauge. this means that the egauge gets to try COM3 first, and I get no response from the dmm from pyvisa. i.e. timeout error.

i get no such error when i simply omit and modbus-tk code

any ideas on why this may be happening?
Reply all
Reply to author
Forward
0 new messages