LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Set curser in a VI which frontpanel is not opend

Hi,

 

I've the following problem:

 

A Sub-VI which has several initialisation routines while start-up (takes about ~10sec). I want to set the cursor to 'busy' for this time.

 

The sub VI sets the cursor to 'busy' while start up, and after finishing the init routines the curser is set back to 'standard. When the Panel is open this works for shure,

but when the window is closed while start-up and opend then from main panel in between the init routine it doesn't work....

 

It seams that the (VI-)reference for setting the cursor is ignored o.s. when the panel is not open. 

 

I think setting the cursor from main panel by using the VI-path of the sub-VI will work, but is there another way soving this?

 

Any suggestions?!

0 Kudos
Message 1 of 6
(2,780 Views)

Hi,

 

I think what you must be doing is follow the data flow and use error clusters for setting the icon busy. Check the attached example. 

 

Regards,
NitzZ

(Give Kudos to Good Answers, Mark it as a Solution if your problem is Solved:smileywink:

0 Kudos
Message 2 of 6
(2,770 Views)

Dear  _EMG_,

 

i have set the cursor to 'busy' in the Initialization SubVI and it worked fine too, if the

SubVI Frontpanel is not opened.

Here is the example.

Download All
Message 3 of 6
(2,748 Views)

Maybe need to add more description about the "VI reference". It should be the current front panel VI reference!

 

Sunny

Message 4 of 6
(2,733 Views)

@Sunnyliu wrote:

Maybe need to add more description about the "VI reference". It should be the current front panel VI reference!

 

Sunny


 

Ditto that.

 

If you are saying that ALL FP are minimized then I would look to Windows in that case. The cursor is genearlly an indication of the state of the top most app and if the VI FP are closed...

 

Ben

 

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 5 of 6
(2,725 Views)

Enable "show FP when open" in the VI properties. Then on your BD use a VI reference and set the FP to minimize wired to in/out error cluster. The FP ctrls don't update if it FP is not open. This is a way to enable update of controls shown on your VI FP.

0 Kudos
Message 6 of 6
(2,720 Views)