Hi all
I am trying to record the pressure at which a test valve drops out. I am slowly dropping the pressure of the valve until there is a sudden drop. I would like to record the exact pressure at which there is a drop of 4bar.
I am currently using shift registers to display the result on the screen. This works most of the time, but sometimes gives me the previous pressure reading to the one where the dropout occurs.
I think the following is happening:
The sample compression subVI outputs at 10 samples/sec.
Most of the time, the while loop runs at roughly 10/sec, so 1 sample comes from the sample compression subVI per loop. - This is when the reading is shown correctly.
Sometimes the while loop runs below 10/sec, so 2 samples come from the sample compression SubVI per loop. This is when the reading shown is the previous one.
I have tried adding a time delay to the loop so that it only runs at 5/sec and then 2 samples should be output per loop, but the graph on the front pannel becomes very jerky during run time. I didn't go down this route once I realised the graph was jerky.
Any suggestions would be much appreciated
Thanks
Nick