LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

leds

I have a simple example here that i don't know to do it in labview. Let's suppose I have a numeric indicator I want to set it to 0 and a led linked to it turns off and if a set the numeric indicator to 1 the led linked to it turns on.

 

0 Kudos
Message 1 of 6
(2,829 Views)

Hi danilorj,

you can for example use the "Not equal to 0" function.

 

Mike

0 Kudos
Message 2 of 6
(2,825 Views)
Look for the 'Not Equal To 0?' function node.
Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
0 Kudos
Message 3 of 6
(2,824 Views)

danilorj wrote:

Let's suppose I have a numeric indicator I want to set it to 0 and a led linked to it turns off and if a set the numeric indicator to 1 the led linked to it turns on.


Your specifications are ambiguous, because you only tell us about two possible states (0 and 1). What about all the other numbers?

 

Do you want

  1. the LED to be ON if the indicator=1 and off otherwise?
  2. The LED to be ON if the indicator is not zero?
  3. The LED to be ON if the indicator >0.5?
  4. ...?

Also, what is the datatype of the indicator? Is the number the result of some computations? For floating point values, you might need to account for some slack.

 

Can you attach some code?

Message 4 of 6
(2,813 Views)

I think I should better put a numeric control. So I set the maximum to be 1, but is there anyway to set the maximum of it to 1 ? Hence, if set it to 0 the led turns off else it turns on.

0 Kudos
Message 5 of 6
(2,776 Views)

Make sure to make it an integer (blue!).

 

You can specify the allowed range by configuring the "right-click...Data entry..." options.

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