(dev)
¶Flush the instruments input buffers
dev - connected device or array of devices
None
See also: flushoutput.
(dev)
¶Flush the instruments output buffers
dev - connected device or array of devices
None
See also: flushinput.
data =
readline (dev)
¶read data from a instrument device excluding terminator value
dev - connected device
data - ASCII data read
See also: flushoutput.
(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
dev - connected device
data - binary data to send
datatype - datatype to send data as
None
See also: flushoutput.
(dev, data)
¶Write data to a instrument device including terminator value
dev - connected device
data - ASCII data to write
None
See also: flushoutput.
data =
writeread (dev, command)
¶write a ASCII command and read data from a instrument device.
dev - connected device
command - ASCII command
data - ASCII data read
See also: readline, writeline.