LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Remote Panel doesn't work with Subpanels?

Hallo,

I have a vi with a Subpanel Container, where I can display several other vis running with hidden front panels.
I choose the desired vi with a menu ring control.
This works fine, but if I publish the vi with Remote Panel, it works only for a while.
I can change the ring control 3, 4 or maybe 10 times, then all of a sudden the vis are no longer loaded into the subpanel container. The menu ring is working, but nothing happens in the subpanel.

I work with Labview 7.0.

Thanks for all help,
Thomas
0 Kudos
Message 1 of 6
(3,260 Views)
Hello Thomas,

there is the example "viewer.vi" that can be found in ...National Instruments\LabVIEW 7.1\examples\general\controls which handles a subpanel container with a ring control. I tried it via remote panel and it works. You can try this example if it works on your computer and you can compare your VI to that example.


Kai Kratt
National Instruments
0 Kudos
Message 2 of 6
(3,245 Views)
Hello Kai,

thank you for answering - I tried it like you said, all worked ok.
I tried it with my own vis, but displayed them in the viewer.vi, all worked ok.
The difference: In my application, the vis keep running, when not displayed, in the example they are aborted.

In the example viewer.vi, there is written:

"The plugin VIs are designed to
be abortable. If aborting is bad
for your VI, you will need to
establish some means of
communication."

I don't understand that.

When I run my own subpanel-vi (attached as rp-problem.vi) with some simple vis in the subpanel-control, I don't have the problem.
The problem occurs only whith my more complicated vis (historical data viewer, file-reader, -writer)

Thank you

Thomas
0 Kudos
Message 3 of 6
(3,238 Views)
Hello Thomas,

I found out few things. If you do not close the VI, the program works as long as one does not try to reopen that VI. You only can open "not yet opened" VIs. If you try to open an earlier opened VI, the screen is not refreshed.

If you not want to close the VI itself, try to close the front panel instead. You can find it in the invoke node (similiar to the example)

Regards


Kai
0 Kudos
Message 4 of 6
(3,226 Views)
Hello Kai,

that's what I do in my attached example.
When the vi starts, I start running the three "sub"-vis whith front-panels closed. (FOR-Loop)
Then I can insert them in the SubpanelControl (WHILE-Loop)
Nobody tries to reopen the running vis.


Thanks
Thomas
0 Kudos
Message 5 of 6
(3,218 Views)
Hello Thomas,

sorry but I cannot run your VI. Does it really work on your system?

You said it works with small sub VIs, but not with complicated ones. Have you tried the example with these complicted VIs?

Kai
0 Kudos
Message 6 of 6
(3,201 Views)