08-31-2008 07:21 AM
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
08-31-2008 07:57 AM
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....
09-02-2008 02:40 PM
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.