AIO module scale
Posted: 21 Apr 2021, 11:36
Hello,
I have a question regarding the scale of data received from AIO module using RevPiModIO2. I have a sensor connected to the AIO module but no way to test the full scale of the sensor(no physical access to the sensor and the pi).
In pictory Input 1 is set as follow:
-Range: -10V/+10V
- Multiplier:1
-Divisor:1
-Offset:0
-ADC_DataRate:640Hz
And in python I am reading the value using rpi.io.InputValue_1() in cycleloop(100ms).
How the rpi.io.InputValue_1() is scaled exactly (8 bit,16bit,24bit) it really not clear for me? from what i understand, Its a 24bits ADC so it should give me the following result;
-10V->0
0V->2^23(8388608)
10V->2^24(16777216)
but that doesn't match with the data that I have...
Could somebody help me,please ,to better understand ?
Best regards,
Martin
I have a question regarding the scale of data received from AIO module using RevPiModIO2. I have a sensor connected to the AIO module but no way to test the full scale of the sensor(no physical access to the sensor and the pi).
In pictory Input 1 is set as follow:
-Range: -10V/+10V
- Multiplier:1
-Divisor:1
-Offset:0
-ADC_DataRate:640Hz
And in python I am reading the value using rpi.io.InputValue_1() in cycleloop(100ms).
How the rpi.io.InputValue_1() is scaled exactly (8 bit,16bit,24bit) it really not clear for me? from what i understand, Its a 24bits ADC so it should give me the following result;
-10V->0
0V->2^23(8388608)
10V->2^24(16777216)
but that doesn't match with the data that I have...
Could somebody help me,please ,to better understand ?
Best regards,
Martin