LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple Copies of Indicators in Diagram

I have a VI and I need to reference a control/indicator multiple times
(like the error control). How do I make another copy of the same
control somewhere else in the wiring diagram?

Can the copied control be either a control and an indicator?

Thanks in advance,

nick


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
0 Kudos
Message 1 of 3
(1,812 Views)
Right-Click on the control/indicator or the node in the wiring diagram
and choose "Create" -> "Local Variable". This will create a node in the
wiring diagram on which you can right-click and change to "Read Local" or
"Write Local". You can use as many of these in your diagram as you like.
Be careful with these, however, since changing their values in code can have
unexpected side effects (race conditions). If you are creating a local
variable from a Boolean, you cannot set the Boolean to "Latch when
released"-- there are ways around this, though.

Regards,

--Doug


brettnick@my-deja.com wrote in message <7r64f5$ni3$1@nnrp1.deja.com>...
>I have a VI and I need to reference a control/indicator multiple times
>(like the error control). How do I make another copy of the
same
>control somewhere else in the wiring diagram?
>
>Can the copied control be either a control and an indicator?
>
>Thanks in advance,
>
>nick
>
>
>Sent via Deja.com http://www.deja.com/
>Share what you know. Learn what you don't.
0 Kudos
Message 2 of 3
(1,812 Views)
Hallo, brettnick,

Du meintest am 08.09.99 zum Thema Multiple Copies of Indicators in Diagram:

> I have a VI and I need to reference a control/indicator multiple
> times (like the error control). How do I make another copy of the
> same control somewhere else in the wiring diagram?

First connect the data source with the first indicator.
Then connect the wire with the next indicator - just like in an electric
wiring scheme.

> Can the copied control be either a control and an indicator?

No. That doesn't work. You can see the effect if you change an indicator
to a control - the wires are broken.

Viele Gruesse!
Helmut
0 Kudos
Message 3 of 3
(1,811 Views)