Skip to content

Workspace Examples

These digital twins run interactively inside the DTaaS user workspace. You can download each example and run it with its lifecycle scripts.

Copy Examples

Copy all the example code into the user workspace with this script:

wget https://raw.githubusercontent.com/INTO-CPS-Association/DTaaS-examples/main/getExamples.sh
bash getExamples.sh

This copies all examples into the /workspace/examples directory.

The script also works when run as root. The examples are then given to the user who ran sudo, or to the owner of the directory containing the examples, so that the workspace user can run them. Set REPOSITORY and BRANCH to download the examples from another repository or branch, for example REPOSITORY=<user>/DTaaS-examples BRANCH=<branch> bash getExamples.sh.

The lifecycle scripts locate the models, tools, data and common assets relative to their own location. The examples work from /workspace/examples and from any other directory that contains a copy of the DTaaS-examples repository.

Example List

The examples vary in complexity. Try them in the following order. Some examples need external services, such as RabbitMQ, MQTT or InfluxDB, to be running and reachable from the workspace. Configure the access details of these services as described in the README of each example. The demo video of each example shows it running in a terminal of the workspace desktop of DTaaS v1.0 (workspace-dex-localhost installation). The videos are sped up: results play at normal speed, installations and long runs at 16x, and everything else at 4x.

# Example External services Video
1 Mass Spring Damper None demo
2 Water Tank Fault Injection None demo
3 Water Tank Model Swap None demo
4 Heart Digital Twin None demo
5 Desktop Robotti and RabbitMQ RabbitMQ demo
6 Water Treatment Plant and OPC-UA None (uses a mock OPC-UA server) demo
7 Water Treatment Plant and OPC-UA (complete version, without lifecycle scripts) OPC-UA server (mock servers included) –
8 Three Water Tanks with TwinManager Framework None demo
9 Flex Cell with Two Industrial Robots RabbitMQ, MQTT demo
10 Incubator RabbitMQ, InfluxDB demo
11 Firefighters in Emergency Environments MQTT, InfluxDB demo
12 Mass Spring Damper with NuRV Runtime Monitor FMU None demo
13 Water Tank Fault Injection with NuRV Runtime Monitor FMU None demo
14 Incubator Co-Simulation with NuRV Runtime Monitor FMU None demo
15 Incubator with NuRV Runtime Monitor as Service RabbitMQ, InfluxDB demo
16 Incubator with NuRV Runtime Monitor FMU as Service RabbitMQ, InfluxDB demo
17 Incubator with TeSSLa Runtime Monitor as Service RabbitMQ, InfluxDB demo
18 Incubator with TeSSLa Runtime Monitor for Active Control RabbitMQ, InfluxDB demo
19 BIM - Building Information Modeling MQTT demo

DTaaS examples