Data Acquisition Toolbox
  Function/Property:
    Search    Help Desk 
size    Examples   See Also

Return the size of a data acquisition device object, channel group, or line group.

Syntax

d = size(obj)

[m1, m2, m3, ..., mn] = size(obj)

m = size(obj, dim)

d = size(obj.Channel)

[m1, m2, m3, ..., mn] = size(obj.Channel)

m = size(obj.Channel, dim)

d = size(obj.Line)

[m1, m2, m3, ..., mn] = size(obj.Line)

m = size(obj.Line, dim)

Description

d = size(obj) returns the two-element row vector d = [m, n] containing the number of rows and columns in the data acquisition device object obj.

[m1, m2, m3, ..., mn] = size(obj) returns the length of the first n dimensions of obj to separate output variables. For example, [m, n] = size(obj) returns the number of rows to m and the number of columns to n.

m = size(obj, dim) returns the length of the dimension specified by the scalar dim. For example, size(obj, 1) returns the number of rows.

d = size(obj.Channel) returns the two-element row vector d = [m, n] containing the number of rows and columns in the channel group obj.Channel.

[m1, m2, m3, ..., mn] = size(obj.Channel) returns the length of the first n dimensions of the channel group obj.Channel to separate output variables. For example, [m, n] = size(obj.Channel) returns the number of rows to m and the number of columns to n.

m = size(obj.Channel, dim) returns the length of the dimension specified by the scalar dim. For example, size(obj.Channel, 1) returns the number of rows.

d = size(obj.Line) returns the two-element row vector d = [m, n] containing the number of rows and columns in the line group obj.Line.

[m1, m2, m3, ..., mn] = size(obj.Line) returns the length of the first n dimensions of the line group obj.Line to separate output variables. For example, [m, n] = size(obj.Line) returns the number of rows to m and the number of columns to n.

m = size(obj.Line, dim) returns the length of the dimension specified by the scalar dim. For example, size(obj.Line, 1) returns the number of rows.

Example

Suppose you create the analog input object ai for a National Instruments board and add 8 channels to it.

To find the size of the device object

To find the size of the channel group

See Also

Functions

length



[ Previous | Help Desk | Next ]