From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Adding elements to an array in an event structure?

Hello,

 

I am writing a VI that allows the user to control the voltage levels on two different elements of a device. There is a system loss measurement that is read from a power meter each time the voltage slider's value changes, through a case structure. Is there a way of appending this loss value to an array for each value of the slider? Essentially constructing an array that will supply the information necessary to show a loss vs voltage plot.

 

Thanks!

0 Kudos
Message 1 of 2
(2,075 Views)

If all you want is a plot, then use a Chart.  If you want to log or do something else with the data, then use a shift register to hold the array and Build Array to add values to it.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 2
(2,066 Views)