LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Enabling LED when it reads the value

hi all,

 

i am acquiring signal using hall sensor.. i want LED to glow RED when the hall voltage is 0.5 and green when voltage is 0.7 (values are just for an example)... should i use the event structure? can anyone show me the sample code..

 

thanq

Every Expert was once a Beginner!!
0 Kudos
Message 1 of 2
(2,274 Views)

Hi,

 

A case structure or even some simple boolean/comparison logic would be best. Do a bit of research and have a go at coding something yourself. You'll understand things a lot better and it's much better in the long run. Feel free to post back with your code for us to help some more.

 

-CC

----------------------------------------------------------------------------------------------------------------------------
"If anyone needs me, I'll be in the Angry Dome!"


Message 2 of 2
(2,266 Views)