Data Acquisition Toolbox | ![]() ![]() |
Display data acquisition hardware information
Syntax
out = daqhwinfo
out = daqhwinfo('
adaptor
')
out = daqhwinfo(obj)
out = daqhwinfo(obj,'
FieldName
')
Arguments
Description
returns general hardware-related information as a structure to out = daqhwinfo
out
. The returned information includes installed adaptors, the toolbox and MATLAB version, and the toolbox name.
returns hardware-related information for the specified out = daqhwinfo('
adaptor
')
adaptor
. The returned information includes the adaptor DLL name, the board names and IDs, and the device object constructor syntax.
returns hardware-related information for the device object out = daqhwinfo(obj)
obj
. If obj
is an array of device objects, then out
is a 1-by-n cell array of structures where n is the length of obj
. The returned information depends on the device object type, and may include the maximum and minimum sampling rates, the channel gains, the hardware channel or line IDs, and the vendor driver version.
returns the hardware-related information specified by out = daqhwinfo(obj,'
FieldName
')
FieldName
for the device object obj
. FieldName
can be a single field name or a cell array of field names. out
is an m-by-n cell array where m is the length of obj
and n is the length of FieldName
. You can return a list of valid field names with the daqhwinfo(obj)
syntax.
Example
To display all installed adaptors
out = daqhwinfo; out.InstalledAdaptors ans = 'cbi' 'hpe1432' 'nidaq' 'winsound'
To display the device object constructor names for all installed winsound
devices
out = daqhwinfo('winsound');
out.ObjectConstructorName
ans =
'analoginput('winsound',0)'
'analogoutput('winsound',0)'
Create the analog input object ai
for a sound card. To display the input ranges for ai
ai = analoginput('winsound'); out = daqhwinfo(ai); out.InputRanges ans = -1 1
To display the minimum and maximum sampling rates for ai
out = daqhwinfo(ai,{'MinSampleRate','MaxSampleRate'}) out = [8000] [44100]
![]() | daqhelp | daqmem | ![]() |