WOLFRAM SYSTEM MODELER
ClockInferenceDemonstrates how the write clock can be inferred |
|
SystemModel["OPCUA.Examples.ClockInference"]

This example shows how the write clock of an OPCUA.Client can be inferred from the clocked system connected to its write component.
This example requires an OPC UA example server running on localhost. Read about how to start the example server here.
The clocks used by OPCUA.Client, OPCUA.Components.Core.WriteNodeList and OPCUA.Components.Core.ReadNodeList can be inferred if they are used with OPCUA.Components.Clocked components that are connected to a clocked system with a defined clock.
To enable clock inference, set the corresponding inferClock parameter to true.
In this example, the output from a clocked subsystem is written to a OPC UA server; to enable clock inference of the write clock, the inferWriteClock parameter in the client is set to true.
| clock |
Type: PeriodicExactClock Description: Generate a periodic clock signal with a period defined by an Integer number with resolution |
|
|---|---|---|
| cosine |
Type: Cosine Description: Generate cosine signal |
|
| client |
Type: Client Description: Client for connecting to an OPC UA server |
|
| sample |
Type: SampleClocked Description: Sample the continuous-time, Real input signal and provide it as clocked output signal. The clock is provided as input signal |
|
| write |
Type: Write Description: Adds writing of a Real scalar node to a WriteNodeList |