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

or (MathScript RT Module Function)

LabVIEW 2012 MathScript RT Module Help

Edition Date: June 2012

Part Number: 373123C-01

»View Product Info
Download Help (Windows Only)

Owning Class: boolean

Requires: MathScript RT Module

Syntax

c = or(a, b)

Description

Determines whether at least one of the corresponding elements in the input matrices is non-zero. or(a, b) is equivalent to a|b.

Examples

Inputs

Name Description
a Specifies a scalar, vector, or matrix of Boolean values.
b Specifies a scalar, vector, or matrix of Boolean values. b must be the same size as a.

Outputs

Name Description
c Returns Boolean values, where an element in c is 1 if at least one of the corresponding elements in a and b is non-zero. Otherwise, the element is 0. c is a scalar, vector, or matrix of the same size as a.

Details

The following table lists the support characteristics of this function.

Supported in the LabVIEW Run-Time Engine Yes
Supported on RT targets Yes
Suitable for bounded execution times on RT Not characterized

Examples

A = [1, 0]
B = [1, 1]
C = or(A, B)


 

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