LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to set/get the "attribute" of a control from a subvi

Labview 5.1.1
WinNT 4.0

Hello.

I'm trying to figure out how to retrieve and most importantly, set the
attributes of a control from subvi. I remember seeing one post that says
use the invoke node but all I could find close enough is the set/get control
values (not attributes).

Could anyone point me how to solve this?

TIA
John
http://www.johncruise.com
0 Kudos
Message 1 of 5
(2,750 Views)
You use the set value node to set a control of your top level VI. On the
diagram, this control set the attribute node.

Jean-Pierre Drolet

John Cruz a écrit dans le message :
38d6a351@newsgroups.ni.com...
> Labview 5.1.1
> WinNT 4.0
>
> Hello.
>
> I'm trying to figure out how to retrieve and most importantly, set the
> attributes of a control from subvi. I remember seeing one post that says
> use the invoke node but all I could find close enough is the set/get
control
> values (not attributes).
>
> Could anyone point me how to solve this?
>
> TIA
> John
> http://www.johncruise.com
>
>
>
0 Kudos
Message 2 of 5
(2,750 Views)
thanks for the fast response BUT....

are you referring to Invoke Node->Method->"Set Control Value" ? It only
sets the value of the control (hence the name) and not the attribute. If
your not referring to that... could you point me out to where I can find
that node?

TIA,

John

"Jean-Pierre Drolet" wrote in message
news:38d6aaee@newsgroups.ni.com...
> You use the set value node to set a control of your top level VI. On the
> diagram, this control set the attribute node.
>
> Jean-Pierre Drolet
>
> John Cruz a écrit dans le message :
> 38d6a351@newsgroups.ni.com...
> > Labview 5.1.1
> > WinNT 4.0
> >
> > Hello.
> >
> > I'm trying to figure out how to retrieve and most importantly, set the
> > attributes of a con
trol from subvi. I remember seeing one post that
says
> > use the invoke node but all I could find close enough is the set/get
> control
> > values (not attributes).
> >
> > Could anyone point me how to solve this?
> >
> > TIA
> > John
> > http://www.johncruise.com
> >
> >
> >
>
>
0 Kudos
Message 3 of 5
(2,750 Views)
No, there is no direct way to set the attribute node from a SubVI. If you
want to set the attribute of ControlA from outside its VI, you need another
control ControlB that is wired to that attribute of ControlA on the diagram.
from a subVI or anywhere else, you use a Set Conrol Value node to ControlB
to sets its value. Set Control Value is only one method to pass data from
one VI to another. You could use other methods like globals or notifiers to
pass the attibute value to the node.


John Cruz a écrit dans le message :
38d6c6f0@newsgroups.ni.com...
> thanks for the fast response BUT....
>
> are you referring to Invoke Node->Method->"Set Control Value" ? It only
> sets the value of the control (hence the name) and not
the attribute. If
> your not referring to that... could you point me out to where I can find
> that node?
>
> TIA,
>
> John
>
> "Jean-Pierre Drolet" wrote in message
> news:38d6aaee@newsgroups.ni.com...
> > You use the set value node to set a control of your top level VI. On the
> > diagram, this control set the attribute node.
> >
> > Jean-Pierre Drolet
> >
> > John Cruz a écrit dans le message :
> > 38d6a351@newsgroups.ni.com...
> > > Labview 5.1.1
> > > WinNT 4.0
> > >
> > > Hello.
> > >
> > > I'm trying to figure out how to retrieve and most importantly, set the
> > > attributes of a control from subvi. I remember seeing one post that
> says
> > > use the invoke node but all I could find close enough is the set/get
> > control
> > > values (not attributes).
> > >
> > > Could anyone point me how to solve this?
> > >
> > > TIA
> > > John
> > > http://www.johncruise.com
> > >
> > >
> > >
> >
> >
>
>
0 Kudos
Message 4 of 5
(2,750 Views)
I didn't think of that one before (using another control/indicator to
control the attributes from a subvi)... nice idea!

Thanks alot.

John

"Jean-Pierre Drolet" wrote in message
news:38d78285@newsgroups.ni.com...
> No, there is no direct way to set the attribute node from a SubVI. If you
> want to set the attribute of ControlA from outside its VI, you need
another
> control ControlB that is wired to that attribute of ControlA on the
diagram.
> from a subVI or anywhere else, you use a Set Conrol Value node to ControlB
> to sets its value. Set Control Value is only one method to pass data from
> one VI to another. You could use other methods like globals or notifiers
to
> pass the attibute value to the node.
>
>
> John Cruz a �crit dans le message :
> 38d6c6f0@newsgroups.ni.com...
> > thanks for the fast response BUT....
> >
> > are you referring to Invoke Node->Method->"Set Control Value" ? It only
> > sets the value of the control (hence the name) and not the attribute.
If
> > your not referring to that... could you point me out to where I can find
> > that node?
> >
> > TIA,
> >
> > John
> >
> > "Jean-Pierre Drolet" wrote in message
> > news:38d6aaee@newsgroups.ni.com...
> > > You use the set value node to set a control of your top level VI. On
the
> > > diagram, this control set the attribute node.
> > >
> > > Jean-Pierre Drolet
> > >
> > > John Cruz a �crit dans le message :
> > > 38d6a351@newsgroups.ni.com...
> > > > Labview 5.1.1
> > > > WinNT 4.0
> > > >
> > > > Hello.
> > > >
> > > > I'm trying to figure out how to retrieve and most importantly, set
the
> > > > attributes of a control from subvi. I remember seeing one post that
> > says
> > > > use the invoke node but all I could find close enough is the set/get
> > > control
> > > > values (not attributes).
> > > >
> > > > Could anyone point me how to solve this?
> > > >
> > > > TIA
> > > > John
> > > > http://www.johncruise.com
> > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>
0 Kudos
Message 5 of 5
(2,749 Views)