LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

set origin (position) of vi in subpanel

Hello,
 
I have a problem I don't seem to find the solution for.
I have two vi's. A first vi which has a subpanel, and a second vi which is displayed in the subpanel of the first vi.
 
I don't have a problem displaying the second vi but I cannot seem to control the origin of the front panel of the second vi.
If I try to set the FP.Origin property of the second vi I get the following error message
     "LabVIEW:  This property is read only while the VI is in a subpanel."
 
Why do I need this behaviour?
 
This is a big project with several developers working on it. The individual developers do not have alot of LV knowledge. They can only make changes to the vi's displayed inside the subpanels. It happens frequently that they change something inside the vi (second vi) and they forget to position the front panel back to position 0,0.
 
When this subvi is then loaded into the subpanel of the main vi, the controls are shifted ... because the vi was not exactly saved in position 0,0.
 
Preferably I would like to control the origin position when displaying this vi inside the subpanel. Is there a way how this can be accomplished?
 
Thanks in advance for all the help!
 
Message 1 of 3
(3,586 Views)
Set the origin before you load it into the subpanel?

Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
Message 2 of 3
(3,576 Views)
This almost looks too easy. I thought I tried this already but apparently not.
It is working fine now. Thx for the help!
 

Message Edited by noxus on 11-14-2006 05:35 AM

0 Kudos
Message 3 of 3
(3,574 Views)