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: 

I cannot save the numeric values in the array

Solved!
Go to solution

When I close the program and start it again, all the values in the array are initialized to zero. I want to have the same previous values that I entered before in the array.

Thanks for your help!

0 Kudos
Message 1 of 4
(2,205 Views)

Then you need to write code to save the values in the array to a file when your code exits, and read them from that file when it starts.

0 Kudos
Message 2 of 4
(2,201 Views)
Solution
Accepted by topic author Ven1

If you always want the same values at the beginning, just enter all the values in the controls, the do "edit...make current values default". Save the VI.

0 Kudos
Message 3 of 4
(2,195 Views)

It worked! Thanks so much for the help.

0 Kudos
Message 4 of 4
(2,191 Views)