-
Notifications
You must be signed in to change notification settings - Fork 7
Configuring the node
aheneliu edited this page Feb 26, 2018
·
5 revisions
Each midas node provides a certain service.
The configuration of the MIDAS system is performed using text files in the INI-format. One INI-file can contain multiple sections, and the node is instructed to read one specific section at startup.
The options are given as key-value -pairs, e.g.
[section_name]
node_name = example_node
node_description = An example node
primary_sampling_rate = 500The options in the INI-file relevant for a node are described below:
| Option | Description | Example |
| node_name | The name of the node | example_node_A |
| node_type | The type of the node | test |
| node_id | The ID of the node | 01 |
| node_description | A short description of the node | An example node |
| primary_node | A boolean indicating if the node is a primary node. | True |
| port_frontend | Port used by the dispatcher to contact the node | 5011 |
| port_backend | Port used internally by the node for worker processes (responders). | 5012 |
| port_publisher | Port used by the node to publish messages | 5013 |
| run_publisher | Boolean indicating if the node runs a publisher | True |
| n_responders | Integer indicating how many responders the node runs simultaneously | 3 |
| primary_n_channels | Integer indicating the number of data channels present in the data stream received by the node | 2 |
| primary_channel_names | Channel names as strings | Ch1, Ch2 |
| lsl_stream_name | Name of the LSL stream to connect to | MyStream |
| primary_sampling_rate | The sampling rate of the data stream | 500 |
| primary_buffer_size_s | Buffer size of primary data stream in seconds | 10 |
| primary_channel_descriptions | Channel names | First channel,Second channel |
| secondary_node | Boolean indicating if the node produces secondary data | False |
| secondary_n_channels | Number of secondary channels | 2 |
| secondary_buffer_size | Number of samples in the secondary data buffers | 300 |
| secondary_channel_names | Secondary channel names | S_Ch1, S_Ch2 |
| secondary_channel_descriptions | Secondary channel descriptions | Secondary Channel 1,Secondary channel 2 |