LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Impossible to resquest control after coming back from sub-vi

hi,

I'm using the remote front panel, but i cannot request control from serveur after coming back from a sub-vi. I don't understand why the right click on serveur work at beginning and then is disable after having called a sub-vi.

(I'm using Labview 8.2.1)

Thank to help


0 Kudos
Message 1 of 9
(3,326 Views)
How are you exiting your sub-vi??  Is it in a while loop, sequence structure, state machine or other??  What is your program supposed to do after it exits the subvi??

If your program stops after it runs the subvi, that may be your problem.  You may then have to restart the vi on the host machine.
Kenny

0 Kudos
Message 2 of 9
(3,301 Views)

My main VI is like a menu : While loop with even structure which call sub-VI.

The sub-vi are ending on sequence structure. But I have tested to end them with a while loop without better result...


Tosty
0 Kudos
Message 3 of 9
(3,283 Views)
Is your subvi a dialog box??  If you are using any dialog boxes, they need to be a dialog box that you created, not a standard dialog box.  Otherwise they will most likely only appear on the host machine and maybe not the remote panel.
 
Would it be possible to post some code or a screenshot of the code??  Helps to get a better picture for what is happening.
Kenny

0 Kudos
Message 4 of 9
(3,270 Views)
Hi,

No, I'm not using dialbox. I'have joined an example with 2 VI.


Tosty
0 Kudos
Message 5 of 9
(3,254 Views)
I added your vis to a new project and used the web publishing tool to create a new panel for it.  I then ran the vi and connected to it using the remote panel.  I was able to control the vi and start and restart the vi, going in and out of the sub vi.

Are you releasing control when you are done controlling the vi??
Kenny

Message 6 of 9
(3,243 Views)
In my PC, this works too. There is only one thing which doesn't work, it's the right clik on the serveur to request control which doesn't work after coming back to the Main VI (when client has control.

There is a strange things : in this case when i can't do a right click, if the client releases control, the message : "client release control, serveur has control" is display on the serveur. But the serveur can only stop the execution with the red cercle on the top of the screen, all other action are disable.

Tosty
0 Kudos
Message 7 of 9
(3,222 Views)
Ahh.  Your last explaination helped a lot.  I now understand and was able to duplicate your behavior, once.  I ran the program probably 10 times, and once i did get the issue that you were noticing.

I am not sure what is casuing this, temporary network disruption, lost packet??  Once I restarted the vi it worked as expecteda gain, but I am not sure what caused it.

You might wanbt to contact NI customer service directly or sumbit a bug report.
Kenny

0 Kudos
Message 8 of 9
(3,214 Views)
I don't things it coming from the netwrok. I have tested this problem on a single PC (Same which is the client and the serveur) and it doesn't work correctly too.

Thanks,
Tosty
0 Kudos
Message 9 of 9
(3,204 Views)