WOLFRAM SYSTEM MODELER

MultipleRead

A block for reading data from multiple items on an OPC server at intervals determined by parameter samplePeriod

Wolfram Language

In[1]:=
SystemModel["OPCClassic.Blocks.SamplerBoolean.MultipleRead"]
Out[1]:=

Information

This block reads data from multiple items of type Boolean from the OPC server it is connected to. It inherits the properties of the partial model Sampler, which contains parameters such as samplePeriod and itemName that determine how often and from which OPC items the data should be read.

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

Relevant Parameters

  • samplePeriod: determines how often to sample data from the OPC item
  • startTime: when the block should start to read data
  • itemName: which OPC items to read data from

Interfaces

  • y: a Boolean 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

Parameters (4)

samplePeriod

Value:

Type: Time (s)

Description: Sample period of component (readItem.samplePeriod)

startTime

Value: 0

Type: Time (s)

Description: First sample time instant (readItem.startTime)

itemName

Value: {""}

Type: String[:]

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

y_start

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

Type: Boolean[size(itemName, 1)]

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

Connectors (2)

serverID

Type: BlockConnector

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

y

Type: BooleanOutput[size(itemName, 1)]

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

Components (1)

readItem

Type: Read[size(itemName, 1)]

Description: A block for reading data from an item on an OPC server at intervals determined by parameter samplePeriod