Take DDS Sample
R2026bReceive data samples from DDS network
Libraries:
DDS Blockset
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.
Code generation for DDS Blockset requires an Embedded Coder® license.
Examples
Ports
Input
Output
Parameters
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"ddslib/Take DDS Sample"
Example: add_block("ddslib/Take DDS Sample","myModel/myBlock",MakeNameUnique="on")



