Read one binblock of data from VISA resource
reads a binblock of data from the VISA resource
data = readbinblock(
v and returns the data
as a row vector of doubles. The function suspends MATLAB® execution until the number of values specified in the binblock is read or a
Read Binblock of Data from VISA Resource
Create a connection to a VISA resource. This example shows a connection to a device
with the alias
COM4 using the VISA-Serial interface.
v = visadev("COM4");
Read a binblock of
uint8 data from the VISA resource
data = readbinblock(v);
v — VISA resource
VISA resource, specified as a
readbinblock(v) reads a binblock of data from the VISA
datatype — Size and format of each value
"uint8" (default) |
Size and format of each value, specified as a character vector or string.
datatype determines the number of bytes to read for each value
and the interpretation of those bytes as a MATLAB data type.
readbinblock(v,"double") reads a binblock of double
Introduced in R2021a