LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to center a subvi in a sub panel control?

Hi, al

 

I want to display some subvis in a sub panel of main app. Now, I can insert subvi to sub panel.

 

But they are not diplaed in the center of sub panel. I want to know whether there is a way to

 

center my subvi automatically, or I have to adjust by myself.

 

I also try to disable frame and scroll bars of the sub panel contro, but it don't work. please help

 

me about it.

 

thanks.

0 Kudos
Message 1 of 5
(4,384 Views)

I didn't try it but open your subVI and go to file -> vi properties -> category = Window Run-Time position, position = centered and save the change.

 

Ben

0 Kudos
Message 2 of 5
(4,382 Views)

I tried it and it didn't work, the vi open in the top left corner of the sub panel. Alternately, what you can do is scale the subVI front panel the same dimension as the sub panel and center what you want in your subVI.

 

Ben

0 Kudos
Message 3 of 5
(4,368 Views)
I tried to find from property node and invoke node to place sub-vi in the center but with no luck. So I think fit or scale panel should be a good workaround
0 Kudos
Message 4 of 5
(4,325 Views)

HI, all

 

thanks all of your help.

0 Kudos
Message 5 of 5
(4,304 Views)