Main Content

WriteSimulation3DMessage

Sends message to万博1manbetxmodel using a message writer object

Description

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 issizeof(float)*3.

Data Types:uint32

指针指向的数据对象。

Data Types:void *

Output Arguments

collapse all

Status, returned as either0or a nonzero integer. When the operation is successful,statusis0. Otherwise,statusis a nonzero integer.

Version History

介绍duced in R2020b