WOLFRAM SYSTEM MODELER

Sampler

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

Wolfram Language

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

Information

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

Sampler provides the basis for establishing a link to the OPC node by determining parameters nodeID, nodeNamespace, and nodeIDType. These are used later as input arguments for the different blocks.

The sampling rate and at what time sampling should start are determined by parameters samplePeriod and startTime.

Parameters (5)

samplePeriod

Value:

Type: Time (s)

Description: Sample period of component

startTime

Value: 0

Type: Time (s)

Description: First sample time instant

nodeIDType

Value:

Type: UANodeIdType

Description: The node identifier type

nodeID

Value:

Type: String

Description: The node identifier

nodeNamespace

Value:

Type: Integer

Description: The node namespace

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

Extended by (6)

Write

OPCUA.Blocks.SamplerReal

A block for writing data to an item on an OPC server at intervals determined by parameter samplePeriod

Read

OPCUA.Blocks.SamplerReal

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

Write

OPCUA.Blocks.SamplerInteger

A block for writing data to items on an OPC server at intervals determined by parameter samplePeriod

Read

OPCUA.Blocks.SamplerInteger

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

Write

OPCUA.Blocks.SamplerBoolean

A block for writing data to items on an OPC server at intervals determined by parameter samplePeriod

Read

OPCUA.Blocks.SamplerBoolean

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