LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem : controls & indicators not updated when programatically open Front Panel

Solved!
Go to solution

Hi Jason,

 

In you example do you have to open the front panel before doing you state /defer panel change ?  another question could you not just toggle the defer pane.

 

I think I am having the same problem, I have a number of subvi's that hold config data in shift registars and I have a common VI that is used to show or hide these sub-vi.

 

When I try and show the FP the values I know are in there are not displayed, I know the values are in the shift registar because all the other s/w works as expected and it would fall over in a heap if the values were not there. Could you please give me a pointer on how to do this.

 

This is an example of one of the shift registar's I use, after initialise I expect my data to be in  the Path globals information indicator

 

path_globals_ini_BD.png

 

 

I then use this Vi to show or hide front panel of the above VI  show_ini_shift registars_BD.png

 

Danny Thomson AshVire Ltd
Download All
0 Kudos
Message 11 of 12
(1,438 Views)

Hi Danny-

 

The idea here is that LabVIEW does not allocate UI memory for panel controls and indicators when the panel is closed.  So, when you open a panel, while the controls and indicators have values in their data memory, their UI memory is un-initialized.  To force a copy from data memory to UI memory, like you, I wire False to the Defer Panel Updates property node after showing the panel.

 

If the FP.State has not changed, I do not run the property node (i.e. the True case below is empty).  If the FP.State has changed, I update the property node accordingly.

 

So, to answer your question, yes.  You need to display the panel before using the property node since you must force the creation of UI memory before you can force an update to it.

 

At least this is my understanding 🙂

 

-Jason

 

Force Panel Update.PNG


Certified LabVIEW Architect
TestScript: Free Python/LabVIEW Connector

One global to rule them all,
One double-click to find them,
One interface to bring them all
and in the panel bind them.
Message 12 of 12
(1,425 Views)