From 9:00 AM - 12:00 PM CDT on Saturday, June 6th, ni.com will be undergoing system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

bitor (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: bitwise

Requires: MathScript RT Module

Syntax

c = bitor(a, b)

Description

Computes the bitwise or of corresponding elements of two input matrices. For example, if a = 3 (011) and b = 9 (1001), bitor(a, b) = bitor(3, 9) = 11 (1011).

Examples

Inputs

Name Description
a Specifies a scalar, vector, or matrix of positive integers. All elements of a must be less than maxfloatint.
b Specifies a scalar, vector, or matrix of positive integers. b must be the same size as a. All elements of b must be less than maxfloatint.

Outputs

Name Description
c Returns the bitwise or of a and b. c is a matrix of the same size as a and b.

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 Yes

Examples

A = [134, 45, 232]
B = [453, 32, 134]
C = bitor(A, B)

Related Topics

bitand
bitget
bitnot
bitset
bitshift
bitxor
maxfloatint

WAS THIS ARTICLE HELPFUL?

Not Helpful