From 96103778193a25f9f1c236ace01c74a16c7a5138 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Wed, 23 Aug 2023 16:43:42 +0200 Subject: [PATCH] Update example configs Signed-off-by: Steffen Vogel --- docs/node/nodes/opal.md | 45 +++++++++++++++++++++++---------------- docs/node/nodes/webrtc.md | 2 +- 2 files changed, 28 insertions(+), 19 deletions(-) diff --git a/docs/node/nodes/opal.md b/docs/node/nodes/opal.md index a62a246..abeca4e 100644 --- a/docs/node/nodes/opal.md +++ b/docs/node/nodes/opal.md @@ -84,30 +84,39 @@ import ApiSchema from '@theme/ApiSchema'; ``` url="external/node/etc/examples/nodes/opal.conf" title="node/etc/examples/nodes/opal.conf" nodes = { - opal_async_node1 = { - type = "opal.async" + opal_node = { # The server can be started as an Asynchronous process + type = "opal", # from within an OPAL-RT model. - ### The following settings are specific to the opal node-type!! ### + ### The following settings are specific to the opal node-type!! ### - # The Send/Recv ID of the RT-Lab OpAsyncSend/Recv blocks. - id = 1 + send_id = 1, # It's possible to have multiple send / recv Icons per model + recv_id = 1, # Specify the ID here. + reply = true + }, + file_node = { + type = "file", - # Shared-memory parameters for communication with OpAsyncGenCtrl block of Simulink model. - shmem = { - async_name = "XXX" - async_size = 1234 - system_ctrl_name = "YYY" - } + ### The following settings are specific to the file node-type!! ### + uri = "logs/input.log", # These options specify the path prefix where the the files are stored + in = { - # Send a confirmation to the Simulink model that signals have been received and processed. - reply = false - - hooks = ( - "stats" - ) + epoch_mode = "direct" # One of: direct (default), wait, relative, absolute + epoch = 10 # The interpretation of this value depends on epoch_mode (default is 0). + # Consult the documentation of a full explanation + + rate = 2.0 # A constant rate at which the lines of the input files should be read + # A missing or zero value will use the timestamp in the first column + # of the file to determine the pause between consecutive lines. + + buffer_size = 1000000 + + eof = "rewind" # One of: rewind, exit (default) or wait + }, + out = { + flush = true + buffer_size = 1000000 } } } - ``` diff --git a/docs/node/nodes/webrtc.md b/docs/node/nodes/webrtc.md index a55814f..cce5ca9 100644 --- a/docs/node/nodes/webrtc.md +++ b/docs/node/nodes/webrtc.md @@ -63,7 +63,7 @@ nodes = { session = "my-session-name" # Address to the websocket signaling server - server = "wss://villas.k8s.eonerc.rwth-aachen.de/ws/signaling" + server = "https://villas.k8s.eonerc.rwth-aachen.de/ws/signaling" # Limit the number of times a channel will retransmit data if not successfully delivered. # This value may be clamped if it exceeds the maximum value supported.