Main Content


Sends message to Simulink model using a message writer object

Since R2020b


status=WriteSimulation3DMessage(MessageWriter, dataSize, data) sends a message to a Simulink® model using a message writer object.

The C++ syntax is

int WriteSimulation3DMessage(void * MessageWriter, uint32 dataSize, void *data);

Input Arguments

collapse all

Pointer to message writer object, WriteSimulation3DMessage.

Data Types: void *

Size of data, that is, data (sizeof(datatype) *num_of_elements). For example, if you want to read a vector of 3 floats, the data size is sizeof(float)*3.

Data Types: uint32

Pointer to data object.

Data Types: void *

Output Arguments

collapse all

Status, returned as either 0 or a nonzero integer. When the operation is successful, status is 0. Otherwise, status is a nonzero integer.

Version History

Introduced in R2020b