AIO missing decimal point
Posted: 31 Jan 2024, 17:30
Hi,
The data I receive from a 0-10V Analog Input is in millivolts. I then want to divide that number by 200 in Pictory, but I loose the decimal point.
pi@RevPi17663:~ $ piTest -r MF2_TEMP (this is with no divisor)
2 Byte-Value of MF2_TEMP: 6443 dez (=192b hex)
This is after a divisor of 200
2 Byte-Value of MF2_TEMP: 32 dez (=0020 hex)
The output should be 32.215.
The data I receive from a 0-10V Analog Input is in millivolts. I then want to divide that number by 200 in Pictory, but I loose the decimal point.
pi@RevPi17663:~ $ piTest -r MF2_TEMP (this is with no divisor)
2 Byte-Value of MF2_TEMP: 6443 dez (=192b hex)
This is after a divisor of 200
2 Byte-Value of MF2_TEMP: 32 dez (=0020 hex)
The output should be 32.215.