Hi
I'm using Labjack for Data Acquisition using Golang scripts. Currently I'm using MODBUS TCP protocol to access the registers in Labjack T4.
I'm reading Analog Input channel(AIN0) with 3.3V. But the value read back from the corresponding register "0000" is not matching with the input supplied voltage.
Read back value with 3.3V input: 64 82 72 16
Command issued : 000000000006000400000002
Labjack Response:[0 0 0 0 0 7 0 4 4 64 82 72 16]
Read back value with 0V input:186 243 160 0
Command issued : 000000000006000400000002
Labjack Response:[0 0 0 0 0 7 0 4 4 186 243 160 0]
The voltage supplied to this channel is single ended and let me know, if any conversion logic is involved to convert back to analog voltage.
Also let me know if any configuration is required before I read the AIN0 register.
Thanks & Regards,
G.Vigneshwaran
There are a few different configurations that can vary depending on the Modbus TCP implementation. To get started, we suggest going through some tests using the test registers here. Mind the common issues mentioned at the bottom of the page:
https://labjack.com/support/software/examples/modbus/getting-started
Let us know if you still have problems after checking everything there.