Data Acquisition Toolbox    
UserData

Store data that you want to associate with a device object

Description

UserData stores data that you want to associate with the device object.

Note that if you return analog input object information to the MATLAB workspace using the daqread function, the UserData value is not restored.

Characteristics

Usage
AI, AO, DIO, Common
Access
Read/write
Data type
Any type
Read-only when running
No

Values

The default value is an empty vector.

Example

Create the analog input object ai and add two channels to it.

Suppose you want to access filter coefficients during the acquisition. You can create a structure to store these coefficients, which can then be stored in UserData.


  UnitsRange Device-Specific Property Reference