LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Can i use SavePanelState() or other function to save parent panel and tab panels content to one file?

I want to use one or a few functions to quickly save the parent panel and its tab panels control value to one file and recall then quickly. I know if i use SavePanelState() i must save one file for the parent panel and several files for tab group panels, that is not i want. Otherwise i need to use GetCtrlVal() to get each control value and save them to file one by one, recall would be the same! who has good method?
0 Kudos
Message 1 of 3
(3,267 Views)

You can use State index parameter in SavePanelState to save more than one panel to the same file (instead of different states of the same panel).
Look at the attached project: I modified simpdemo.prj example adding Save and Recall state buttons to demonstrate this.

Hope this helps
Roberto



Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
Message 2 of 3
(3,258 Views)

Hi, Roberto,

Thank you very much. Your answer helps me a lot, save so much work.

BTW, where can i find some CVI program outsource work?

 

Best wishes.

Sam

0 Kudos
Message 3 of 3
(3,233 Views)