07-18-2016 01:27 AM - edited 07-18-2016 01:32 AM
Hello,
I'm using 6 Enum controls with same items and each enum having 1. Analog-1, 2. Analog-2, 3. Digital-1, 4. Digital-2.
At any instant I have to select Analog-1 in any two controls and remaining four controls that item should be disabled.
Similarly Analog-2 in any four controls, Digital-1 and Digital-2 in any five controls.
Please help me in this implementation.
Regards,
Sonti
Solved! Go to Solution.
07-18-2016 02:01 AM
"DisabledItems" property node of the enum control will do this functionality. You need some logical implementation with event control. Have you tried anything using those controls? Can you post the VI you have tried so far?
07-18-2016 02:09 AM
I'm thinking about the logic between the Enums.
Till now no logic is impemented. Please help in this.
07-18-2016 02:13 AM
Hello,
The following code disables the Analog-1 item on enums 2-6, when on enum1 Analog-1 is selected. Still, if you would like to implement your idea this way, you will have to create some large logic.
Regards,
Adam
07-18-2016 02:17 AM
Actually your VI has Ring controls not Enum. Anyway no problem with that. You can create separate event case for each control's "value change event". In each case you can use the property nodes of other controls for disabling that particular item.
07-18-2016 02:28 AM - edited 07-18-2016 02:29 AM
Hello Adam,
Your disabling Analog-1 in 2-6 enums but maximum Analog-1 selections are two out of six.
How to check the Analog-1 is selected in two control or not? and similarly other items also.
Regards
Sonti
07-18-2016 02:35 AM
You could use four separate counters (since there are four enum items), and check thier values in the event case.
07-18-2016 05:43 AM
Hello,
So far I tried but I didn't achive the output.
Kindly, anyone send the simple logic for for one case.
Regards,
Sonti