LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Add new inputs in array

Solved!
Go to solution

Hi,

I have a pressure sensor hooked up with sbRIO and I need to save the last three measurements in an array. In the following design I am only adding new inputs when they change. Every iteration updates new values from analog inputs of FPGA and I need to save last three elements in an array of fixed size. 

 

 add.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

I'll probably use this floor as a subVI later to extract elements of choice in some main VI. After calling this SubVI and wiring an input (random number gen for instance), nothing happens. I am doing something terribly wrong here please assist. 

 

 

Regards.

 

 

  


0 Kudos
Message 1 of 3
(2,687 Views)

add2.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Another try. Seems to work.

 

  


0 Kudos
Message 2 of 3
(2,679 Views)
Solution
Accepted by topic author NapDynamite

Hi Nap,

 

three methods:

check.png

The solution to the bottom is the same as yours, but looks better without crossing wires…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 3 of 3
(2,660 Views)