LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Suppose there is a variable n, I want to check n != 0, if true n + 10, PLEASEEEE

Suppose there is a variable n, I want to check n != 0, if true n + 10
0 Kudos
Message 1 of 4
(314 Views)

What is a variable? (In LabVIEW, typically "the wire is the variable")

 

What have you tried?

Where is the input coming from? Where is the output used?

What is the input datatype (dynamic, scalar, waveform, array, integer, floating point, etc. etc.)

Is the program complete after that operation or should it continue?

 

All you probably need (code-wise) is in the comparison and numeric palettes.

 

0 Kudos
Message 2 of 4
(308 Views)

Assuming the input is a control, here's one possibility (NOT recommended!):

 

altenbach_0-1716052602527.png

 

Note that LabVIEW is a dataflow language and controls are for user interactions. Except for very specific UI related tasks, is not recommended that the code fights with the user for control of an input. Maybe you could tell us in more general terms what you are trying to achieve and how it fits into the big picture of your algorithm.

 

Have you looked at any of the learning resources listed at the top of the forum yet? I strongly recommend you do so.

0 Kudos
Message 3 of 4
(292 Views)

thank you 🙂

0 Kudos
Message 4 of 4
(239 Views)