VILLASframework
Modular co-simulation framework
Lab 5: Send sine wave to simulator
villas_pipe3.svg

We can combine the villas signal and villas pipe tools to send a sine wave to a node.

In this lab, the node is a RTDS GTNETv2 card running the SKT firmware.

We use a slightly modified configuration file in order to change the UDP packet format:

1 nodes = {
2  rtds_gtnet1 = {
3  type = "socket",
4  layer = "udp",
5  format = "gtnet",
6 
7  in = {
8  address = "*:12000"
9 
10  signals = {
11  count = 8,
12  type = "float"
13  }
14  },
15  out = {
16  address = "134.130.169.89:12000"
17  }
18  }
19 }
$ villas signal -v 4 -r 1000 mixed | villas pipe lab5.conf rtds_gtnet1
$ villas signal -f 50 -r 10000 sine | villas pipe lab5.conf rtds_gtnet1

As we can see in the diagram, the villas pipe tool also receives data which is sent by the simulator and prints it to the screen.

RSCAD

Source: https://git.rwth-aachen.de/acs/public/villas/node/tree/master/clients/rtds/gtnet_skt/gtnet_skt_udp_2point

rscad_gtnet_skt_2point_udp_draft.png
RSCAD draft for GTNET interface to VILLASnode.
rscad_gtnet_skt_2point_udp_runtime.png
RSCAD runtime of GTNET interface to VILLASnode.

Go to [lab 6] =>(node-lab-6)