LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to change combox value programatically

Solved!
Go to solution

test.PNG

 

Here if i press ON Button Combobox should change to ON Led should turn ON& if i press OFF Button Conboxbox should change to OFF & Led should turn OFF. 

How to make this using block diagram, which property i have to take for combo box.

 

Thanks in advance:)

Thanks & Regards,
Harish. G.
0 Kudos
Message 1 of 6
(2,756 Views)

Hi

 

Why do you have a Combo box and not a string indicator?

 

If you are only using to Combobox to show On/Off value as per the button click, you could instead use a String indicator and Write 'On' into it when On button is true and vice-versa

 

If you can post your code, we can help you in getting it done.

 

You should use and Event structure with value change events defined for On and Off buttons. use property nodes of the combo box/ string/ LED inside these events and set their Value propery as the expected behavior.

Regards
Freelance_LV
TestAutomation Consultant
0 Kudos
Message 2 of 6
(2,750 Views)

Hi,

 

          How to set the Property of Combobox, which property i have to take i tried String Values property node it was not changing. 

 

               Can u please tell me the answer.

Thanks & Regards,
Harish. G.
0 Kudos
Message 3 of 6
(2,746 Views)

Hi Harish,

 

You need to set the "Value" property.

 

value.png


Regards,

Peter D

0 Kudos
Message 4 of 6
(2,743 Views)
Solution
Accepted by topic author harishg92

I got the solution. Thanks Peter. I am using integer combobox.

test.PNG

 

Thanks & Regards,
Harish. G.
0 Kudos
Message 5 of 6
(2,733 Views)

Hello Harish,

 

That's a Ring Control.

 

But good you found the solution. 🙂

 

Regards,

Bijay

0 Kudos
Message 6 of 6
(2,725 Views)