markspencer Site Admin

Joined: 07 May 2003
Posts: 610
|
Posted: Tue Jun 10, 2003 10:37 am Post subject: |
|
|
Hi,
The values that are returnes by the function adc11_get_times_and_values are a time in microticks (time parameter) and the ADC count (value parameter). The ADC count has to be converted into a voltage. If you are using a version 2 or version 3 unit (this can be found out by using the function adc_get_unit_info) the conversion formulea is as follows:
(A*2.5)/4095
where 2.5 is the maximum voltage measurable. 4095 is the highest ADC count available and A is the measured ADC count. To use this formulea you will get floating point or double precision depending on your variable types.
Best regards, |
|