Instrument Control Toolbox | ![]() ![]() |
Return instrument object property information
Syntax
Arguments
obj |
An instrument object. |
' PropertyName ' |
A property name or cell array of property names. |
out |
A structure containing property information. |
Description
returns the structure out = propinfo(obj)
out
with field names given by the property names for obj
. Each property name in out
contains the fields shown below.
out = propinfo(obj,'
PropertyName')
returns the structure out
for the property specified by PropertyName. The field names of out
are given in the table shown above. If PropertyName is a cell array of property names, a cell array of structures is returned for each property.
Remarks
You can get help for instrument object properties with the instrhelp
function.
You can display all instrument object property names and their current values using the get
function. You can display all configurable properties and their possible values using the set
function.
When you specify property names, you can do so without regard to case, and you can make use of property name completion. For example, if g
is a GPIB object, then the following commands are all valid.
Example
To return all property information for the GPIB object g
:
To display all the property information for the InputBufferSize
property:
out.InputBufferSize ans = Type: 'double' Constraint: 'none' ConstraintValue: '' DefaultValue: 512 ReadOnly: 'whileOpen' InterfaceSpecific: 0
To display the default value for the EOSMode
property:
Functions
![]() | obj2mfile | query | ![]() |