Click here to show toolbars of the Web Online Help System: show toolbars |
Table: | For specifying the UserVarPtr's data type |
+ combination: | For specifying the length of the array |
MIL_ID DigId, | //in |
MIL_INT64 ControlType, | //in |
MIL_CONST_TEXT_PTR FeatureName, | //in |
MIL_INT64 UserVarType, | //in |
const void *UserVarPtr | //in |
This function allows you to directly control various GenICam standard feature naming convention (SFNC) features and manufacturer-specific features of the camera. For more information, refer to the Using MIL with GenICam section of Chapter 25: Grabbing with your digitizer.
For Camera Link boards to work with this function, you must first configure and enable the GenICam CLProtocol module, using MdigControl() with M_GC_CLPROTOCOL. Note that this control type is only available after the required third-party vendor-supplied, standard compliant, CLProtocol library for your Camera Link camera is installed on your computer and M_GC_CLPROTOCOL_DEVICE_ID is set.
The features described in this function are primarily available to set existing settings using MIL code or to set information from which you can build your own interface for the camera device's description file (XML). MIL provides two versions of an interface that you can use to interactively inquire the camera's features. At design-time, you can use Matrox Intellicam's Feature Browser. At runtime, you can launch the Feature Browser, using MdigControl() with M_GC_FEATURE_BROWSER. Both versions of the Feature Browser provide a list of available feature names and associated possible values, as well as code snippets with the MIL functions and MIL constants associated with the settings selected; you can copy the code snippets to your MIL application code.
To inquire a camera's manufacturer-specific feature, use MdigInquireFeature().
Specifies the identifier of the digitizer accessing the camera to control. This parameter must be given a valid digitizer identifier, previously allocated using MdigAlloc().
Specifies the type of information to control for the specified feature.
See the Parameter associations section for possible values that can be specified.
Specifies the name of the camera feature to control.
![]() |
|||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Description |
MIL system-specific tooltip (‡) |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
||||||||||||||||
![]() ![]() |
Specifies the name of the feature. |
‡ | c | j | k | m | o | p | q | r | s |
1 If you are passing the value in a variable, don't enclose it in MIL_TEXT().
Specifies the data type of the address pointed to by the UserVarPtr parameter. If not setting the feature's value (using M_FEATURE_VALUE), set this parameter to M_DEFAULT.
Note that, in the case of a string (or a multi-byte register), the size of the array passed to the UserVarPtr parameter must be equal to or larger than the returned information; otherwise a GPF will occur.
![]() |
|||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Description |
MIL system-specific tooltip (‡) |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
||||||||||||||||
![]() ![]() |
Specifies that UserVarPtr is passed an address of type MIL_BOOL. |
‡ | c | j | k | m | o | p | q | r | s | ||||||||||||||||||||||||||||
![]() ![]() |
Specifies that UserVarPtr is passed an address of type MIL_DOUBLE. |
‡ | c | j | k | m | o | p | q | r | s | ||||||||||||||||||||||||||||
![]() ![]() |
Specifies that UserVarPtr is passed an address of type MIL_DOUBLE. |
‡ | c | j | k | m | o | p | q | r | s | ||||||||||||||||||||||||||||
![]() ![]() |
Specifies that UserVarPtr is passed an address of type MIL_TEXT_CHAR. |
‡ | c | j | k | m | o | p | q | r | s | ||||||||||||||||||||||||||||
![]() ![]() |
Specifies that UserVarPtr is passed an address of type MIL_UINT8. |
‡ | c | j | k | m | o | p | q | r | s |
You must add the following value to the above-mentioned values to specify the length of the array.
![]() |
||||||||||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Description |
MIL system-specific tooltip (‡) |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
|||||||||||||||||||||||
![]() ![]() |
Specifies the length of the array. |
‡ | ‡ | c | j | k | m | o | p | q | r | s | c | j | k | m | o | p | q | r | s | |||||||||||||||||||||||||
Parameters | ||||||||||||||||||||||||||||||||||||||||||||||
Sets the length, in bytes. |
Specifies the address of the variable in which to write the value of the feature.
See the Parameter associations section for possible values that can be specified.
The table below lists possible values for the ControlType and UserVarPtr parameters.
To determine the data type of the FeatureName specified, use MdigInquireFeature() with M_FEATURE_VALUE.
![]() |
|||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Description | MIL system-specific tooltip (‡) |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
||||||||||||||||
UserVarPtr | |||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets whether to enable an event to occur when the value of the specified feature changes. |
‡ | q | s | |||||||||||||||||||||||||||||||||||
![]() ![]() |
Data type info: Data
type: address of a MIL_INT
|
‡ | q | s | |||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies that no event is generated when the value of the specified feature changes. |
‡ | q | s | |||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies that an event is generated when the value of the specified feature changes. |
‡ | q | s | |||||||||||||||||||||||||||||||||||
![]() ![]() |
Sets that the specified command feature must be executed. |
‡ | c | j | k | m | o | p | q | r | s | ||||||||||||||||||||||||||||
![]() ![]() |
Data type info: Data
type: Set this parameter to
M_NULL
|
‡ | c | j | k | m | o | p | q | r | s | ||||||||||||||||||||||||||||
![]() ![]() |
Specifies to set the feature to its maximum value. |
‡ | c | j | k | m | o | p | q | r | s | ||||||||||||||||||||||||||||
![]() ![]() |
Data type info: Data
type: address of a MIL_DOUBLE |
Set this parameter to M_NULL (more
details...)
|
‡ | c | j | k | m | o | p | q | r | s | ||||||||||||||||||||||||||||
![]() ![]() |
Specifies to set the feature to its minimum value. |
‡ | c | j | k | m | o | p | q | r | s | ||||||||||||||||||||||||||||
![]() ![]() |
Data type info: Data
type: address of a MIL_DOUBLE |
address of a MIL_INT64 (more
details...)
|
‡ | c | j | k | m | o | p | q | r | s | ||||||||||||||||||||||||||||
![]() ![]() |
Sets the current value of the feature. |
‡ | c | j | k | m | o | p | q | r | s | ||||||||||||||||||||||||||||
![]() ![]() |
Data type info: Data
type: address of a MIL_BOOL |
address of a MIL_DOUBLE | address of a
MIL_INT64 | array of type MIL_UINT8
| array of type MIL_TEXT_CHAR
(more
details...)
|
‡ | c | j | k | m | o | p | q | r | s | ||||||||||||||||||||||||||||
![]() ![]() |
Sets the current value of the feature as a string. |
‡ | c | j | k | m | o | p | q | r | |||||||||||||||||||||||||||||
![]() ![]() |
Data type info: Data
type: array of type MIL_TEXT_CHAR
(more
details...)
|
‡ | c | j | k | m | o | p | q | r |
Header | Include mil.h. |
Library | Use mil.lib. |
DLL | Requires mil.dll. |