LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Help to link buttons together

pwr and load.pngI got 9 buttons thats needs to work together.

 

When pressing Bench PWR. The Bench PWR. and OFF goes ON.

When pressing NO LOAD, OFF buttons goes off and Bench PWR. stays on.

When pressing 200VA Unity, NO LOAD goes off and Bench PWR. stays on.

And sow on, the Bench PWR. button must always stay ON, and the other buttons must change.

 

When pressing Bench PWR. to OFF all buttons goes off.

 

I also want all the buttons abow Bench PWR. not to work if Bench PWR. is not ON.

kls
0 Kudos
Message 1 of 8
(3,220 Views)

You can solve this using an event structure that monitors value change for each of the buttons. If you are not already familiar with the event structure, this is a structure that executes a certain code if an event occurs. The event could for instance be a button value change (true to false, or false to true). 

In the different events, use a case structure to check the state of the button and change other buttons using property nodes.

 

Best regards,

Jarle Ekanger, MSc, PhD, CLD
Flow Design Bureau AS

- "The resistance of wires in LabVIEW is not dependent on their length."
0 Kudos
Message 2 of 8
(3,208 Views)

Got an example for me, completely new whit this.

kls
0 Kudos
Message 3 of 8
(3,205 Views)

just one event, clicking the main button.

 

also, have a look at examples/tutorials using event structures.

Best regards,

Jarle Ekanger, MSc, PhD, CLD
Flow Design Bureau AS

- "The resistance of wires in LabVIEW is not dependent on their length."
0 Kudos
Message 4 of 8
(3,197 Views)

Tanks a loot.

 

Do you have an example for 2 slave buttons for me, one on and one off, men when other is pressed the other goes off.

kls
0 Kudos
Message 5 of 8
(3,182 Views)

the example i've given you shows the method you need to use, i suggest you experiment a little with it and you'll soon be able to do what you want 🙂

Best regards,

Jarle Ekanger, MSc, PhD, CLD
Flow Design Bureau AS

- "The resistance of wires in LabVIEW is not dependent on their length."
0 Kudos
Message 6 of 8
(3,180 Views)

I am gething closer.

Only 2 missing steps left.

 

1. When SHORT is pressed I want it to go to 400VA UNITY after 5 seconds.

2. When one button is pressed, it cant be pressed again.

 

 

kls
0 Kudos
Message 7 of 8
(3,093 Views)

Hi Kimlorentz,

 

If i well understand the requirement why you are not planning to use radio button.

 

Look the attached VI.

Thanks and Regards
Himanshu Goyal | LabVIEW Engineer- Power System Automation
Values that steer us ahead: Passion | Innovation | Ambition | Diligence | Teamwork
It Only gets BETTER!!!
0 Kudos
Message 8 of 8
(3,082 Views)