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