12-15-2010 05:24 AM
I’m reading a pressure value in serially, which could be anything from 0-1600 psi, I convert this string to a numeric value for display on a thermometer indicator.
What I’d like to try and understand is how I could take this numeric value, and write it to an AO. I have a DAQ-6008, which if I understand it correctly, 0V would represent my minimum pressure, 0 psi, and 5V would represent my max pressure, 1600psi.
What’s bamboozling me is how does it know what my min and max input conditions are, so it can scale the output?
12-15-2010 07:19 AM
It does not know what the min/max conditions are. You have to tell it. Take your PSI reading, divide by 1600 psi (full scale input), and multiply by 5 V (full scale output). If the minimum values were not both zero, you would have to also include offsets to account for the minimums.
Lynn
12-15-2010 07:34 AM
of course it is!!! how silly do i feel now!! thanks for that 🙂