08-17-2010 12:05 AM
i have total 8 enums named as controller1 to controller 8 with 8 elements in each enum as Channel1 to Channel8. if i choose channel1 in A1, that should get disabled in the corresponding enums (i.e A2 to A8 ).like that it has to fallow... but when u dont choose anything for a particular enum , it will be at its first element Say "NA " and this shud nt get disabled in the corresponding enums.can anybody help me out....... i have attached my code..... i have done most of the part.... bt it is not working as i wished....
thank u.
08-17-2010 01:15 AM
Duplicate - http://forums.ni.com/t5/LabVIEW/about-enums/m-p/1217677#U1217677
08-17-2010 01:28 AM
08-17-2010 02:02 AM
i have attached it.... thanks fr the reply........
08-17-2010 03:05 AM
08-17-2010 04:00 AM
@GerdW
thanks for the reply.... bt in ur reply code if i choose nothin in controller1 (i.e " NA" is der) , then it will get disabled for the corresponding Controllers........
which should nt happen......
08-17-2010 04:06 AM
@GerdW
I mean to say.. if u choose nothin in the controller 1 And choose anytin in the controller 2 (from Channel1 to Channel 😎 then "NA" will get disabled for the remaining Controllers..... which should not happen........
08-17-2010 04:13 AM
08-17-2010 04:21 AM
@GerdW
that is the point where i got stuck.... i could nt find out the Logic der. thats why i hav posted here..
thanks fr the reply......
08-17-2010 12:01 PM
Please don't abbreviate words (like fr instead of for). This isn't text messaging. Abbreviations are harder to read.
I think what you are looking for is in the attached vi. It was a bit challenging but I did it. I use an event structure instead of polling to see when an enum is changed. Then I read all enum values, eliminate the NA's and make an array with the rest. These are the items that should be disabled for all enums.
One thing though, the enum just changed will show its text in grey. You would have to add code to not disable the item just chosen for that enum only. But still disable the chosen item for the rest of the enums. Its very complex.
If you could live with the grey text, then use this vi.