VILLASframework
Modular co-simulation framework
Lab 2: A simple configuration file

Before we proceed to other tools, we need to get familiar with VILLASnode's configuration file format. The configuration file is used to describe the connectivity of a super node. Hence, it contains a list of nodes and paths and general settings. A reference of all available configuration options is available on the Configuration page.

VILLASnode supports two formats for its configuration file:

Due to its easy readability, we will use the libconfig format in this tutorial.

For the next couple labs, we will use the following simple configuration file named lab3.conf. It only contains a single node named udp_node1 which sends / receives samples via IP / UDP on port 12000.

1 nodes = {
2  udp_node1 = {
3  type = "socket",
4  layer = "udp",
5 
6  in = {
7  address = "*:12000"
8 
9  signals = {
10  count = 3
11  type = "float"
12  }
13  },
14  out = {
15  address = "127.0.0.1:12001"
16  }
17  }
18 }

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