MIL_ID ContextAppId, | //in |
MIL_ID ObjectId, | //in |
MIL_INT64 ControlType, | //in |
MIL_DOUBLE ControlValue | //in |
This function controls settings for the MIL objects in a publishing application within the Distributed MIL monitoring configuration. You can set the read/write access and the name of each MIL object on the specified application.
Specifies the identifier of the application context to use.
For specifying the application
context
|
|||||||||||||||||||||||||||||||||||||||
Value | Description
|
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the current application context. |
||||||||||||||||||||||||||||||||||||||
Application Context Identifier |
Specifies the application context identifier. (more details...) |
Specifies the type of MIL object setting to control.
See the Parameter associations section for possible values that can be specified.
Specifies the MIL object setting's new value.
See the Parameter associations section for possible values that can be specified.
The tables below list possible values for the ControlType and ControlValue parameters.
The following ControlType and corresponding ControlValue parameter settings are used to control the access of remote MIL objects.
For controlling the access of remote MIL
objects
|
|||||||||||||||||||||||||||||||||||||||
ControlType |
Description
|
||||||||||||||||||||||||||||||||||||||
ControlValue | |||||||||||||||||||||||||||||||||||||||
M_DMIL_PUBLISH |
Controls a MIL object's remote access rights. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_NO |
Specifies that the MIL object will not be visible. |
||||||||||||||||||||||||||||||||||||||
M_READ_ONLY |
Specifies that the MIL object can only be used as a source or to be inquired. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_READ_WRITE |
Specifies that the MIL object can be used as a destination or can be controlled by MIL functions. (more details...) |
The following ControlType and corresponding ControlValue parameter settings are used to associate a name to a MIL object.
For associating a name to a MIL
object
|
|||||||||||||||||||||||||||||||||||||||
ControlType | Description
|
||||||||||||||||||||||||||||||||||||||
ControlValue | |||||||||||||||||||||||||||||||||||||||
M_OBJECT_NAME |
Specifies a name to associate with a MIL object. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
Casts the address of the string identifying the specified object's name, from a MIL_CONST_TEXT_PTR to a MIL_DOUBLE. (more details...) |
|||||||||||||||||||||||||||||||||||||||
Parameters | |||||||||||||||||||||||||||||||||||||||
This parameter specifies the string whose address to cast. |
|||||||||||||||||||||||||||||||||||||||
|
1 If you are passing the value in a variable, don't enclose it in MIL_TEXT().
void MappControlObjectDouble (MIL_ID ContextAppId,
MIL_ID ObjectId,
MIL_INT64 ControlType,
MIL_DOUBLE ControlValue)
Parameters
ContextAppId See ContextAppId of the main function for a description. ObjectId See ObjectId of the main function for a description. ControlType See ControlType of the main function for a description. ControlValue See ControlValue of the main function for a description. |
void MappControlObjectInt64 (MIL_ID ContextAppId,
MIL_ID ObjectId,
MIL_INT64 ControlType,
MIL_INT64 ControlValue)
Parameters
ContextAppId See ContextAppId of the main function for a description. ObjectId See ObjectId of the main function for a description. ControlType See ControlType of the main function for a description. ControlValue See ControlValue of the main function for a description. |
Header | Include mil.h. |
Library | Use mil.lib. |
DLL | Requires mil.dll. |