07-29-2022 07:04 PM
Have you verified that the unit ID of 1 is correct to use?
Also, the manual says you need 2 stop bits by default, but most serial communications assumes 1 stop bit in my experience. Can you change this setting?
As for how to trace it, I think the library you're using is locked so you can't peek under the hood with probes, but as long as it's using VISA under there then you could try NI I/O trace to get what it's sending.
07-30-2022 03:33 AM
Your problem is you have written a Modbus Slave, when you need a Modbus Master to connect to your sensor (which is itself a Modbus Slave). You need to switch to the Modbus Master API.