Hello,
I am to acquiring signals from three (3) channels (volume, flow and pressure), but the system from which I'm getting the signal has a certain routine to follow. At the beginning a shutter is opened so we can measure flow (leaving out the pressure) and plot it against the volume on an xy graph to calculate the slope out of that.
After a while we close the shutter, manually, to measure the pressure (leaving out the flow), and plot pressure against the volume on an xy graph to calculate another slope out of that.
This means Volume is constant on the x-axis, while the other 2 channels (pressure and flow) would have to be acquired conditionally. The 2 slopes are used for different calculations.
I have developed a COD
E that acquires 2 channels gets the slope and goes ahead to make the calculations for TGV (which involves pressure against volume).
I believe the other channel will go through the same route, except the formula node, which will be different, because the flow will also be plotted against volume to get a slope.
My problem is how to develop my Code so that it acquires Flow and Volume when the shutter is open, display them on an xy graph and goes ahead with all relevant calculations (without interference from the pressure). And then when the shutter is closed, it switches from the Flow to Pressure measurement, plot it against Volume and goes ahead to do all the calculations with new slope.
What is in this code (VI) is measuring pressure and volume. This should be when the shutter is closed.
I would be grateful if any one could help me in that.
Hope to hear from you soon. Thanks.
Victor.
vopoku@yahoo.co.uk