6. Topic Block — The Vortex OpenSplice Simulink Guide

### Navigation

- index
- next |
- previous |
- OpenSplice Simulink Guide »

# 6. Topic Block

The topic block represents a DDS topic type. The DDS topic corresponds to a single data type. In DDS, data is distributed by publishing and subscribing topic data samples.

For a DDS Topic type definition, a corresponding BUS should be defined in the MATLAB workspace. The name of the BUS and the fields and field types should correspond to the DDS topic IDL definition.

In Simulink, a BUS definition can be used as an input or output signal of the Simulink building blocks.

Port Type | Optional | Name | Description | Output consumed by
--- | --- | --- | --- | ---
Input | yes | pp | DDS Domain Participant entity instance |
Output | no | topic | DDS Topic entity instance | Writer, Reader

## 6.1. Topic Block Parameters

### 6.1.1. Topic Tab

The output port named topic, needs to be configured by the user. No defaults are provided. To configure the topic output port, edit the required parameters in the Block Parameters / Topic tab. The following topic parameters must be specified: Bus Type and Topic Name.

### 6.1.2. Ports Tab

The Ports tab allows the user to toggle on or off optional ports.

### 6.1.3. QoS Tab

The QoS tab is used to set the QoS profile. By default, the OSPL default profile is used.

In DDS - The Data-Distribution Service (DDS) relies on the usage of QoS. A QoS (Quality of Service) is a set of characteristics that controls some aspect of the behavior of the DDS Service.

Each DDS block has an associated QoS profile. By default, the OSPL default profile is used. An XML file that specifies QoS profiles can be used to set the QoS of a DDS block.

### Navigation

- index
- next |
- previous |
- OpenSplice Simulink Guide »