| Data Acquisition Toolbox | Search  Help Desk |
| isline | Examples See Also |
Syntax
isline(obj.Line(index))
Description
isline(obj.Line(index)) returns a logical "1" if obj.Line(index) is a line. Otherwise, a logical "0" is returned. isline does not determine if lines are valid (associated with hardware). To check for valid lines, use the isvalid function.
Note:
isline directly only when you are creating your own M-files.
Example
Suppose you create the functionfunc for use with the Data Acquisition Toolbox. If func is passed one or more lines as an input argument, then the first thing you should do in the function is check if the argument is a line.
You can examine the Data Acquisition Toolbox M-files for examples usingfunction func(obj.Line)% Determine if a line was passed.if ~isline(obj.Line)error('The argument passed is not a line.');end
isline.
See Also
Functions
delete, isvalid