| Customize Help
| Save Settings

MobjMessageWrite



Function Map
Synopsis
Writes a message to the message mailbox.
Syntax
void MobjMessageWrite(
MIL_ID MessageId, //in
const void *MessagePtr, //in
MIL_INT64 MessageSize, //in
MIL_INT64 MessageTag, //in
MIL_INT64 OperationFlag //in
)
Description

This function writes a message that will be added to the message mailbox.

Note that this function reference has not been updated for a MIL system added during a MIL update. Refer to the MIL system's release note to see if there is complementary information.
Parameters
This function is not supported on the selected boards.
Parameters
MessageId

Specifies the identifier of the message mailbox.

MessagePtr
Accepts the following address:
  • Data type: array of type MIL_UINT8 [optionally, in C++: a reference to a constant std::vector<MIL_UINT8> ]
    Required array size:(MessageSize)

Specifies the address of the variable of the user message to write. An error will be generated if this parameter is set to M_NULL.

MessageSize

Specifies the length of the message to write, in Bytes.

When using a standard vector (std::vector) overload function in C++, you can pass M_DEFAULT to this parameter and MIL will automatically determine the size based on the number of items in the vector passed to the parameter.

MessageTag

Specifies a user-defined tag to send with the message.

OperationFlag

Reserved for future expansion and must be set to M_DEFAULT.

Compilation information
Header Include mil.h.
Library Use mil.lib.
DLL Requires mil.dll.