Instrument-control Toolkit - readbinblock
- :
data =readbinblock(dev) - :
data =readbinblock(dev, datatype) read a binblock of data from an instrument device
readbinblock will discard any data before a recognised binblock. If no binblock is found or read, an empty data will be returned.
Inputs
dev - connected device
datatype - optional data type to read data as (default ’uint8’) Valid values are:
- "string"
maps to a char array
- "char", "schar", "int8"
maps to int8
- "uchar", "uint8"
maps to uint8
- "int16", "short"
maps to int16
- "uint16", "ushort"
maps to uint16
- "int32", "int"
maps to int32
- "uint32", "uint"
maps to uint32
- "int64", "long"
maps to int64
- "uint64", "ulong"
maps to uint64
- "single", "float", "float32"
maps to single
- "double", "float64"
maps to double
Outputs
data - data read
See also: writebinblock.