确定OPC UA客户端对象是否已连接到服务器
tf = iSconnected(Uaclient)
tf = iSconnected(Uaclient)
如果客户端,则返回true(逻辑1)uaclient.
否则连接到服务器,或错误(逻辑0)。如果uaclient.
是客户端对象的矢量,TF.
是表示每个客户端的连接状态的矢量。
连接OPC UA客户端并查看其连接状态。
s = opcuaserverinfo('localhost');UACLIENT = OPCUA;连接(Uaclient);Isconnected(Uaclient)
1
断开(UACLIENT);Isconnected(Uaclient)
0.