Main Content

Take DDS Sample

Receive Data Samples from DDS network

  • Library:
  • DDS Blockset

  • Take DDS Sample block

Description

The DDS Blockset provides Take DDS Sample and Write DDS Sample blocks to help model DDS applications. The Take DDS Sample block receives samples from the DDS network and converts them to signals that can be used in the Simulink® environment. The Write DDS Sample block takes signals from the Simulink environment and converts them to samples to send data into the DDS network. These blocks are preconfigured to be compatible with the DDS network and provide type checking functionality.

Ports

Input

expand all

Receives samples from the DDS network. Samples are converted to signals that can be used within the Simulink environment. The conversion preserves the value and data type of the original DDS sample.

Data Types: bus

Output

expand all

Shows whether a sample was received successfully from the DDS network. If a sample was received successfully the block outputs 1, otherwise it outputs 0.

Dependencies

To enable this port, select the check box labeled Show receive status.

Data Types: double

Converted signal that can be used in the Simulink environment.

Data Types: bus

Parameters

expand all

Select this check box to show whether a sample was received from the DDS network. If a sample was received successfully the block outputs 1, otherwise it outputs 0.

Programmatic Use

Block Parameter: ShowQueueStatus
Type: character vector
Values: 'on' | 'off'
Default: 'off'

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.

Version History

Introduced in R2021a