Closed jancumps closed 1 year ago
ANALOG:INP0:RAW? to return the raw ADC value of the first ADC pin in array of analogue input pins
ANALOG:INP0:RAW?
API to reside in src/adc look for placeholders and TODO in scpi-def.c and adc_utils.c
If real voltage to be returned, then there is a different SCPI command for it:
ANALOG:INP0:VOLTage? MEASure:VOLTage:DC?
// 12-bit conversion, assume max value == ADC_VREF == 3.3 V const float conversion_factor = 3.3f / (1 << 12);
ANALOG:INP0:RAW?
to return the raw ADC value of the first ADC pin in array of analogue input pinsAPI to reside in src/adc look for placeholders and TODO in scpi-def.c and adc_utils.c
If real voltage to be returned, then there is a different SCPI command for it: