WOLFRAM SYSTEM MODELER

ClockedAndUnclocked

Demonstrates the difference between the Clocked and Unclocked components

Diagram

Wolfram Language

In[1]:=
SystemModel["OPCUA.Examples.ClockedAndUnclocked"]
Out[1]:=

Information

This example demonstrates the difference between the Clocked and Unclocked components.

This example requires an OPC UA example server running on localhost. Read about how to start the example server here.

The OPCUA library comes with two versions of the read and write components: Clocked and Unclocked. The Clocked write components require a clocked signal as input to write, whereas the Unclocked write components require an unclocked signal as input that is sampled internally in the write component. The Clocked read components output the read value as a clocked signal, whereas the Unclocked read components have an internal hold() of the read value and output that as a unclocked signal.

Parameters (1)

errorHandling

Value: Types.ErrorHandling.ErrorWhenUncertain

Type: ErrorHandling

Description: How to handle request and data value errors

Components (10)

client

Type: Client

Description: Client for connecting to an OPC UA server

readClocked

Type: Read

Description: Adds reading of a Real scalar node to a ReadNodeList

writeClocked

Type: Write

Description: Adds writing of a Real scalar node to a WriteNodeList

writeClock

Type: PeriodicExactClock

Description: Generate a periodic clock signal with a period defined by an Integer number with resolution

shift

Type: ShiftSample

Description: Shift the input clock by a fraction of the last interval and provide it as output clock

cosine

Type: Cosine

Description: Generate cosine signal

sample

Type: Sample

Description: Sample the continuous-time, Real input signal and provide it as clocked output signal (clock is inferred)

writeUnclocked

Type: Write

Description: Adds writing of a Real scalar node to a WriteNodeList

readUnclocked

Type: Read

Description: Adds reading of a Real scalar node to a ReadNodeList

hold

Type: Hold

Description: Hold the clocked, Real input signal and provide it as continuous-time output signal (zero order hold)