3.1 Common Functions

3.1.1 flushinput

: flushinput (dev)

Flush the instruments input buffers

Inputs

dev - connected device or array of devices

Outputs

None

See also: flushoutput.

3.1.2 flushoutput

: flushoutput (dev)

Flush the instruments output buffers

Inputs

dev - connected device or array of devices

Outputs

None

See also: flushinput.

3.1.3 readbinblock

: data = readbinblock (dev)
: data = readbinblock (dev, datatype)

read a binblock of data from a instrument device

Inputs

dev - connected device

datatype - optional data type to read data as (default ’uint8’)

Outputs

data - data read

See also: flushoutput.

3.1.4 readline

: data = readline (dev)

read data from a instrument device excluding terminator value

Inputs

dev - connected device

Outputs

data - ASCII data read

See also: flushoutput.

3.1.5 writebinblock

: writebinblock (dev, data, datatype)

Write a IEEE 488.2 binblock of data to a instrument device

binblock formatted data is defined as:

#<A><B><C>

where: <A> ASCII number containing the length of part <B>

<B> ASCII number containing the number of bytes of <C>

<C> Binary data block

Inputs

dev - connected device

data - binary data to send

datatype - datatype to send data as

Outputs

None

See also: flushoutput.

3.1.6 writeline

: writeline (dev, data)

Write data to a instrument device including terminator value

Inputs

dev - connected device

data - ASCII data to write

Outputs

None

See also: flushoutput.

3.1.7 writeread

: data = writeread (dev, command)

write a ASCII command and read data from a instrument device.

Inputs

dev - connected device

command - ASCII command

Outputs

data - ASCII data read

See also: readline, writeline.