configureCallback
Set callback function and trigger condition for communication with remote host over TCP/IP
Syntax
Description
configureCallback(
sets the callback function t,"terminator",callbackFcn)callbackFcn to trigger whenever a terminator
is available to be read from the remote host specified by the TCP/IP client
t. The syntax sets the BytesAvailableFcnMode
property of t to "terminator" and the
BytesAvailableFcn property to
callbackFcn.
Set the terminator character using configureTerminator.
configureCallback(
sets the callback function t,"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 t to
"byte", the BytesAvailableFcnCount property to
count, and the BytesAvailableFcn property to
callbackFcn.
Examples
Input Arguments
Version History
Introduced in R2020b