07-14-2010 01:04 PM - edited 07-14-2010 01:08 PM
Hi
I have made a vi in which I have customize Boolean indicator
and programtically i am moving it to left (using property node)
its work well but
whenever i use this vi as subvi , that customize boolean indicator dosent move on the main VI front pannel ,but its move its own VI front pannel
what is it ?
where is going wrong some thing
its urgent please do reply ASAP.
Waiting
Solved! Go to Solution.
07-14-2010 01:17 PM - edited 07-14-2010 01:18 PM
If you want a subVI to control a control or indicator of another VI then you need to pass a reference of the control/indicator to the subVI. If you open the Example Finder (Help -> Find Examples) and search for "properties", then you can open the example "Property Nodes". That shows how to pass a reference to graph to a subVI. In your case you'd want a reference of your Boolean indicator.
One easy way to link up a control reference to a subVI is to:
07-14-2010 07:23 PM
HI thanks for your reply
"Drag the reference terminal from the block diagram of the source VI to the front panel of the subVI. This creates a reference control on the subVI."
its not allowed by the labview i think .
here is the attachment please find both VIs are attached
07-14-2010 08:37 PM
Your main doesn't have a reference so it looks like you never tried it. It DOES work.
07-14-2010 11:24 PM
i dont now how to create a referenec or how to pass it
please do help me
07-14-2010 11:39 PM - edited 07-14-2010 11:43 PM
Right click on the control you want to create a reference of and pick Create Reference. It will give you a reference to that specific control.
Now drag that reference to the front panel. It will create a control that is a datatype of reference that matches the same datatype of the original control. You can copy it if you want, put the copy in the other VI. Change it to an indicator. Connect the Control Reference to the connector pane of the subVI. Now you have the means of passing the reference of the specific control to the subVI to be used as needed in the subVI.
A simpler way to do it is once you've create a reference to a specific control, you can right click on the reference and say Create Control, or Create Indicator. And you can copy and paste that between Main VI and subVI, connect it to the connector panel, and wire up as needed.
07-15-2010 12:11 AM
please just edit the above VIs in order to save time
i am doing a mistake or my labview 8.6 is corrupted
07-15-2010 12:49 AM
07-15-2010 01:46 AM
thanks verey much ...
in this case i was doing a mistake
thanks again to all of you
07-15-2010 08:40 AM
@SEMAK wrote:
i dont now how to create a referenec or how to pass it
please do help me
I gave you the procedure, step by step. Someone gave you the solution this time. We won't be doing this every time so you should learn how to do it on your own.