NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
Kousy
Posts: 109
0 Kudos

Find & replace property nodes of Ring control with Listbox control

I have used Ring control as dropdown menu to select one item from roughly about 10 items. Ring control shows one item visibly at a time. So I wanted to show all 10 items in one shot and select any one, I have changed Ring control to Listbox control. In Block diagram based on some criteria I made some of the Ring Control disabled during run time in state machine cases.

 

Is there a way to find and replace all ring conrtol property nodes in one shot with listbox control?

 

Thanks

 

 

 

Trusted Enthusiast
TiTou
Posts: 2,689
0 Kudos

Re: Find & replace property nodes of Ring control with Listbox control

[ Edited ]

Not that I know about, if a property node is linked to a control and you the change the type of this control (e.g. replace a ring with a listbox) then the property nodes/invoke nodes tahtt were linked will be broken and will have to be relinked one by one.

 

I think you'd have less to do if you had generic property node to whch you pass the control ref, this way, changing a control type, the ref would follow and all the properties that are common to both type (previous type and new type) would not be broken, I believe.

________________________________________________________________
"Cambiar el mundo, amigo Sancho, que no es locura ni utopía. sino justicia."
Cervantes
Member
Kousy
Posts: 109
0 Kudos

Re: Find & replace property nodes of Ring control with Listbox control

Yes I agree & I understand. Passing reference is the only possible way it seems.

 

Thanks.

Active Participant
pcardinale
Posts: 345
0 Kudos

Re: Find & replace property nodes of Ring control with Listbox control

It could be done with scripting, but unless the number of property nodes is very large, it wouldn't be worth the effort.

Member
Kousy
Posts: 109
0 Kudos

Re: Find & replace property nodes of Ring control with Listbox control

Im not aware of scripting. How is that can be done? In current project I've started linking the ring with listbox. Would like to learn that scripting aspect. Let me check whether help files are available.

 

Thanks

By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page