Jump to content

Is it possible to force a refresh of the front panel?


Recommended Posts

In the past, I've refreshed Graph Indicators, but now I find a need to refresh the entire front panel.

 

The issue is this:

 

I have a "primary" front panel with several subpanels. The subpanels load modules on start-up and the modules arrange themselves around each other (automatic layout).

 

The primary front panel does some initialization on itself when it starts. It zeroes its panel origin, hides scrollbars, etc. Depending on how it's called, it may perform other initialization steps.

 

These initialization steps must finish before any modules are loaded into subpanels, or the subpanels may not arrange themselves in the correct layout.

 

I have error wires going from the primary initialization and then to the VI that launches the modules. But it seems like, even though the error wires force the front panel's property/invoke nodes to execute first, that the layout of the main front panel doesn't finish updating before the modules load: they are consistently offset.

 

Placing a 100ms wait between the two VIs solves the problem, but I hate artificial time delays. This is something that pure data flow should be able to handle.

 

I've searched for a way to force a refresh/redraw of the front panel and come up empty. Any suggestions?

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.