Instrument Control Toolbox    

Configuring Properties During Object Creation

Instrument objects contain properties that reflect the functionality of your instrument. You control the behavior of your instrument control application by configuring values for these properties.

As described in Configuring and Returning Properties, you configure properties using the set function or the dot notation. You can also configure properties during object creation by specifying property name/property value pairs. For example, the following command configures the EOSMode and EOSCharCode properties for the GPIB object g.

If you specify an invalid property name or property value, the object is not created. However, if you specify a value that is not supported by your instrument, the object will be created but you will not be informed of the invalid value until you connect the object to the instrument with the fopen function. For example, suppose you configure the BaudRate property to 2. Although this is a valid value for the property, it is an invalid value for the instrument.

For more information about configuring properties, refer to Configuring and Returning Properties. For detailed property descriptions, refer to Property Reference.


  Creating an Instrument Object Creating an Array of Instrument Objects