Data Acquisition Toolbox    
length

Return the length of a device object, channel group, or line group

Syntax

Arguments

obj
A device object or array of device objects.
obj.Channel
The channels contained by obj.
obj.Line
The lines contained by obj.
out
A double.

Description

out = length(obj) returns the length of the device object obj to out.

out = length(obj.Channel) returns the length of the channel group contained by obj.

out = length(obj.Line) returns the length of the line group contained by obj.

Example

Create the analog input object ai for a National Instruments board and add eight channels to it.

Create the analog output object ao for a National Instruments board, add one channel to it, and create the device object array aiao.

To find the length of aiao

To find the length of the analog input channel group

See Also

Functions

size


 isvalid load