This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

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 interface object to the instrument with the fopen function.


Some properties are read-only while the 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 the properties documentation.


You can create any number of instrument objects. However, at any time, you can connect only one instrument object to an instrument with a given address or port.

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

ans =

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

Was this topic helpful?