08-18-2009 11:01 AM
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
I then use this Vi to show or hide front panel of the above VI
08-18-2009 12:52 PM
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