Documentation

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 an instrument object to write or read data, you must connect it to the instrument. You connect an interface object to the instrument with the fopen function; you connect a device object to the instrument with the connect function.

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

obj.Status
ans =
open

Some properties of the object are read-only while the object is connected and must be configured before connecting. Examples of interface object properties that are read-only when the object is connected include InputBufferSize and OutputBufferSize. You can determine when a property is configurable with the propinfo function or by referring to the properties documentation.

Was this topic helpful?