Playback Real Data in Prosys OPC UA Simulation Server


This feature is in beta. We’d love your feedback.


This guide shows how to record OPC UA values to CSV files with Prosys OPC UA Browser and run a playback of those values in Prosys OPC UA Simulation Server. This allows for a quick way to reproduce field scenarios for demos, testing, and diagnostics.

Prerequisites

    • Prosys OPC UA Browser – Professional Edition, for data logging and NodeSet export

    • Prosys OPC UA Simulation Server – Professional Edition, for NodeSet import and running playback based on files

To receive beta version download links and evaluation licenses for Professional features, contact sales@prosysopc.com.

Record CSV Files with Browser’s Data Logger

      1. Connect to the source OPC UA server in Browser.
      2. Open Data View and select the variables to log.
      3. Click Settings… in the Data View toolbar to open Data Logging Settings.
      4. Use these settings:
        • Output Directory: choose where CSV files are written. Filenames will look like UaBrowser-DataLog-1.csv, UaBrowser-DataLog-2.csv.
        • Field Separator: Comma
        • Decimal Separator: Period
        • Fields to include:
          • NodeId (with NamespaceURI)
          • DisplayName
          • Value
          • StatusCode
          • SourceTimestamp (UTC)

             

      5. Check Enabled to start recording

Configure Data Logging

You can also use the produced CSV files as examples if you create logs with your own tooling.

Export the NodeSet from the Source Server

The Simulation Server needs the same namespaces and type definitions to mirror your address space for playback to work properly.

    1. In Browser go to Options → Preferences → Connection and increase timeouts. NodeSet export can take a long time and with short timeout values the whole operation might fail. Example values:
        • Connect Timeout (s): 5
        • Operation Timeout (s): 60
        • Status Check Interval (s): 200 s
        • Status Check Timeout (s): 60 s
          Restart Browser if the changes do not seem to apply.

Browser preferences configuration

    1. Add NodeSet Export View.
    2. Select the namespaces that contain your data and any companion specs in use.
    3. Click Export As Single File or Export As Separate Files.

Browser Export NodeSet

 

Import the NodeSet to Simulation Server

    1. Start Prosys OPC UA Simulation Server and ensure a Pro or Eval license is active.
    2. Open Namespaces and select Import NodeSet…. Choose the file(s) exported above.

      Import NodeSet to Simulation Server

    3. Verify the objects under Objects. The structure should match your source server.
  1. Verify that the imported nodes are found in the Simulation Server

Open Playback

  1. In Simulation Server open Playback from the top of the Objects tab.

    Simulation Server Objects tab

  2. Click + button and choose one or more CSV logs recorded with Browser’s data logging.

    Simulation Server Playback

 

Controls and Options

At the top of the playback view, you can see various ways to configure and control the playback:

    • Play, Pause and Stop
    • Step forward, Step backward using the up and down arrow-buttons, or Jump to the next breakpoint. These controls are available when the playback is paused.
    • Playback speed multiplier to adjust the speed of the playback
    • Search for a row using the timestamp of that row
    • Use current time. When off, the server uses the SourceTimestamp from the CSV. When on, values are emitted using the current wall-clock time. The Timestamp column will be calculated when playback is started based off the current time.
    • Loop at end restarts the playback automatically when the end position is reached and will restart from start position after defined delay has been waited.

On the left side, we can see a list of loaded files and row markers:

    • + button to add CSVs to playback or to remove selected file from the list
    • Clear Breakpoints to clear all set breakpoints. You can also scroll to the row by selecting from the breakpoint list. 

Additionally, right-clicking a row in the table allows you to:

    • Set Start Position and Set End Position to define the start and end boundaries for the playback.
    • Jump Here and Pause/Play to start the playback from a position and either continue directly from that row or pause to it.
    • Add breakpoint to pause the playback when that row is reached

Simulation Server Playback Context Menu Controls

On the left side of the table, you can see a list of breakpoints you’ve set in addition to the current start and end positions. When playback is running, the Server variable values will be set according to the log.

Headshot of Luukas Lusetti

Luukas Lusetti

Software Engineer

Email: luukas.lusetti@prosysopc.com

Related Posts

Interested in this topic?

Get updated about new posts through our newsletter!