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

bitnot (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 = bitnot(a, b)

Legacy Name: bitcmp

Description

Computes the bitwise complement of the input elements. For example, if a = 9 (1001), bitnot(a, 8) = 246 (11110110).

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 the number of bits you want in c. b is a positive integer.

Outputs

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

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]
C = bitnot(A, 8)

Related Topics

bitand
bitget
bitor
bitset
bitshift
bitxor
maxfloatint


 

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