LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

DefaultPanel or RecallPanelState problems

Hi,
 
I am trying to restore panels to their original state but I am having one particular problem. Whenever something gets dimmed on the panel due to certain test selections, neither DefaultPanel or RecallPanelState work properly. When I use the DefaultPanel, it will uncheck tick boxes but it will not undimm items that are dimmed. As for RecallPanelState, I saved the panel into a text file once the program opens, but it as well will not undimm any dimmed items. Any ideas as to why these do not work?
 
Thanks
 
Sebastian
0 Kudos
Message 1 of 2
(2,924 Views)
From the cvi help file

SavePanelState

Purpose

Saves the current values of all controls on a panel.

Also saves the following control attributes:

  • Label/value pairs and their indices

  • Minimum, maximum, and increment values for numerics

  • List box checkmark state values

It looks like other attributes such as dimmed would not be part of what is saved by SavePanelState().  It looks like these functions will not work on the hidden or dimmed attributes of controls.
0 Kudos
Message 2 of 2
(2,920 Views)