05-24-2012 10:21 AM
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
05-25-2012 02:58 AM
Hi Francesco,
Here is a short and very simple example which should just give you a hint how to reference the controls:
Christian
05-25-2012 03:33 AM
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.
Thank you very much
Francesco
05-25-2012 03:46 AM
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
05-25-2012 04:06 AM
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
05-25-2012 04:24 AM
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:
Christian