WOLFRAM SYSTEM MODELER

addItem

Adds an item to an OPC group for reading or writing

Wolfram Language

In[1]:=
SystemModel["OPCClassic.ExternalFunctions.addItem"]
Out[1]:=

Information

This function is used in Sampler and TriggeredSampler. It dictates that for the OPC server identified with serverID, the OPC item itemName should be used for reading/writing.

Syntax

addItem(serverID, itemName) 

Syntax

index = addItem(serverID, itemName)

Inputs (2)

serverID

Type: Integer

Description: The unique ID of the server the block is connected to

itemName

Type: String

Description: The name of item to add to the OPC group

Outputs (1)

index

Type: Integer

Description: The index of the added item