emptyNode = isEmptyNode(nodeObj)
returns true (logical 1) for nodes that are empty, or false (logical 0) otherwise. A node is
empty if its NamespaceIndex or Identifier property
is empty. You cannot use an empty node in any read, write, or query operation on a connected
client.
Browse the namespace to select nodes. This example selects two.
s = opcuaserverinfo("localhost");
uaClient = opcua(s);
connect(uaClient);
nodes = browseNamespace(uaClient)
nodes =
1x2 OPC UA Node array:
index Name NsInd Identifier NodeType Children
----- ------ ----- ---------- -------- --------
1 FTX001 4 1243 Object 1
2 Output 4 1244 Variable 1
You can create an array of nodes that contains results from separate browsing
results. Assign the latest nodes to this array, and verify which nodes are empty.
Indication that node is empty, returned as a numeric or logical 1
(true) or 0 (false) or vector
of logical values. A value of true or 1 indicates
an empty node.
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.
Website auswählen
Wählen Sie eine Website aus, um übersetzte Inhalte (sofern verfügbar) sowie lokale Veranstaltungen und Angebote anzuzeigen. Auf der Grundlage Ihres Standorts empfehlen wir Ihnen die folgende Auswahl: .
Sie können auch eine Website aus der folgenden Liste auswählen:
So erhalten Sie die bestmögliche Leistung auf der Website
Wählen Sie für die bestmögliche Website-Leistung die Website für China (auf Chinesisch oder Englisch). Andere landesspezifische Websites von MathWorks sind für Besuche von Ihrem Standort aus nicht optimiert.