subscribe
Syntax
Description
creates a subscription request with the specified subscrObj = subscribe(uaClient,nodeList,dataChangeFcn)nodeList for the
uaClient. When the server sends notification of a data value change on
any of the nodes, the specified dataChangeFcn is triggered to execute in
MATLAB®.
provides additional data for the subscrObj = subscribe(uaClient,nodeList,{dataChangeFcn,userData})dataChangeFcn function to use. Its type
and format depends on the function.
specifies a periodic rate of notification, subscrObj = subscribe(___,PublishInterval=pubIntv)PublishInterval, as
pubIntv seconds. This controls the rate at which the server monitors
the node values, sending a notification, indicating if any changes have occurred. The
default is 1 second.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2023b