| Data Acquisition Toolbox | ![]() |
Return the size of a 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)
Arguments
Description
returns the two-element row vector d = size(obj)
d = [m,n] containing the number of rows and columns in obj.
returns the length of the first [m1,m2,m3,...,mn] = size(obj)
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.
returns the length of the dimension specified by the scalar m = size(obj,dim)
dim. For example, size(obj,1) returns the number of rows.
returns the two-element row vector d = size(obj.Channel)
d = [m,n] containing the number of rows and columns in the channel group obj.Channel.
returns the length of the first [m1,m2,m3,...,mn] = size(obj.Channel)
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.
returns the length of the dimension specified by the scalar m = size(obj.Channel,dim)
dim. For example, size(obj.Channel,1) returns the number of rows.
returns the two-element row vector d = size(obj.Line)
d = [m,n] containing the number of rows and columns in the line group obj.Line.
returns the length of the first [m1,m2,m3,...,mn] = size(obj.Line)
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.
returns the length of the dimension specified by the scalar m = size(obj.Line,dim)
dim. For example, size(obj.Line,1) returns the number of rows.
Example
Create the analog input object ai for a National Instruments board and add eight channels to it.
To find the size of the device object:
To find the size of the channel group:
Functions
| showdaqevents | softscope | ![]() |