04-09-2013 01:46 AM - edited 04-09-2013 01:54 AM
I have a cluster of 4 elements. One of the element is a Ring with 4 data entries. Is it possible to manipulate these 4 data entires depending on a condition?
For example, when a condition = 1; then 3 of the ring entries should be disabled and greyed. When not, all 4 entries should be enabled.
IS there a way to get local variable for these ring entries in a cluster. or any ideas?
Solved! Go to Solution.
04-09-2013 03:20 AM
Just right-click the direction control in the cluster (on the front panel) and select Create > Property Node > Disabled.
You can have property nodes to individual cluster elements.
04-09-2013 03:26 AM
select Create > Property Node > Disabled makes the whole control disabled and greyed. Depending on the condition i just want to disable 2 entries (Left to Right & Bottom to Top) in the Direction Ring Control.
04-09-2013 03:32 AM - edited 04-09-2013 03:33 AM
Did you right-click the 'Direction' control? When doing so you get a property node to this control.
Again, on the front panel (not on the block diagram), right-click the 'Direction' control.
04-09-2013 03:50 AM - edited 04-09-2013 03:50 AM
Yes I did it on the front panel. I guess you didnt understand what i want.. see attachment ps
04-09-2013 03:54 AM
Is it so hard?
Snippets don't really work with implicit property nodes, so I attached a vi.
04-09-2013 03:57 AM - edited 04-09-2013 04:01 AM
Hi
when you right click on the ring control, you will have a Create->Property Node-> Disabled Items[]
AS LONG AS you ring control is not Strictly Type Def, or the cluster containing the ring control is not Strictly Type Defined, you can programmatically use the 'Disabled Items []' property to get the behavior.
When a condition is true, wire the index numbers of the items which are to be disabled to this propery node.
Edit: I see that dan_u has already replied, but I could not open the vi from dan_u, I have LV 2010.
so, attached is the vi as per my explanation.
04-09-2013 04:26 AM - edited 04-09-2013 04:32 AM
Hello ,
Refer attached VI
Edit : True case: C & D are Disabled and False Case: A & B are disabled.
Ignore the comments at Front panel.
Regards,
Bijay
04-09-2013 05:57 AM
Hi all..
Thanks for the replies.... I could not open Bijays version since am having LV 2011.
dan_u's VI disables all the elements in direction.
Thanks to Freelance_LV. That was what i wanted. I actually didnt think of wiring the index numbers to disable.
Thanks
04-09-2013 08:03 AM - edited 04-09-2013 08:03 AM
@Nghtcrwlr wrote:
dan_u's VI disables all the elements in direction.
Yes, I was showing it is possible to create a property node for an element inside a cluster. I was assuming you would find your way from there...