LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Programatically changing the color of buttons on LV OI

Solved!
Go to solution

Hi,

 

I've modified the sample Operator Interface shipped with TestStand.

Buttons are linked to subsequences, so when a button is pushed a subsequence is running (boolean buttons).

What I would like to achieve is that, once a subsequence was called and the result was OK (pass) then the color of the button should change to green.

If the subsequence is failed then the button should change to red.

 

Thanks for any suggestions in advance.

 

0 Kudos
Message 1 of 5
(6,272 Views)

Use a porperty node to do this. See the example

Tim
GHSP
0 Kudos
Message 2 of 5
(6,263 Views)
Solution
Accepted by topic author kopisti

Hi,

 

You can find an example in Example Finder: "Property Nodes.vi" . It shows how you can change any properties for an object from your program.

 

You can find more examples on zone.ni.com, like these:

- Using Property Nodes to Change the Color of a Slide Bar https://decibel.ni.com/content/docs/DOC-2133

- Programatically Change the Color and Visibility of a Boolean using Property Nodes https://decibel.ni.com/content/docs/DOC-16569

 

Regards,

Peter Vago
0 Kudos
Message 3 of 5
(6,229 Views)

Hello Peter,

 

Thanks for your reply.

My question would be now, how can I get the subsequences result (pass / fail) from Teststand during the run of the program?

Thanks.

 

Istvan

0 Kudos
Message 4 of 5
(6,213 Views)

Hi,

 

I think it would be better to create a new thread for this question, because it is independent from LV and Porperty nodes. I would be good to have here a link to the new thread.

(And..probably you can find the solution after a little  searching. I suggest to start here: http://zone.ni.com/devzone/cda/tut/p/id/4267)

 

If you got the answer for your previous question, please sign it as a solution (Options ->Accept as solution)

 

 

Peter Vago
0 Kudos
Message 5 of 5
(6,188 Views)