LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reset and storage

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?

 

LLindenbauer_0-1686060113753.png

 

LLindenbauer_2-1686060241604.png

 

 

0 Kudos
Message 11 of 14
(321 Views)

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).

0 Kudos
Message 12 of 14
(313 Views)

Well. It seems like you can also just post the materials for your LabVIEW course.

0 Kudos
Message 13 of 14
(302 Views)

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.)

 

 

altenbach_0-1686064927274.png

 

0 Kudos
Message 14 of 14
(275 Views)