Instrument-control Toolkit - 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. It should be a string or 1 by N row vector

datatype - datatype to send data as

Outputs

None

See also: readbinblock.