01-27-2014 08:45 AM
Hi,
I am working on data acquisition software and my problem is that first I want to get a data from a pressure transmitter and after some process inside same while loop I want to read data from same pressure transmitter and I want to subtract second value from first value. My question is how can I reserve first value. I attached a picture showing two pressure transmitters and highlighted.
thank you
01-27-2014 08:58 AM
you can use a shift register to store a value.
Since it's the first value from the loop you want to save for later purpose just use it like this.
01-27-2014 09:35 AM
Since you're wanting to take two consecutive measurements with some number-crunching in between, you can just use a for loop and a shift register, like this:
Just insert your sensor VI for the control and your number-crunching for the "Process" formula node.
[Unsolicited advice] Oh, three things for general LV programming use: take out the flat sequence structure in your picture, you don't need it since your dataflow is determined by the error wires, try not to have all those jags in your wires, and avoid putting wires behind opaque things at all costs. [\Unsolicited advice]
Cameron