LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Possible to stop vi with a control from inside subpanel?

Hi tbd, I understand that once subvi opened, they will be registered by themselves.
However, I am asking for your opinion.
Like the flow of subvis can be controlled from their controls inside the sub panel, can be looped whenever needed without stopping till the end of application.
Is it possible with these controls I made,  will the subpanel on the tab control work?
Even if the other subvi are still in memory, is it possible to change tabs during the run time?

Please advise.
Thanks in advance.
0 Kudos
Message 11 of 16
(1,065 Views)
Hi tbd, here's tha attached.

There are two vis. They are subpanel and subpanel in tab.
As for  subpanel, it cannot can be stopped at the real time but I can fix it. Of course it works though not perfect.
But for subpanel in tab.vi It does not work correctly.
So where did it go wrong?
Please advise thanks alot.
Clement
0 Kudos
Message 12 of 16
(1,053 Views)
Hi tbd again.
This time, all the vis are working properly except subpanel_tab.vi
I am using control reference(static reference types for controls) and call by reference nodes.

May I know how to do if I want to login at tab 2, while as long as left and right vi are visible, tab 2 remains and it cannot be changed to tab 1 till back to login vi.
Please help. I will be grateful for your help.
0 Kudos
Message 13 of 16
(1,038 Views)

Hi Clement,

      Here's one way to limit the tab-control based on a boolean condition in container.vi

Cheers!

"Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)
Download All
0 Kudos
Message 14 of 16
(1,033 Views)
Hi tbd. Thanks. It looks working fine to me though I would not want the pages to go missing.

Anyway I have seen your work as to how value(signaling) and page work and are new to me though
I have been using Labview for 4 years. And I even thought of using the disenable property but it does not work.

I had tried to put container.vi inside the event case but it does not work. It will only freeze after opening the tab.

Okay Now I can only think is that there will be a pop up message, indicating that the subvi in subpanel must be finished before at login state.

Anyway thanks foe your great help.
Clement
0 Kudos
Message 15 of 16
(1,024 Views)

though I would not want the pages to go missing.

Does that mean you'd like to find a different way to disable the other pages?



Anyway I have seen your work as to how value(signaling) and page work and are new to me though
I have been using Labview for 4 years.

Value(Signalling) is great!  It's one way to extend the use of event-cases beyond FP/control activity.
 

 And I even thought of using the disenable property but it does not work.

You're right!  It's strange - I too tried to set the disabled&greyed property.  It may be another property of your tab is conflicting.  I've tested on another tab in 7.1 and it does work there.


I had tried to put container.vi inside the event case but it does not work. It will only freeze after opening the tab.

It's not a good habit to execute VI's inside an event, because the event-case can't respond to other events until the sub-vi finishes.
 

Anyway thanks foe your great help.
Clement

You're more than welcome,
Cheers!
"Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)
0 Kudos
Message 16 of 16
(1,016 Views)