configureCallback
(Removed) Set callback function and trigger condition for communication with VISA resource
Since R2021a
As of R2022a, callback functions for the visadev
interface have been
removed. The configureCallback
function and the
NumBytesAvailable
, BytesAvailableFcnMode
,
BytesAvailableFcnCount
, and BytesAvailableFcn
properties are no longer supported for visadev
objects.
Syntax
Description
configureCallback(
sets the callback function v
,"terminator",callbackFcn
)callbackFcn
to trigger whenever a terminator
is available to be read from the VISA resource v
. The syntax sets the
BytesAvailableFcnMode
property of v
to
"terminator"
and the BytesAvailableFcn
property to
callbackFcn
.
Set the terminator character using configureTerminator
.
configureCallback(
sets the callback function v
,"byte",count
,callbackFcn
)callbackFcn
to trigger whenever a new
count
number of bytes are available to be read. The syntax sets the
BytesAvailableFcnMode
property of v
to
"byte"
, the BytesAvailableFcnCount
property to
count
, and the BytesAvailableFcn
property to
callbackFcn
.