Instrument Control Toolbox    
instrhwinfo

Return information about available hardware

Syntax

Arguments

'interface'
A supported instrument interface.
'adaptor'
A supported GPIB or VISA adaptor.
obj
An instrument object.
'FieldName'
A field name or cell array of field names associated with obj.
out
A structure or array containing hardware information.

Description

out = instrhwinfo returns hardware information to the structure out. This information includes the toolbox version, MATLAB version and supported interfaces.

out = instrhwinfo('interface') returns information related to the interface specified by interface. interface can be serial, gpib, or visa. For the GPIB and VISA interfaces, the returned information includes installed adaptors. For the serial port interface, the returned information includes the available ports and the object constructor name.

out = instrhwinfo('interface','adaptor') returns information related to the adaptor specified by adaptor, and for the interface specified by interface. interface can be gpib or visa. The returned information includes the adaptor version and available hardware. The GPIB adaptors are agilent, ni, cbi, cec, iotech, and keithley. The VISA adaptors are agilent and ni.

out = instrhwinfo(obj) returns information on the adaptor and vendor-supplied DLL associated with the VISA or GPIB object obj. If obj is a serial port object, then JAR file information is returned

out = instrhwinfo(obj,'FieldName') returns hardware information for the field name specified by FieldName. FieldName can be a single string or a cell array of strings. out is a 1-by-N cell array where N is the length of FieldName. You can return the supported values for FieldName using the instrhwinfo(obj) syntax.

Example

The following commands illustrate some of the ways you can get hardware-related information without creating an instrument object.

The following commands illustrate some of the ways you can get hardware-related information for an existing instrument object.


 instrhelp instrreset