LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem to disable a botton in a array of cluster

Hi everyone,
 
I try to display an alarm history without LabVIEW DSC board.
 
I simulate alarms with an array of boolean buttons. When an alarm is active, I display the tagname, the description of the alarm and a HELP button in an array of cluster. This work well, but I want the HELP button to be enable for SOME (not all) alarms. For example, if the alarms 1, 2 and 3 are active, only the button for the alarm 2 will be enable. I know how to disable a button, but if I disable the button for the alarm 2, it disable ALL the others buttons. I don't know how to do this with my array of cluster.
 
Also, I'd like to display the new alarm in the top of the array. For the moment, the alarms order is numerical, so if the active alarms comes like this: 2, 5, 4, 1, 0, I'll display 0, 1, 2, 4, 5. I've try to use shift register to compare the previous active alarms array to the new one, but it didn't work probably because the lenght of the arrays are not the same. If I compare (=) or if I substract (-) the two arrays, it doesn't tell me which is the new alarm. How can I know which is the new active boolean button?
 
I'm French, so it's hard for me to explain well.. I hope you understand hehe
 
I've attach my VI and a file with all the alarms
 
 
Thank you very mych
I hope you'll help me because I really don't know what to do! Smiley Wink
0 Kudos
Message 1 of 12
(6,590 Views)

Nobody can help me? Smiley Sad

 

Please..

 

At least, can someone tell me how to disable a button in an array of boolean without disable all the elements in the array?

 

Thanx again

Regards,

Stephanie

0 Kudos
Message 2 of 12
(6,558 Views)

Hi, if you have known no. of boolean controls, do consider using cluster of boolean control instead.

Please see attached for reference.

Regards,

Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
Message 3 of 12
(6,552 Views)

Thank you very much Ian!

Is there any other way to do the same thing but with an array instead of a cluster?

Thanx again

Stephanie

0 Kudos
Message 4 of 12
(6,554 Views)
Hi Stephanie,
 
I doubt that you could do the exact to an array of boolean. Maybe I am wrong?!
 
Regards,
 
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 Kudos
Message 5 of 12
(6,537 Views)
Hi Peachy,
I think of something like an invisible (transparent) button and behind it another control (e.g. another Boolean), which looks like an active Button (if set True) or a deactivated one. If you click on it, you click on the invisible button and either ignore it or show the help-window. The disadvantage of this solution is the different behaviour to real buttons, because it doesn't snap in when you click on it.
For me the better solution is to do it like Ian suggested. You could place a cluster right beside the array, looking like beeing part of the array (with some decorations and setting parts to be transparent) and poll the index of the array. Then you can control the enabled-state according to the visible elements of the array.

If you have difficulties doing this, then write back.
Greets, Dave
Greets, Dave
0 Kudos
Message 6 of 12
(6,534 Views)
What I forgot to mention: you don't have acces to properties of the same control at different indices. An array is a field of exactly the same type of controls or indicators. The Elements can only differ in their values.
Dave
Greets, Dave
Message 7 of 12
(6,530 Views)
Hi Dave,
 
Thanx for your advice.
 
I can't use a cluster because I have too much buttons to put inside (about 200). That's why I want to use an array. If an alarm is active, I want a specific boolean button to be enable in the array. If 20 alarms are active, I want to show 20 help buttons but some of them are disable (because there's no specific help for this alarm). If I click on a enable button I want to show a help window. (hope you understand what I want to do)
 
I think your first solution might be good if it's not with a cluster, but I don't know how to do this. If we can't change each element of the array, how you can do that?
 
That would be great if you could show me an example
 
Thanx again for your answer and for your time,
Regards,
 
Stephanie
 
0 Kudos
Message 8 of 12
(6,526 Views)
Hi Peachy,
I made an example, how I would handle the Button- clicks.
I hope this helps.
Dave
Greets, Dave
Message 9 of 12
(6,514 Views)

Amazing!!

Thank you very much Dave! It's exactly what I wanted to do!

I never tought it was that hard to display a simple button hehe

 

Thanx again

Stephanie

Message 10 of 12
(6,512 Views)