Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Exclusive Or

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

Computes the logical exclusive or (XOR) of the inputs. Both inputs must be Boolean or numeric values. If both inputs are TRUE or both inputs are FALSE, the function returns FALSE. Otherwise, it returns TRUE.

The connector pane displays the default data types for this polymorphic function.

Note  This function performs bit-wise operations on numeric inputs.

Example

x must be a Boolean value or a number. It can be a scalar, array or cluster of numbers or Boolean values, array of clusters of numbers or Boolean values, and so on.
y must be a Boolean value or a number. It can be a scalar, array or cluster of numbers or Boolean values, arrays of clusters of numbers or Boolean values, and so on.
x .xor. y? is the logical exclusive or (XOR) of x and y.

Example

Refer to the And VI in the labview\examples\general\functions\Boolean directory for an example of using the Exclusive Or function.


Resources


 

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