| Data Acquisition Toolbox | Search  Help Desk |
| Tag | Examples See Also |
Tag provides a means to identify device objects with a label. Using the daqfind function and the Tag value, a device object that was cleared from the MATLAB workspace can be identified and retrieved.
Characteristics
| Device Objects | AI, AO |
| Class | Common |
| Access | Read/write |
| Data Type | String |
| Modify while Running | Yes |
Values
The default value is an empty string.Example
For example, suppose you want to label the analog input objectAI.
set(AI, 'Tag', 'Sound')
AI is cleared from the workspace, then daqfind and the Tag value can be used to identify and retrieve the object.
clear AI
AIcell = daqfind('Tag', 'Sound')
AI = AIcell{1}
See Also
Functions
daqfind