I am using SDK to program and read data using the scope of the AD2 board. I am using the function FDwfAnalogInStatusData16 to read in the raw ADC data and I have few questions:
- The mentioned function specifies 16 bits for the ADC, as in many questions and answers in this forum, the ADC is assumed to have 16 bits. In the board specs it says 14 bits. So the ADC 16 or 14 bits?
- In the manual it says the function FDwfAnalogInChannelRangeSet sets the voltage range. It is not clear to me how the range is set. The specs of the board says in can cover 50Vp-p, if I set the range to 1V, i.e. FDwfAnalogInChannelRangeSet(hdwf, -1, 1); does that mean the 16 bits of the ADC will cover the -1 to +1 V, 2^16 will be equivalent to 2Vp-p?
- when I use the FDwfAnalogInStatusData16, why I always get zeros in the 2 least significant bits or all values are multiple of 4? is that related to the value I am reading? i.e. the value I am reading is not small enough to change the first and second bits? but even if I assume that the value is not large enough, I never get one in the least significant bits. Any elaboration here would be very helpful.
Question
ssm
Dear Help,
I am using SDK to program and read data using the scope of the AD2 board. I am using the function FDwfAnalogInStatusData16 to read in the raw ADC data and I have few questions:
- The mentioned function specifies 16 bits for the ADC, as in many questions and answers in this forum, the ADC is assumed to have 16 bits. In the board specs it says 14 bits. So the ADC 16 or 14 bits?
- In the manual it says the function FDwfAnalogInChannelRangeSet sets the voltage range. It is not clear to me how the range is set. The specs of the board says in can cover 50Vp-p, if I set the range to 1V, i.e. FDwfAnalogInChannelRangeSet(hdwf, -1, 1); does that mean the 16 bits of the ADC will cover the -1 to +1 V, 2^16 will be equivalent to 2Vp-p?
- when I use the FDwfAnalogInStatusData16, why I always get zeros in the 2 least significant bits or all values are multiple of 4? is that related to the value I am reading? i.e. the value I am reading is not small enough to change the first and second bits? but even if I assume that the value is not large enough, I never get one in the least significant bits. Any elaboration here would be very helpful.
thank you for the help,
stay safe, stay healthy,
ssm
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.