LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

subvi problem

Solved!
Go to solution

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

0 Kudos
Message 1 of 10
(5,352 Views)

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:

  • In the VI that has the control, right-click on the control and select Create -> Reference. Place the reference terminal on the block diagram.
  • Open the front panel of the subVI.
  • 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.
  • Connect the reference control to the subVI's connector pane.
  • Connect the reference terminal on the block diagram of the parent VI to the terminal on the subVI.
Message 2 of 10
(5,335 Views)

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

Download All
0 Kudos
Message 3 of 10
(5,317 Views)

Your main doesn't have a reference so it looks like you never tried it. It DOES work.

0 Kudos
Message 4 of 10
(5,310 Views)

i dont now how to create a referenec or how to pass it

please do help me

0 Kudos
Message 5 of 10
(5,300 Views)

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.

0 Kudos
Message 6 of 10
(5,293 Views)

please just edit the above VIs in order to save time

 

i am doing a mistake or my labview 8.6 is corrupted

 

 

0 Kudos
Message 7 of 10
(5,285 Views)
Solution
Accepted by SEMAK

hi semak,

 Please check those subvis with the reference to boolean indicator as input.

 

 

Thanks and regards,

srikrishnaNF

Regards,
Srikrishna


Download All
Message 8 of 10
(5,271 Views)

thanks verey much ...

in this case i was doing a mistake

thanks again to all of you

0 Kudos
Message 9 of 10
(5,261 Views)

 


@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.

 

0 Kudos
Message 10 of 10
(5,241 Views)