LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I have one VI return default values to another VI?

I have a VI calibrating a pressure sensor. It spits out the slope and intercept for the linear relationship between the voltage that the sensor produces and the pressure being applied to it. In order to properly use the VI that reads the pressure sensor's voltage and adjusts it to display pressure, I need it to be properly calibrated... is there any way for me to take the values output by the calibration process and set them automatically as the default values of the VI that adjusts the voltage reading within the calibration VI? Essentially, I take the voltage, subtract the intercept and divide that by the slope, and that gives the pressure reading, and it would be very useful if I didn't have to manually set the slo
pe and intercept values as the default values. Thanks!
0 Kudos
Message 1 of 3
(2,695 Views)
If I understand your question correctly, the output of the calibration
process could be written to a file. Then the VI in which you are now manually
setting the slope and intercept values would just read the file -- with a
trap in it such that if the file does not exist, then either error out or
ask you to manually enter the slope and intercept.

Les.Hammer@CompleteTest.com
0 Kudos
Message 2 of 3
(2,695 Views)
Hey, there's a suggestion. Thanks!
0 Kudos
Message 3 of 3
(2,695 Views)