Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

Select

LabVIEW 8.2 Help
August 2006

NI Part Number:
371361B-01

»View Product Info
Download Help (Windows Only)

Returns the value wired to the t input or f input, depending on the value of s. If s is TRUE, this function returns the value wired to t. If s is FALSE, this function returns the value wired to f. The connector pane displays the default data types for this polymorphic function. Example

t is the value that this function returns if s passes a TRUE value. t and f must be of the same type, but they can have different numeric representations.
s determines whether the function returns the value of t or f in s? t:f. If you wire an error cluster to s and an error occurs, the error cluster passes a TRUE value to the function. Otherwise, the error cluster passes a FALSE value to the function.
f is the value that this function returns if s passes a FALSE value. t and f must be of the same type, but they can have different numeric representations.
s? t:f is the value wired to t if s is TRUE. s? t:f is the value wired to f if s is FALSE.

Example

Refer to the Select VI in the labview\examples\general\functions\Comparison directory for an example of using the Select function.

 


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit