01-30-2011 06:28 AM
Hi David,
As just per out email discussion, here is a version that disables the pressed button. If you want it to be disabled and greyed out then just go into the vi and change accordingly.
I added in the other version clusters with different amounts of buttons just to show that it can be done if you want. This version though just has the 2 button cluster as requested.
Rgs,
Lucither.
01-31-2011 07:36 AM
Hi David,
With the buttons configured as they are they will need to be initialised properly. I have attached a version with an Initialisation VI to ensure that they are set up correctly. It allows you to intialise the buttons to either Hi, or Low, individually.
Rgs,
Lucither.
02-01-2011 12:46 PM
Hi,
Here is the vi: Activate button and some on/off buttons (with LED) on panel.
Logid: Activate/enable all/ press any once/ deactivate/ activate again (disable the already pressed button)/the loops goes on
Rgds,
David
02-02-2011 03:58 AM - edited 02-02-2011 03:58 AM
Hi David,
I have attached an example of how to implement what you are after. In the example you have shown me you have gone back to the way you where previously doing it? ie locals, property nodes and wires all over the place. You need to make the functionality you are after modular so you can easily add it to numerous buttons. At the moment as the amount of buttons you add gets larger so does your block diagram. With the way i have done it you could add 100 buttons and the block diagram would not dramatically increase. As all the logic is wrapped into small modules there is also going to be less likelihood of bugs being created and if there are they will be easy to find.
I hope this is it. The spec seems to change everytime i send you an example ![]()
Rgs,
Lucither
02-03-2011 06:42 AM
Thanks Lucither,
This is almost this (now, i'm following the 'function approach'). What I recently tried, is to create a shared variable to register the booleans values of LED (buttons if neccessary). So far, I did it like this, Chreat a project library, shared variable, type: Custom control, is this the correct way and then should it connected in the main vi?
Rgds,
David