Instrument Control Toolbox    

Connecting to the Instrument

Before you can use the instrument object to write or read data, you must connect it to the instrument whose address or port is specified in the creation function. You connect an instrument object to the instrument with the fopen function.

Some properties are read-only while the instrument object is connected and must be configured before using fopen. Examples include the InputBufferSize and the OutputBufferSize properties. You can determine when a property is configurable with the propinfo function, or by referring to Property Reference.

You can examine the Status property to verify that the instrument object is connected to the instrument.

As illustrated below, the connection between the instrument object and the instrument is complete, and you can write and read data.


  Creating an Array of Instrument Objects Configuring and Returning Properties