Hi, i am using mcc-128 hat, I would like to record the data in 16 bit integer with OptionFlags.NOSCALEDATA enabled just to redece size of the file, 16bit integer instead of 64bit float after conversion to volts.
for example: if the input range is selected to be -/+ 5v
voltage_resolution = =10V / 65536= 0.00015258789
V=(adc_value - 32768) * voltage_resolution
Just want to make sure that's how you convert it to volt as well if OptionFlags.NOSCALEDATA is not enabled?
Question
fpandpf
Hi, i am using mcc-128 hat, I would like to record the data in 16 bit integer with OptionFlags.NOSCALEDATA enabled just to redece size of the file, 16bit integer instead of 64bit float after conversion to volts.
for example: if the input range is selected to be -/+ 5v
voltage_resolution = =10V / 65536= 0.00015258789
V=(adc_value - 32768) * voltage_resolution
Just want to make sure that's how you convert it to volt as well if OptionFlags.NOSCALEDATA is not enabled?
Thanks for your time.
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now