LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problems having pop-up subVI's as threads in LabVIEW

Hi all,

I'm writing some software at the moment which will require pop-up windows
for the various control aspects of our system. Using simple subVI's as
pop-up's will not work for us because the main calling VI will halt
execution until the subVI has finished executing. I would like to be able to
have several pop-up windows on the screen at a time without the main VI
stopping. Attached is a very simplistic example of what I'm trying to do.
Unfortunately I'd rather not do it this way because there would literally be
in the tens of loops and threads in the main VI. Can anyone tell me a way of
perhaps calling a subVI but having it detach from the main VI?

Thanks in advance for any suggestions you can think of.

Reg
ards,

Shane Broadbent
shaneb@cfcl.com.au




[Attachment PopupWindow.llb, see below]
0 Kudos
Message 1 of 2
(2,570 Views)
Dear Shane
If I understand your problem the problem you are having occurs because LabVIEW can't process any UI messages when another panel is open.

It is better to load the subvi front panel using VI server once.

Please find attached an example that a colleague has written using VI server:

There are two libraries

1. vi lib using vi server
2. vi lib with problem

The first library is the vi server solution, the second library has a similar problem to your issue.

1) Load the attached library in LV
2) Run the top level VI 148907a.vi
3) Run the VI, notice that the random number generator continues to run when you click on the "Click to open dialog" button on the front panel.
( In both libraries you might have to tell LV where the cal
led sub-vi "test.vi" is)

I hope this helps.

Amin Gholinia
Applications Engineer
Download All
0 Kudos
Message 2 of 2
(2,570 Views)