MIL_ID SystemId, | //in |
MIL_INT64 ControlFlag, | //in |
MIL_ID *ContextIdPtr | //out |
This function allocates a measurement context on the specified system. MIL uses a measurement context to control the behavior of measurement operations (MmeasFindMarker() and MmeasCalculate()). You can modify the settings of a measurement context with MmeasControl(). When you no longer require a measurement context, release its memory using MmeasFree().
MIL allows you to specify M_DEFAULT as the identifier of the measurement context, when using MmeasFindMarker(), MmeasCalculate(), and MmeasInquire(); therefore, you need not call MmeasAllocContext(). However, you cannot specify M_DEFAULT as the identifier of the measurement context if want to modify it using MmeasControl(); to modify a measurement context, you must actually allocate it using MmeasAllocContext().
Specifies the system on which the to allocate the measurement context.
This parameter should be set to one of the following values:
For specifying the system
identifier
|
|||||||||||||||||||||||||||||||||||||||
Value | Description
|
||||||||||||||||||||||||||||||||||||||
M_DEFAULT_HOST |
Specifies the default Host system of the current MIL application. |
||||||||||||||||||||||||||||||||||||||
MIL system identifier |
Specifies a valid system identifier, previously allocated using MsysAlloc(). |
Header | Include mil.h. |
Library | Use mil.lib; milmeas.lib. |
DLL | Requires mil.dll; milmeas.dll. |