cnsChangeNodeData
Changes the data point (element) and type of the given node.
Synopsis
bool cnsChangeNodeData(string cnsPath, string dp [, int type]);
Parameters
Parameter | Description |
---|---|
cnsPath | ID path of the node |
dp | Name of the new data point (element) |
type | CNSDataIdentifierType of the node |
Return value
Returns TRUE if successful or FALSE in case of an error.
Errors
-
Description
The function changes the linked data point (element) of a node. In order to remove a data point it is possible to specify an empty string. If not explicitly defined, either CNS_DATATYPE_EMPTY (in case of dp == "") or CNS_DATATYPE_DATAPOINT (in case of a defined data point (element)) is used as CNSDataIdentifierType.
main()
{
cnsChangeNodeData("System1.View1:TreeA.Node", "ExampleDP_int", 501);
}
Availability
UI, CTRL