WOLFRAM SYSTEMMODELER

Sampler

A partial model for sampler blocks, where the sampling period is determined by a model parameter

Wolfram Language

In[1]:=
SystemModel["OPCClassic.Interfaces.Sampler"]
Out[1]:=

Information

A partial model that is used in the sampler blocks for reading and writing data to an OPC server.

Sampler provides the basis for establishing a link to the OPC item determined by parameter itemName. This is done by calling the external function addItem. Once the link is established, it becomes possible for the blocks to either read data from or write data to the item on the server they are connected to.

Sampler also calls external function validateRevisedRefreshRate in order to validate that data is not read or written faster than the server is updated.

How often to sample data and at what time sampling should start are determined by parameters samplePeriod and startTime.

Parameters (3)

samplePeriod

Value:

Type: Time (s)

Description: Sample period of component

startTime

Value: 0

Type: Time (s)

Description: First sample time instant

itemName

Value:

Type: String

Description: The OPC item that data should be written to or read from

Outputs (2)

sampleTrigger

Type: Boolean

Description: True, if sample time instant

firstTrigger

Type: Boolean

Description: Rising edge signals first sample instant

Connectors (1)

serverID

Type: BlockConnector

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