03-05-2009 04:51 AM
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.
03-05-2009 04:55 AM
Hi danilorj,
you can for example use the "Not equal to 0" function.
Mike
03-05-2009 04:55 AM
03-05-2009 05:23 AM
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
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?
03-05-2009 11:44 AM
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.
03-05-2009 11:55 AM
Make sure to make it an integer (blue!).
You can specify the allowed range by configuring the "right-click...Data entry..." options.