Instrument Control Toolbox    

Returning Property Names and Property Values

Once the instrument object is created, you can use the set function to return all configurable properties to a variable or to the command line. Additionally, if a property has a finite set of string values, then set also returns these values.

For example, the configurable properties for the GPIB object g are shown below. The base properties are listed first, followed by the GPIB-specific properties.

You can use the get function to return one or more properties and their current values to a variable or to the command line.

For example, all the properties and their current values for the GPIB object g are shown below. The base properties are listed first, followed by the GPIB-specific properties.

To display the current value for one property, you supply the property name to get.

To display the current values for multiple properties, you include the property names as elements of a cell array.

You can also use the dot notation to display a single property value.


  Configuring and Returning Properties Configuring Property Values