06-06-2023 09:06 AM
The description is very confusing, but the problem looks simple.
Can you try to describe it again? You can also do a translation round trip back from English to see if it makes sense. Maybe give a description in your own language, too.
I replaced your LINX with a manual input to make it easier to play around with and renamed the second chart to "Pressure during Deflation if measured pressure is between 140 and 50". Is this the display that you want to change?
06-06-2023 09:22 AM
Ah, I recognize that code! Why did you ugly-fy it???
To store three values, all you need is an array in a shift register where you append the new value and take the average when the size is three (or a more elegant in-place solution, of course).
06-06-2023 09:33 AM
Well. It seems like you can also just post the materials for your LabVIEW course.
06-06-2023 10:18 AM - edited 06-06-2023 10:22 AM
Here's a quick modification of my earlier code that accumulates up to three readings and averages them.
(Note that the logic of detection for the "PA value" is up to you.)