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

all (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


status = all(a)

status = all(a, dim)


Determines whether all input elements are non-zero.



Name Description
a Specifies a scalar, vector, or matrix of Boolean values.
dim Specifies the dimension along which LabVIEW determines whether all input elements are non-zero. dim is an integer that accepts the following values.

1 (default) Works column-wise and returns a row vector containing one Boolean element for each column of a.
2 Works row-wise and returns a column vector containing one Boolean element for each row of a.


Name Description
status Returns 0 if a contains an element equal to zero. Otherwise, this function returns 1. status is a Boolean.


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


A = [-2, -1, 1, 2]
STATUS = all(A)

Related Topics



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