ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview doesn't save changes to input array

Solved!
Go to solution

Hello,

 

I am attempting to make changes to a Labview file. The part of the VI I'm having trouble with is a 1D array of strings which is the n-dimension array of an index array. 

 

Right now, there are 11 items in the array and I am trying to add two more. I can select currently empty elements of the array, and type the new data into them. When I save and close however if I reopen the file the new data is gone and the elements are empty once again. I also attempted to modify the existing elements, but these changes also are not saved if I click save and then close and reopen the file.

 

Does anyone know why this might be the case, and if so how I might be able to fix it?

 

My version is Labview 2015 SP1 Full Developmental System.

 

Thanks

0 Kudos
Message 1 of 4
(923 Views)
Solution
Accepted by wtr2201

Hi wtr,

 

did you set the array data as new "default data" before saving the VI?

Best regards,
GerdW


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

I thought I had, and all it had done was set one of the new values to all of the empty elements so I didn't think it had done anything. But I went and did it again after you replied, looks like I had just done it incorrectly. This seems to have fixed the issue. Thanks.

0 Kudos
Message 3 of 4
(906 Views)

On a side note, if these strings are static for the duration of the run, you should make them a diagram constant instead.

 

(And if you later change the constant back to a control, all values will be the default automatically) 😄

0 Kudos
Message 4 of 4
(894 Views)