| Data Acquisition Toolbox | Search  Help Desk |
| daqhwinfo | Examples |
Display data acquisition hardware information.
Syntax
hwinfo = daqhwinfo
hwinfo = daqhwinfo('adaptor')
hwinfo = daqhwinfo(obj)
hwinfo = daqhwinfo(obj,'Field')
Description
hwinfo = daqhwinfo returns general hardware-related information as a structure to hwinfo. The information is contained in the fields shown below.| Field |
Description |
ToolboxName
|
Toolbox name
|
ToolboxVersion
|
Toolbox version
|
MatlabVersion
|
MATLAB version
|
InstalledAdaptors
|
Installed adaptors. For example, winsound, nidaq
|
hwinfo = daqhwinfo('adaptor') returns hardware-related information for adaptor as a structure to hwinfo. The information is contained in the fields shown below.hwinfo = daqhwinfo(obj) returns hardware-related information for the device object obj as a structure to hwinfo. The information is contained in the fields shown below
hwinfo = daqhwinfo(obj, 'Field') returns the specified hardware-related information for the device object obj as a structure to hwinfo. Field can be a single field or a cell array of fields. The valid fields are shown below.Example
To display all the installed adaptorshwinfo = daqhwinfo;
hwinfo.InstalledAdaptors
ans =
'winsound'
'nidaq'
To display the subsystems for all installed winsound devices
hwinfo = daqhwinfo('winsound');
hwinfo.Subsystems
ans =
'AnalogInput AnalogOutput'
To display the input ranges for an analog input object created for a sound card
ai = analoginput('winsound');
hwinfo = daqhwinfo(ai);
hwinfo.InputRanges
ans =
'[-1 1]'