LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

access/set attributes from SubVI

Hi,

Is there any way that I can access/set the attributes on my controls
and indicators from a SubVi? I know I can access/set the value with the
VI Reference tools.

In my application I would like to change the colour of an object when
the user clicks on it, but I need to do this from a subVi running in
parallell.

/Nimrod




Sent via Deja.com http://www.deja.com/
Before you buy.
0 Kudos
Message 1 of 2
(2,243 Views)
s_nimrod@my-deja.com wrote:

> Hi,
>
> Is there any way that I can access/set the attributes on my controls
> and indicators from a SubVi? I know I can access/set the value with the
> VI Reference tools.
>
> In my application I would like to change the colour of an object when
> the user clicks on it, but I need to do this from a subVi running in
> parallell.

You cant access the attributes directly but you can make hidden controls
tied to the attributes that you can access using the "Invoke Node" .

In the situation you are talking about you will have to monitor the control
to see if the user clicked it (changed state) then set the control tied
to the attribute.

Clear as mud right ?
Kevin Kent
0 Kudos
Message 2 of 2
(2,243 Views)