WOLFRAM SYSTEM MODELER

MultipleTriggeredRead

A block for reading data from multiple items on an OPC server at intervals determined by an external Boolean signal (trigger)

Wolfram Language

In[1]:=
SystemModel["OPCClassic.Blocks.SamplerInteger.MultipleTriggeredRead"]
Out[1]:=

Information

This block reads data from multiple items of type Integer from the OPC server it is connected to. Unlike the read blocks that have a parameter for setting the sample period, the triggered read blocks read data when Boolean input signal trigger has a rising edge. The block inherits the properties of the partial model TriggeredSampler.

At every sampling instant, external function readExternalReal is called from within the block.

Relevant Parameters

  • itemName: which OPC items to read data from

Interfaces

  • y: a Integer array output of the same size as itemName, which is the sampled signals
  • serverID: the connector that connects the block to the OPC server component
  • trigger: a Boolean input that determines when the block should sample data

Parameters (2)

itemName

Value: {""}

Type: String[:]

Description: The OPC item that data should be written to or read from (readItem.itemName)

y_start

Value: fill(0, size(itemName, 1))

Type: Integer[:]

Description: initial value of output signal (readItem.y_start)

Connectors (3)

serverID

Type: BlockConnector

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

y

Type: IntegerOutput[size(itemName, 1)]

Description: The data read from the item on the OPC server

trigger

Type: BooleanInput[size(itemName, 1)]

Description: Boolean input that determines when sampling should occur

Components (1)

readItem

Type: TriggeredRead[size(itemName, 1)]

Description: A block for reading data from an OPC server at intervals determined by an external Boolean signal (trigger)