LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

save numeric data from txt file to 1D array

hi

Data saved in array in file2array_fixed is not saved permanently when i close the file after saving it is erased, i want data to be saved permanently in array

please help
0 Kudos
Message 11 of 13
(761 Views)

It doesn't make much sense to have a program that reads a file and have the output as a constant. If however, you want to use the output in another VI, after running the file read program, you can go to the diagram and right click on the array and select 'Create Constant'. This constant can then be copied and pasted into another VI. The other way to do it is to copy the indicator, copy and paste it into another VI, right click on it and select 'Change to Control; then go to the operate menu and select Make Current Values Default.

For small arrays, this is somewhat reasonable but for large arrays, the file size of the VI will get rather big.

0 Kudos
Message 12 of 13
(753 Views)
Thanks Dennis Knutson

0 Kudos
Message 13 of 13
(751 Views)