Hi Acetronics,
Here is some brief details of what I did and why I did it.
ADC CountsADC VoltsmmH2OKnots10.00030.0411.5620.00060.0812.2130.00090.1222.71
Hi Acetronics,
Here is some brief details of what I did and why I did it.
ADC CountsADC VoltsmmH2OKnots10.00030.0411.5620.00060.0812.2130.00090.1222.71
Hi Acetronics,
Here is some brief details of what I did and why I did it.So I guess what I am saying is that it was the only way I could see of getting close to the resolution I needed.Code:ADC Counts ADC Volts mmH2O Knots 1 0.0003 0.041 1.56 2 0.0006 0.081 2.21 3 0.0009 0.122 2.71 now using knots = ((SQR(counts))*1563) and looking at the integer value that I would expect would be returned ADC Counts ADC Volts mmH2O SQR(counts) Integer valuegives me Knots 1 0.0003 0.041 1 1 1.56 2 0.0006 0.081 1.414 1 1.56 3 0.0009 0.122 1.73 1 1.56 now using knots = ((SQR(counts*100))*1563)/10000 ADC Counts ADC Volts mmH2O SQR(counts*100) Integer valuegives me Knots 1 0.0003 0.041 10 10 1.56 2 0.0006 0.081 14.14 14 2.188 3 0.0009 0.122 17.32 17 2.657
As for the remainder, that is the .56 at 1 count, .188 at 2 counts etc.
Anyway, that was my train of thought. I am sure there must be a simpler way, i'm just not able to see it. Well I'm off to find that section of the forum for ideas to improve PBP "Floating Point Math"
regards
aajgss
Yup, I tried three counts in Open Office Calc using 2 versions of the formula and got identical results:
((SQRT(cell))*1563)/1000
((SQRT(cell*100))*1563)/10000
Are those above the expected results?Code:1 1.563 2 2.210 3 2.707
Or are these?
Code:1 1.560 2 2.188 3 2.657
Last edited by Demon; - 7th June 2011 at 04:47. Reason: 'cause I can't write formulas out of Calc properly in my posts yet
Hi Robert,
I think the difference comes from the multiply by 100. This gives the result of for example 3 counts 17 and not 1.732.
But as I said one decimal place is close enough for me.
aajgss
Thanks to all for you help to this stage.
Now I'm off to create a new thread for the next bit. I have the hardware setup and producing data, just a bit of trouble reading it.
aajgss
Bookmarks