Write one binblock of data to 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");
Write the values
[1,2,3,4,5] as a binblock in
double format to the VISA resource
v— VISA resource
VISA resource, specified as a
writebinblock(v,1:5,"uint8") writes a binblock of data to
the VISA resource
data— Numeric or ASCII data
Nnumeric array | character vector | string scalar
Numeric or ASCII data, specified as a 1-by-
N vector of numeric
values or as a character vector or string scalar of text. For all numeric
data is a row vector of
writebinblock(v,1:5,"uint8") writes the values
datatype— Size and format of each value
Size and format of each value, specified as a character vector or string.
datatype determines the number of bytes to write for each value
and the interpretation of those bytes as a MATLAB data type.
writebinblock(v,1:5,"double") writes the values
[1,2,3,4,5] as double data.