Data Acquisition Toolbox | ![]() ![]() |
Remove device objects from the MATLAB workspace
Syntax
Arguments
obj |
A device object or array of device objects. |
obj.Channel(index) |
One or more channels contained by obj . |
obj.Line(index) |
One or more lines contained by obj . |
Description
removes clear obj
obj
and all associated channels or lines from the MATLAB workspace, but not from the data acquisition engine.
removes the specified channels contained by clear obj.Channel(index)
obj
from the MATLAB workspace, but not from the data acquisition engine.
removes the specified lines contained by clear obj.Line(index)
obj
from the MATLAB workspace, but not from the data acquisition engine.
Remarks
Clearing device objects, channels, and lines follows these rules:
clear
does not remove device objects, channels, or lines from the data acquisition engine. Use the delete
function for this purpose.
daqfind
function.
If you use the help
command to display the M-file help for clear
, then you must supply the pathname shown below.
Example
Create the analog input object ai
, copy ai
to a new variable aicopy
, and then clear the original device object from the MATLAB workspace.
Retrieve ai
from the engine with daqfind
, and demonstrate that ai
is identical to aicopy
.
Functions
![]() | binvec2dec | daqcallback | ![]() |