LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Save Container into data file

hii

 

i have build very big VI that hold arry of container

in which container it containe variables and arrys.

 

i use it to configure the vi action (like controlling high of wave ,amplitude et cetera)

until now i used "make Current values default" option to save

variables and arry variables inside the arry container.

 

i want to upgrade this technic to somting more advanced. like save this arry into data file.

 

when i open the Vi it will read data file

and when i will wont make change in the Vi i will press save button instead of "make Current values default".

 

there is way to do it?

just save arry of continers into file and read it after it?

 

eyal

 

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

there may be someting in 8.6 but for previous version I would suggest:

 

 Flatten to XML.vi

would preserve the container(cluster) , and then  

write to xml.vi

and then when you start the mainvi you put a case t\f  and use

first call.vi to select only when it start  and in this case true: read xml and  unflatten xml  etc....

0 Kudos
Message 2 of 3
(2,731 Views)

Hi Eyal,

 

I just want to ensure that you I understand I understand you correctly. You want to save the information from your array into a data file and then read from this data file the next time you run the VI. 

 

Do you have a preference as to what type of data file it is?

 

An easy way to do that is to use the write to file functions to insert you information from the array.

 

Warm regards,
Karunya R
National Instruments
Applications Engineer
Message 3 of 3
(2,699 Views)