MIL_ID ContextFuncId, | //in |
MIL_INT64 MilObjectType, | //in |
void *UserObjectPtr | //in |
This function allows you to associate a MIL identifier with a user-defined object (such as, a structure or an array). You can associate a MIL identifier with a user object so that it is recognized by MIL and treated as a standard MIL object during tracing or error handling. Once the object is associated with an identifier, the object is known as a user-defined MIL object.
The parameters passed to MfuncAllocId() do not allow you to specify whether the user-defined object is allocated on the Host or on a system with an on-board processor. For information on creating user-defined objects on systems with on-board processors and associating these object with MIL identifiers, see the Associating a MIL identifier with a user-defined object section of Chapter 33: The MIL function development module.
You must also specify a MIL type for your object (MilObjectType parameter). MIL allows up to 32 different user-defined MIL object types.
Use the MIL identifier to refer to the user-defined MIL object. To refer to the actual data grouped into this user-defined object, use the pointer to the object (UserObjectPtr parameter).
To inquire about the type of this object, or the pointer to it, use the MfuncInquire() function.
Specifies a MIL function identifier. This parameter can be set to the following values:
For a MIL function
identifier
|
|||||||||||||||||||||||||||||||||||||||
Value | Description
|
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default MIL function identifier. (more details...) |
||||||||||||||||||||||||||||||||||||||
MIL function identifier |
Specifies the identifier of a user-defined MIL function. |
Specifies the MIL type of the user-defined object to be associated with a MIL identifier. To specify the type, you must specify one of the groups listed in the table below and combine it with an offset. The two object groups allow you to distinguish between custom created objects, especially when the created objects are to be used in different MIL modules.
For specifying the MIL type of
user-defined object
|
|||||||||||||||||||||||||||||||||||||||
Value | Description
|
||||||||||||||||||||||||||||||||||||||
M_USER_OBJECT_1 + |
Specifies that the user object falls under the first group of user object types. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_USER_OBJECT_2 + |
Specifies that the user object falls under the second group of user object types. (more details...) |
You must add the following value to the above-mentioned values to set the offset.
The offset allows you to distinguish between the different object types of the same group (for example, M_USER_OBJECT_1 + 0x0001).
For distinguishing between the different
object types
|
|||||||||||||||||||||||||||||||||||||||
Combination value | Description
|
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the offset within the selected object type group. (more details...) |
Header | Include mil.h. |
Library | Use mil.lib. |
DLL | Requires mil.dll. |