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.