Acquired data files in CSV format
contain binary values (10 numbers).
Therefore, when using application software other than C-LOGGER to estimate
collection data files, binary values must be converted to voltage data.
The following formula is used when converting a binary value into a voltage value.
Voltage = Binary * (Range Max. – Range Min.) / Resolution + Range Min.
Each unique value of the right-hand side expression is stored
in the collection execution information and collection channel information
in the CSV file.
Therefore, if you read the collection data file in CSV format, you can
easily convert it to voltage data.
Please refer "CSV File Formation" topic to know more details.
Calculation parameters |
Blocks in collection data files |
Items in collection data files |
binary |
Acquired data |
After the "Data" line |
Range Max. |
Acquisition channel information |
MaxScale |
Range Min. |
Acquisition channel information |
MinScale |
Resolution |
Acquisition execution information |
Resolution |
The value assigned to Resolution differs depending on the device type used.
Device Type |
Resolution |
Range of Binary (in Decimal) |
Resolution (in right-hand side) |
12 bit device |
12 |
0 to 4095 |
4096 |
16 bit device |
16 |
0 to 65535 |
65536 |
Example: While the Resolution is 16 bits, Input Range is -10V – 10V
and Binary value is 32767, the Voltage value is -0.0003V as following calculation.
Voltage
= Binary * (Range Max. – Range Min.) / Resolution + Range Min.
= 32767
* (10 – (-10)) / 65535
+ (-10)
= -0.0003V
Example: While the Resolution is 12 bits, Input Range is 4mA to 20mA.
and Binary value is 3072, the Current value is 16mA as following calculation.
Current
= Binary * (Range Max. – Range Min.) / Resolution + Range Min.
= 3072 * (20 – 4)
/ 4096 + 4
= 16.000 mA