LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

save and load control tab values in a VI

Hi,

 

I have a VI in which there are two control tabs, one annidate in the other, with controls and indicators. I would like to know how it is possible to save into a file the values of the controls and indicators that i have in the control tabs. Subsequently, when i have saved the values, and would like to restart the VI and to have the possibility to upload a file with the values of the control tabs that i have previuosly saved into a file.

 

It is possible to do something like that? Does exist a VI or function that makes this?

 

I hope I was clear in my explanation.

 

Thank you

 

Francesco

0 Kudos
Message 1 of 6
(3,165 Views)

Hi Francesco,

 

Here is a short and very simple example which should just give you a hint how to reference the controls:

 

Untitled.png

 

 

Christian

0 Kudos
Message 2 of 6
(3,146 Views)

Thank you very much for your answer..

 

I have another small problem. I can have access to the first two pages of the tab control but I do not know how to get the values of the pages that I have hidden inside the two pages.

See the pictures attached.  I have two main pages and then other pages hidden per each main pages.

 

tab control

 

Thank you very much

Francesco

0 Kudos
Message 3 of 6
(3,138 Views)

Hi Francesco,

 

you could use the config.llb examples (C:\Program Files\National Instruments\LabVIEW 2011\examples\file). But if you want to write in a specific indicator in the tab control you can access it through Christian's example.

 

BEST REGARDS

 

Claudio

NI ITALY

Message 4 of 6
(3,129 Views)

Hi Francesco,

 

you can replace Christian's example using a different reference for the desired tab you want to access.

 

Right click on the specified TAB Control (Block Diagram Side) and select Create >> Reference, than you can use the created reference to access on Tab Pages and on elements inside of them.

 

Regards

Claudio Cupini

NI ITALY

Message 5 of 6
(3,124 Views)

You can still reference from the first Tab Control which contains all the others. You just need to check if one of the controls inside the Tab Controls page again is a Tab Control, again just a hint:

 

Untitled.png

 

Christian

Message 6 of 6
(3,119 Views)