MIL_ID EventId, | //in |
MIL_INT64 InfoType, | //in |
void *UserVarPtr | //out |
This function retrieves information about the digitizer event that caused the hook-handler function to be called. MdigGetHookInfo() should only be called within the scope of a digitizer hook-handler function (see MdigProcess() and MdigHookFunction()).
Specifies the digitizer event identifier received by the hook-handler function (see MdigProcess() and MdigHookFunction()).
Specifies the type of information about the event to return.
See the Parameter associations section for possible values that can be specified.
Specifies the address in which to write the requested information.
See the Parameter associations section for possible values that can be returned.
The tables below list possible values for the InfoType parameter and possible values returned to the UserVarPtr parameter.
The following allows you to retrieve information about various digitizer hook event. Unless otherwise specified, you can retrieve these information types if you call this function from within a function hooked to any digitizer event using MdigHookFunction() or MdigProcess().
For retrieving information about a general digitizer
hook event
|
|||||||||||||||||||||||||||||||||||||||
InfoType | Description | MIL system-specific tooltip (‡) |
|||||||||||||||||||||||||||||||||||||
UserVarPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
M_DIGITIZER_ID |
Retrieves the MIL identifier of the digitizer that was used by MdigProcess(). Note that this information is only available for digitizer events generated by MdigProcess(). (summarize)Retrieves the MIL identifier of the digitizer that was used by MdigProcess(). (more details...) |
‡ | a | c M10 |
g | h | i | j | k M10 |
l | m | o | p | r U27 |
t U28 |
u U36 |
v | y U75 |
aa | ||||||||||||||||||||
UserVarPtr extra info |
Data type info: Data
type: address of a MIL_ID
Data type info: Data
type: address of a MIL_ID
|
‡ | a | c M10 |
g | h | i | j | k M10 |
l | m | o | p | r U27 |
t U28 |
u U36 |
v | y U75 |
aa | ||||||||||||||||||||
MIL digitizer identifier |
Specifies the MIL identifier of the digitizer. |
‡ | a | c M10 |
g | h | i | j | k M10 |
l | m | o | p | r U27 |
t U28 |
u U36 |
v | y U75 |
aa | ||||||||||||||||||||
M_GC_CAMERA_TIME_STAMP |
Retrieves the time at which the event occurred. This value was generated by the camera, using a specialized counter. To inquire the time stamp generated by the operating system, use M_TIME_STAMP. (summarize)Retrieves the time at which the event occurred. (more details...) |
‡ | c M10 |
o | v | ||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info: Data
type: address of a
MIL_DOUBLE
Data type info: Data
type: address of a
MIL_DOUBLE
|
‡ | c M10 |
o | v | ||||||||||||||||||||||||||||||||||
Value |
Specifies the camera's time stamp, in secs. |
‡ | c M10 |
o | v | ||||||||||||||||||||||||||||||||||
M_GC_EVENT_TYPE |
Retrieves the GenICam event type, as sent by the camera. Refer to your GenICam SFNC specification, or your camera's documentation for a list of GenICam event types. (summarize)Retrieves the GenICam event type, as sent by the camera. (more details...) |
‡ | c M10 |
o | v | ||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info: Data
type: address of a MIL_INT
Data type info: Data
type: address of a MIL_INT
|
‡ | c M10 |
o | v | ||||||||||||||||||||||||||||||||||
Value |
Specifies the GigE Vision event type. |
‡ | c M10 |
o | v | ||||||||||||||||||||||||||||||||||
M_GC_PACKET_SIZE |
Retrieves the size of the data packet, used by the GenICam SFNC-compliant camera when streaming data to the Host. (summarize)Retrieves the size of the data packet, used by the GenICam SFNC-compliant camera when streaming data to the Host. (more details...) |
‡ | c M10 |
||||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info: Data
type: address of a MIL_INT
Data type info: Data
type: address of a MIL_INT
|
‡ | c M10 |
||||||||||||||||||||||||||||||||||||
Value |
Specifies the size of the packet, in bytes. |
‡ | c M10 |
||||||||||||||||||||||||||||||||||||
M_GRAB_TRIGGER_MISSED |
Retrieves the number of grab triggers missed. This result is available only when MdigControl() with M_GRAB_TRIGGER_MISSED is set to M_ENABLE. (summarize)Retrieves the number of grab triggers missed. (more details...) |
‡ | t U28 |
||||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info: Data
type: address of a MIL_INT
Data type info: Data
type: address of a MIL_INT
|
‡ | t U28 |
||||||||||||||||||||||||||||||||||||
Value |
Specifies the number of missed triggers. |
‡ | t U28 |
||||||||||||||||||||||||||||||||||||
M_TIME_STAMP |
Retrieves the operating system's time stamp at the point which the event generated a service request. The time stamp is generated by the operating system's performance counter. Time stamps can be used to see if a frame has been missed since the last time stamp. (summarize)Retrieves the operating system's time stamp at the point which the event generated a service request. (more details...) |
‡ | a | c M10 |
g | h | i | j | k M10 |
l | m | o | p | r U27 |
t U28 |
u U36 |
v | y U75 |
aa | ||||||||||||||||||||
MIL system specific | |||||||||||||||||||||||||||||||||||||||
This value is generated by the operating system. To use the time stamp generated by the camera, use M_GC_CAMERA_TIME_STAMP. |
‡ | c M10 |
o | v | |||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info: Data
type: address of a
MIL_DOUBLE
Data type info: Data
type: address of a
MIL_DOUBLE
|
‡ | a | c M10 |
g | h | i | j | k M10 |
l | m | o | p | r U27 |
t U28 |
u U36 |
v | y U75 |
aa | ||||||||||||||||||||
Value |
Specifies operating system's time stamp, in secs. |
‡ | a | c M10 |
g | h | i | j | k M10 |
l | m | o | p | r U27 |
t U28 |
u U36 |
v | y U75 |
aa |
The following allows you to retrieve information about a GenICam SFNC-compliant event. The following information types are only available if MdigGetHookInfo() was called from a function hooked to a GenICam event using M_GC_EVENT. In addition, the GenICam event must be enabled using MdigControlFeature(), and the message channel must be supported by your camera.
For retrieving information about a GenICam
SFNC-compliant event
|
|||||||||||||||||||||||||||||||||||||||
InfoType | Description | MIL system-specific tooltip (‡) |
|||||||||||||||||||||||||||||||||||||
UserVarPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
M_COUNTER_INDEX |
Retrieves the index of a counter on your camera. You can retrieve this value if the hook-handler function was hooked using MdigHookFunction() with M_GC_EVENT + M_COUNTER_START + n or M_GC_EVENT + M_COUNTER_END + n, where n is the counter's index. Counters are unique to GenICam SFNC-compliant cameras. To configure your GenICam SFNC-compliant counters, use MdigControlFeature(). (summarize)Retrieves the index of a counter on your camera. (more details...) |
‡ | c M10 |
o | v | ||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info: Data
type: address of a MIL_INT
Data type info: Data
type: address of a MIL_INT
|
‡ | c M10 |
o | v | ||||||||||||||||||||||||||||||||||
Value |
Specifies the index of the counter. |
‡ | c M10 |
o | v | ||||||||||||||||||||||||||||||||||
M_LINE_INDEX |
Retrieves the index of the I/O signal that generated the GenICam SFNC-compatible camera's event. You can only retrieve this information if the hook-handler function was hooked using MdigHookFunction() with M_GC_EVENT + M_LINE_ANY_EDGE + n, M_GC_EVENT + M_LINE_FALLING_EDGE + n, or M_GC_EVENT + M_LINE_RISING_EDGE + n, where n is the I/O signal's number. (summarize)Retrieves the index of the I/O signal that generated the GenICam SFNC-compatible camera's event. (more details...) |
‡ | c M10 |
o | v | ||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info: Data
type: address of a MIL_INT
Data type info: Data
type: address of a MIL_INT
|
‡ | c M10 |
o | v | ||||||||||||||||||||||||||||||||||
Value |
Specifies the number of the I/O signal that generated the event. |
‡ | c M10 |
o | v | ||||||||||||||||||||||||||||||||||
M_TIMER_INDEX |
Retrieves the index of the timer that generated the generic the GenICam SFNC-compatible camera's event. You can retrieve this value if the hook-handler function was hooked using MdigHookFunction() with M_GC_EVENT + M_TIMER_START + n or M_GC_EVENT + M_TIMER_END + M_TIMERn, where n is the timer index. (summarize)Retrieves the index of the timer that generated the generic the GenICam SFNC-compatible camera's event. (more details...) |
‡ | c M10 |
o | v | ||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info: Data
type: address of a MIL_INT
Data type info: Data
type: address of a MIL_INT
|
‡ | c M10 |
o | v | ||||||||||||||||||||||||||||||||||
Value |
Specifies the index of the timer that generated the event. |
‡ | c M10 |
o | v |
The following allows you to retrieve information about a grab event.
Unless otherwise specified, the following information types are only available if MdigGetHookInfo() was called from a function hooked to an event using MdigHookFunction() or MdigProcess() with M_GRAB_..._END. If inquired from any other hook function, these information types will not return an error, but the result will be irrelevant.
For retrieving information about a grab
event
|
|||||||||||||||||||||||||||||||||||||||
InfoType | Description | MIL system-specific tooltip (‡) |
|||||||||||||||||||||||||||||||||||||
UserVarPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
M_CORRUPTED_FRAME |
Retrieves whether the currently grabbed frame is corrupt. (summarize)Retrieves whether the currently grabbed frame is corrupt. (more details...) |
‡ | c M10 |
i | o | u U36 |
v | ||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info: Data
type: address of a MIL_INT
Data type info: Data
type: address of a MIL_INT
|
‡ | c M10 |
i | o | u U36 |
v | ||||||||||||||||||||||||||||||||
M_NO |
Specifies that the frame is not corrupt. |
‡ | c M10 |
i | o | u U36 |
v | ||||||||||||||||||||||||||||||||
M_YES |
Specifies that the frame is corrupt. |
‡ | c M10 |
i | o | u U36 |
v | ||||||||||||||||||||||||||||||||
M_GC_FRAME_BLOCK_ID |
Retrieves the value of the counter (block ID) set by the camera for each grabbed frame. In this case, the value of the counter for the last frame grabbed is returned. (summarize)Retrieves the value of the counter (block ID) set by the camera for each grabbed frame. (more details...) |
‡ | c M10 |
o | v | ||||||||||||||||||||||||||||||||||
MIL system specific | |||||||||||||||||||||||||||||||||||||||
Note that a GigE Vision 2.0 camera has a 64-bit frame counter, while a GigE Vision 1.0 camera has a 16-bit frame counter. |
‡ | c U25 |
|||||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info: Data
type: address of a MIL_INT
Data type info: Data
type: address of a MIL_INT
|
‡ | c M10 |
o | v | ||||||||||||||||||||||||||||||||||
Value |
Specifies the value of the counter. |
‡ | c M10 |
o | v | ||||||||||||||||||||||||||||||||||
M_GC_FRAME_BLOCK_ID64 |
Retrieves the value of the 64-bit counter (block ID) set by the camera for each grabbed frame. In this case, the value of the counter for the last frame grabbed is returned. (summarize)Retrieves the value of the 64-bit counter (block ID) set by the camera for each grabbed frame. (more details...) |
‡ | c M10 |
o | v | ||||||||||||||||||||||||||||||||||
MIL system specific | |||||||||||||||||||||||||||||||||||||||
Note that a GigE Vision 2.0 camera has a 64-bit frame counter, while a GigE Vision 1.0 camera has a 16-bit frame counter. |
‡ | c U25 |
|||||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info: Data
type: address of a
MIL_INT64
Data type info: Data
type: address of a
MIL_INT64
|
‡ | c M10 |
o | v | ||||||||||||||||||||||||||||||||||
Value |
Specifies the value of the counter. |
‡ | c M10 |
o | v | ||||||||||||||||||||||||||||||||||
M_GC_FRAME_ERROR_CODE |
Retrieves the error code returned by the camera for the last frame grabbed. (summarize)Retrieves the error code returned by the camera for the last frame grabbed. (more details...) |
‡ | c M10 |
o | |||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info: Data
type: address of a MIL_INT
Data type info: Data
type: address of a MIL_INT
|
‡ | c M10 |
o | |||||||||||||||||||||||||||||||||||
Value |
Specifies the GigE Vision error code. |
‡ | c M10 |
o | |||||||||||||||||||||||||||||||||||
M_GC_FRAME_LINE_COUNT |
Retrieves the number of rows in the last frame grabbed. (summarize)Retrieves the number of rows in the last frame grabbed. (more details...) |
‡ | c M10 |
o | v | ||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info: Data
type: address of a MIL_INT
Data type info: Data
type: address of a MIL_INT
|
‡ | c M10 |
o | v | ||||||||||||||||||||||||||||||||||
Value |
Specifies the row count. |
‡ | c M10 |
o | v | ||||||||||||||||||||||||||||||||||
M_GC_FRAME_PIXEL_TYPE |
Retrieves the data depth and raw color format of the last frame grabbed. Note that this value is a value, specified by GenICam's standard feature naming convention (SFNC). The predefined list of possible pixel formats are in the PFNC.h header file in the MIL installation folder, under the include\MilDyn subfolder. (summarize)Retrieves the data depth and raw color format of the last frame grabbed. (more details...) |
‡ | c M10 |
o | v | ||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info: Data
type: address of a MIL_INT
Data type info: Data
type: address of a MIL_INT
|
‡ | c M10 |
o | v | ||||||||||||||||||||||||||||||||||
Value |
Specifies the data depth and raw color format of the last frame grabbed. |
‡ | c M10 |
o | v | ||||||||||||||||||||||||||||||||||
M_GC_FRAME_SIZE_X |
Retrieves the width (size X) of the last frame grabbed. (summarize)Retrieves the width (size X) of the last frame grabbed. (more details...) |
‡ | c M10 |
o | v | ||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info: Data
type: address of a MIL_INT
Data type info: Data
type: address of a MIL_INT
|
‡ | c M10 |
o | v | ||||||||||||||||||||||||||||||||||
Value |
Specifies the width of the last frame grabbed. |
‡ | c M10 |
o | v | ||||||||||||||||||||||||||||||||||
M_GC_FRAME_SIZE_Y |
Retrieves the height (size Y) of the last frame grabbed. (summarize)Retrieves the height (size Y) of the last frame grabbed. (more details...) |
‡ | c M10 |
o | v | ||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info: Data
type: address of a MIL_INT
Data type info: Data
type: address of a MIL_INT
|
‡ | c M10 |
o | v | ||||||||||||||||||||||||||||||||||
Value |
Specifies the height of the last frame grabbed, in pixels. |
‡ | c M10 |
o | v | ||||||||||||||||||||||||||||||||||
M_GC_FRAME_STATUS_CODE |
Retrieves the status code from the last frame grabbed. The predefined list of frame status codes are in the GVCP_Status_Codes.h header file in the MIL installation folder, under the include\MilDyn subfolder. (summarize)Retrieves the status code from the last frame grabbed. (more details...) |
‡ | c M10 |
o | |||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info: Data
type: address of a MIL_INT
Data type info: Data
type: address of a MIL_INT
|
‡ | c M10 |
o | |||||||||||||||||||||||||||||||||||
Value |
Specifies the status code. |
‡ | c M10 |
o | |||||||||||||||||||||||||||||||||||
M_GC_PACKETS_MISSED |
Retrieves the number of missing packets in the corrupted frame. If 0 is returned, the frame is not corrupted. (summarize)Retrieves the number of missing packets in the corrupted frame. (more details...) |
‡ | c M10 |
||||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info: Data
type: address of a MIL_INT
Data type info: Data
type: address of a MIL_INT
|
‡ | c M10 |
||||||||||||||||||||||||||||||||||||
Value |
Specifies the number of missing packets. |
‡ | c M10 |
||||||||||||||||||||||||||||||||||||
M_GC_PACKETS_RECEIVED |
Retrieves the number of packets in the frame. (summarize)Retrieves the number of packets in the frame. (more details...) |
‡ | c M10 |
||||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info: Data
type: address of a MIL_INT
Data type info: Data
type: address of a MIL_INT
|
‡ | c M10 |
||||||||||||||||||||||||||||||||||||
Value |
Specifies the number of packets in the frame. |
‡ | c M10 |
||||||||||||||||||||||||||||||||||||
M_GC_PACKETS_RECOVERED |
Retrieves the number of packets successfully recovered in the frame. (summarize)Retrieves the number of packets successfully recovered in the frame. (more details...) |
‡ | c M10 |
||||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info: Data
type: address of a MIL_INT
Data type info: Data
type: address of a MIL_INT
|
‡ | c M10 |
||||||||||||||||||||||||||||||||||||
Value |
Specifies the number of recovered packets. |
‡ | c M10 |
||||||||||||||||||||||||||||||||||||
M_GC_PACKETS_RESENDS_NUM |
Retrieves the number of resend commands sent to the camera for a frame. Note that one resend command can contain multiple consecutive packets. (summarize)Retrieves the number of resend commands sent to the camera for a frame. (more details...) |
‡ | c M10 |
||||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info: Data
type: address of a MIL_INT
Data type info: Data
type: address of a MIL_INT
|
‡ | c M10 |
||||||||||||||||||||||||||||||||||||
Value |
Specifies the number of resend commands sent. |
‡ | c M10 |
||||||||||||||||||||||||||||||||||||
M_GRAB_LINE |
Retrieves the number of the line (row) that, upon it being received by the digitizer, generated the event. You can only retrieve this information if the hook-handler function was hooked using MdigHookFunction() with M_GRAB_LINE + n, where n is the row number. Note that upon this event, the row has not necessarily been written to the grab buffer. (summarize)Retrieves the number of the line (row) that, upon it being received by the digitizer, generated the event. (more details...) |
‡ | g | h | i | k M10 |
l | m | t U28 |
y U75 |
|||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info: Data
type: address of a MIL_INT
Data type info: Data
type: address of a MIL_INT
|
‡ | g | h | i | k M10 |
l | m | t U28 |
y U75 |
|||||||||||||||||||||||||||||
Value |
Specifies the row number. |
‡ | g | h | i | k M10 |
l | m | t U28 |
y U75 |
|||||||||||||||||||||||||||||
M_GRAB_LINE_COUNT |
Retrieves the number of lines (rows) grabbed. Note that the data contained in the line is available for processing. This is useful when grabbing from a line-scan camera with frames of variable length. (summarize)Retrieves the number of lines (rows) grabbed. (more details...) |
‡ | c M10 |
k M10 |
l | m | o | p | r U27 |
y U75 |
aa | ||||||||||||||||||||||||||||
MIL system specific | |||||||||||||||||||||||||||||||||||||||
You can only retrieve this value if the hook-handler function was hooked using MdigProcess() or MdigHookFunction() with M_GRAB_END or M_GRAB_FRAME_END. |
‡ | c M10 |
o | ||||||||||||||||||||||||||||||||||||
You can only retrieve this value if the row count was enabled using MdigControl() with M_GRAB_LINE_COUNTER and the hook-handler function was hooked using MdigProcess() or MdigHookFunction() with M_GRAB_END or M_GRAB_FRAME_END. |
‡ | k M10 |
l | m | p | r U27 |
y U75 |
aa | |||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info: Data
type: address of a MIL_INT
Data type info: Data
type: address of a MIL_INT
|
‡ | c M10 |
k M10 |
l | m | o | p | r U27 |
y U75 |
aa | ||||||||||||||||||||||||||||
Value |
Specifies the row number. |
‡ | c M10 |
k M10 |
l | m | o | p | r U27 |
y U75 |
aa | ||||||||||||||||||||||||||||
M_GRAB_LINE_END |
Retrieves the number of the line (row) that, upon it being available in the grab buffer, generated the event. You can only retrieve this information if the hook-handler function was hooked using MdigHookFunction() with M_GRAB_LINE_END + n, where n is the row number. Note that upon this event, the row is available in the grab buffer. (summarize)Retrieves the number of the line (row) that, upon it being available in the grab buffer, generated the event. (more details...) |
‡ | l | m | |||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info: Data
type: address of a MIL_INT
Data type info: Data
type: address of a MIL_INT
|
‡ | l | m | |||||||||||||||||||||||||||||||||||
Value |
Specifies the row number. |
‡ | l | m | |||||||||||||||||||||||||||||||||||
M_MODIFIED_BUFFER + |
Retrieves information about a modified-buffer type of event. (summarize)Retrieves information about a modified-buffer type of event. (more details...) |
‡ | a | c M10 |
g | h | i | j | k M10 |
l | m | o | p | r U27 |
t U28 |
u U36 |
v | y U75 |
aa | ||||||||||||||||||||
UserVarPtr extra info |
Data type info: Data
type: address of a MIL_ID
Data type info: Data
type: address of a MIL_ID
|
‡ | a | c M10 |
g | h | i | j | k M10 |
l | m | o | p | r U27 |
t U28 |
u U36 |
v | y U75 |
aa | ||||||||||||||||||||
Value |
Specifies information about a modified-buffer event. |
‡ | a | c M10 |
g | h | i | j | k M10 |
l | m | o | p | r U27 |
t U28 |
u U36 |
v | y U75 |
aa | ||||||||||||||||||||
M_TIMER_TRIGGER_MISSED + |
Retrieves the number of triggers missed by the specified timer. You can only retrieve this value if MdigGetHookInfo() was called from a function hooked to an end of grab event using MdigHookFunction() with M_GRAB_END or if the hook-handler function was hooked using MdigProcess(). You must specify a combination value from the following table: Retrieves the number of triggers missed by the specified timer. (more details...) |
‡ | j | k M10 |
l | m | p | r U27 |
y U75 |
aa | |||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info:
Data type: address of a
MIL_INT
Data type info:
Data type: address of a
MIL_INT
|
‡ | j | k M10 |
l | m | p | r U27 |
y U75 |
aa | |||||||||||||||||||||||||||||
Value |
Specifies the number of missed triggers. |
‡ | j | k M10 |
l | m | p | r U27 |
y U75 |
aa |
You must add the following value to the above-mentioned value to set the timer to inquire.
For specifying the timer to inquire
|
|||||||||||||||||||||||||||||||||||||||
Combination value | Description |
MIL system-specific tooltip (‡) |
|||||||||||||||||||||||||||||||||||||
M_TIMERn |
Specifies the timer, where n can be from 1 to 4. |
‡ | j | k M10 |
l | m | p | r U27 |
y U75 |
aa |
You can add one of the following values to the above-mentioned value to specify the type of information to return about the modified image buffer.
For retrieving information about the modified image
buffer
|
|||||||||||||||||||||||||||||||||||||||
InfoType | Description | ||||||||||||||||||||||||||||||||||||||
UserVarPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
M_BUFFER_ID |
Retrieves the MIL identifier of the modified image buffer. (summarize)Retrieves the MIL identifier of the modified image buffer. (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info:
Data type: address of a
MIL_ID
Data type info:
Data type: address of a
MIL_ID
|
||||||||||||||||||||||||||||||||||||||
MIL buffer identifier |
Specifies the MIL identifier of the modified image buffer associated with the event. |
||||||||||||||||||||||||||||||||||||||
M_BUFFER_INDEX |
Retrieves the index of the modified image buffer in the image buffer array passed to MdigProcess(), if the hook-handler function was hooked using MdigProcess(). This index always starts at 0. (summarize)Retrieves the index of the modified image buffer in the image buffer array passed to MdigProcess(), if the hook-handler function was hooked using MdigProcess(). (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info:
Data type: address of a
MIL_INT
Data type info:
Data type: address of a
MIL_INT
|
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the index of the modified image buffer. |
||||||||||||||||||||||||||||||||||||||
M_REGION_OFFSET_X |
Retrieves the X-offset of the modified region (of the image buffer). (summarize)Retrieves the X-offset of the modified region (of the image buffer). (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info:
Data type: address of a
MIL_INT
Data type info:
Data type: address of a
MIL_INT
|
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the X-offset of the modified region. |
||||||||||||||||||||||||||||||||||||||
M_REGION_OFFSET_Y |
Retrieves the Y-offset of the modified region (of the image buffer). (summarize)Retrieves the Y-offset of the modified region (of the image buffer). (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info:
Data type: address of a
MIL_INT
Data type info:
Data type: address of a
MIL_INT
|
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the Y-offset of the modified region. |
||||||||||||||||||||||||||||||||||||||
M_REGION_SIZE_X |
Retrieves the width of the modified region (of the image buffer). (summarize)Retrieves the width of the modified region (of the image buffer). (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info:
Data type: address of a
MIL_INT
Data type info:
Data type: address of a
MIL_INT
|
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the width of the modified region. |
||||||||||||||||||||||||||||||||||||||
M_REGION_SIZE_Y |
Retrieves the height of the modified region (of the image buffer). (summarize)Retrieves the height of the modified region (of the image buffer). (more details...) |
||||||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info:
Data type: address of a
MIL_INT
Data type info:
Data type: address of a
MIL_INT
|
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the height of the modified region. |
The following allows you to retrieve information about an I/O event. These information types are only available if MdigGetHookInfo() was called from a function hooked to event using MdigHookFunction() with M_IO_CHANGE.
For retrieving information about an I/O
event
|
|||||||||||||||||||||||||||||||||||||||
InfoType | Description | MIL system-specific tooltip (‡) |
|||||||||||||||||||||||||||||||||||||
UserVarPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
M_IO_INTERRUPT_SOURCE |
Retrieves the auxiliary input signal that generated the interrupt. (summarize)Retrieves the auxiliary input signal that generated the interrupt. (more details...) |
‡ | c M10 |
j | k M10 |
l | m | o | p | r U27 |
v | y U75 |
aa | ||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info:
Data type: address of a
MIL_INT
Data type info:
Data type: address of a
MIL_INT
|
‡ | c M10 |
j | k M10 |
l | m | o | p | r U27 |
v | y U75 |
aa | ||||||||||||||||||||||||||
M_AUX_IOn |
Specifies the auxiliary input signal that generated the interrupt, where n is the signal number. |
‡ | c M10 |
j | k M10 |
l | m | o | p | r U27 |
v | y U75 |
aa | ||||||||||||||||||||||||||
M_IO_STATUS |
Retrieves the state of the input signal that generated the interrupt. The returned value reflects the state of the input signal at the time of the interrupt. (summarize)Retrieves the state of the input signal that generated the interrupt. (more details...) |
‡ | c M10 |
j | k M10 |
l | m | o | p | r U27 |
v | y U75 |
aa | ||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info:
Data type: address of a
MIL_INT
Data type info:
Data type: address of a
MIL_INT
|
‡ | c M10 |
j | k M10 |
l | m | o | p | r U27 |
v | y U75 |
aa | ||||||||||||||||||||||||||
M_OFF |
Specifies that the auxiliary input signal that generated the interrupt is off. |
‡ | c M10 |
j | k M10 |
l | m | o | p | r U27 |
v | y U75 |
aa | ||||||||||||||||||||||||||
M_ON |
Specifies that the auxiliary input signal that generated the interrupt is on. |
‡ | c M10 |
j | k M10 |
l | m | o | p | r U27 |
v | y U75 |
aa |
The following allows you to retrieve information about a reference latch event. The following information types are only available if using a latch that has previously saved the time or counter value upon a hardware event and using MdigHookFunction() with any hook event.
For retrieving information about a reference latch
value
|
|||||||||||||||||||||||||||||||||||||||
InfoType | Description | MIL system-specific tooltip (‡) |
|||||||||||||||||||||||||||||||||||||
UserVarPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
M_REFERENCE_LATCH_VALUE + |
Retrieves the last timestamp or counter value stored by the specified latch. You must specify a combination value from the following table: Retrieves the last timestamp or counter value stored by the specified latch. (more details...) |
‡ | t U28 |
||||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info:
Data type: address of a
MIL_INT64
Data type info:
Data type: address of a
MIL_INT64
|
‡ | t U28 |
||||||||||||||||||||||||||||||||||||
Value |
Specifies the last timestamp or counter value stored by the specified latch. |
‡ | t U28 |
You must add the following value to the above-mentioned value to specify which of the I/O command lists to use.
For specifying the I/O command list to
use
|
|||||||||||||||||||||||||||||||||||||||
Combination value | Description |
MIL system-specific tooltip (‡) |
|||||||||||||||||||||||||||||||||||||
M_IO_COMMAND_LIST1 |
Specifies to inquire about I/O command list1. |
‡ | t U28 |
The following allows you to retrieve information about a rotary decoder event. This information type is only available if MdigGetHookInfo() was called from a function hooked to event using MdigHookFunction() with M_ROTARY_ENCODER. In addition, you must have enabled the rotary decoder to store this information (before the grab), using MdigControl() with M_ROTARY_ENCODER_FRAME_END_READ. Note that the current value of the rotary decoder's counter can be inquired using MdigInquire() with M_ROTARY_ENCODER_POSITION.
For retrieving information about a rotary decoder
event
|
|||||||||||||||||||||||||||||||||||||||
InfoType | Description | MIL system-specific tooltip (‡) |
|||||||||||||||||||||||||||||||||||||
UserVarPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
M_ROTARY_ENCODER_FRAME_END_POSITION + |
Retrieves the value of the rotary decoder's counter at the end of the last frame grabbed before the counter reached its trigger position. (summarize)Retrieves the value of the rotary decoder's counter at the end of the last frame grabbed before the counter reached its trigger position. (more details...) |
‡ | j | k M10 |
m | p | r U27 |
y U75 |
aa | ||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info:
Data type: address of a
MIL_INT
Data type info:
Data type: address of a
MIL_INT
|
‡ | j | k M10 |
m | p | r U27 |
y U75 |
aa | ||||||||||||||||||||||||||||||
Value |
Specifies the value of the rotary decoder's counter when the last frame was grabbed. |
‡ | j | k M10 |
m | p | r U27 |
y U75 |
aa |
You can add the following value to the above-mentioned value to specify which rotary decoder to inquire.
For specifying which rotary decoder to
inquire
|
|||||||||||||||||||||||||||||||||||||||
Combination value | Description |
MIL system-specific tooltip (‡) |
|||||||||||||||||||||||||||||||||||||
M_ROTARY_ENCODERn |
Specifies to inquire rotary decoder n, where n is a number between 1 and 4. Note that if you do not use this combination constant to specify a rotary decoder, the rotary decoder corresponding to 1+ the device number of the specified digitizer (using MdigHookFunction() with DigId) will be used. For example, when the device number of the specified digitizer is M_DEV2, rotary decoder M_ROTARY_ENCODER3 is used. (summarize)Specifies to inquire rotary decoder n, where n is a number between 1 and 4. (more details...) |
‡ | k M10 |
p | r U27 |
y U75 |
aa |
The following allows you to retrieve information from a data latch. These information types are only available if MdigGetHookInfo() was called from a function hooked to an end of grabbed frame event using MdigHookFunction() with M_GRAB_FRAME_END or from the hook-handler function (callback function) of MdigProcess(). In addition, you must have enabled the data latch to store this information, using MdigControl() with M_DATA_LATCH_STATE.
Note that you can only use data latches in association with the MIL digitizer allocated using MdigAlloc() with M_DEV0.
For retrieving information from a data
latch
|
|||||||||||||||||||||||||||||||||||||||
InfoType | Description | MIL system-specific tooltip (‡) |
|||||||||||||||||||||||||||||||||||||
UserVarPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
M_DATA_LATCH_VALUE + |
Retrieves the stored data of the specified data latch. If there are multiple instances of this data (for example, your data latch is triggered at the end of each grabbed line), use + M_VALUE_INDEX(). (summarize)Retrieves the stored data of the specified data latch. (more details...) |
‡ | k M10 |
p | r U27 |
y U75 |
aa | ||||||||||||||||||||||||||||||||
MIL system specific | |||||||||||||||||||||||||||||||||||||||
You must specify a combination value from the following table: |
‡ | p | r U27 |
aa | |||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info:
Data type: address of a
MIL_INT64
Data type info:
Data type: address of a
MIL_INT64
|
‡ | k M10 |
p | r U27 |
y U75 |
aa | ||||||||||||||||||||||||||||||||
M_NULL |
Specifies that the stored data could not be read. |
‡ | k M10 |
p | r U27 |
y U75 |
aa | ||||||||||||||||||||||||||||||||
Value |
Specifies the stored data. |
‡ | k M10 |
p | r U27 |
y U75 |
aa | ||||||||||||||||||||||||||||||||
M_DATA_LATCH_VALUE_ALL + |
Retrieves all the stored data of the specified data latch. (summarize)Retrieves all the stored data of the specified data latch. (more details...) |
‡ | k M10 |
p | r U27 |
y U75 |
aa | ||||||||||||||||||||||||||||||||
MIL system specific | |||||||||||||||||||||||||||||||||||||||
You must specify a combination value from the following table: |
‡ | p | r U27 |
aa | |||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info:
Data type: array of type
MIL_INT64 [optionally, in C++: a reference to a std::vector<MIL_INT64>
] MORE
Data type info:
Data type: array of type
MIL_INT64 [optionally, in C++: a reference to a std::vector<MIL_INT64>
] MORE
|
‡ | k M10 |
p | r U27 |
y U75 |
aa | ||||||||||||||||||||||||||||||||
Value |
Specifies all the stored data. |
‡ | k M10 |
p | r U27 |
y U75 |
aa | ||||||||||||||||||||||||||||||||
M_DATA_LATCH_VALUE_COUNT + |
Counts the number of items stored inside a data latch. Note that a data latch is reset at every frame event. (summarize)Counts the number of items stored inside a data latch. (more details...) |
‡ | k M10 |
p | r U27 |
y U75 |
aa | ||||||||||||||||||||||||||||||||
MIL system specific | |||||||||||||||||||||||||||||||||||||||
You must specify a combination value from the following table: |
‡ | p | r U27 |
aa | |||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info:
Data type: address of a
MIL_INT64
Data type info:
Data type: address of a
MIL_INT64
|
‡ | k M10 |
p | r U27 |
y U75 |
aa | ||||||||||||||||||||||||||||||||
Value |
Specifies the number of instances. Note that a data latch is reset at every frame event. (summarize)Specifies the number of instances. (more details...) |
‡ | k M10 |
p | r U27 |
y U75 |
aa |
You must add the following value to the above-mentioned values to specify which data latch to inquire about.
For specifying the data latch to
inquire
|
|||||||||||||||||||||||||||||||||||||||
Combination value | Description |
MIL system-specific tooltip (‡) |
|||||||||||||||||||||||||||||||||||||
M_LATCHn |
Specifies the data latch from which to retrieve information, where n is a value from 0 to 15. |
‡ | p | r U27 |
aa |
You can add the following value to the above-mentioned value to specify the instance of the stored information to retrieve.
For identifying the instance of the stored
information to retrieve
|
|||||||||||||||||||||||||||||||||||||||
Combination value | Description |
MIL system-specific tooltip (‡) |
|||||||||||||||||||||||||||||||||||||
Specifies the instance of stored information to retrieve. (summarize)Specifies the instance of stored information to retrieve. (more details...) |
‡ | k M10 |
p | r U27 |
aa | ||||||||||||||||||||||||||||||||||
Parameters | |||||||||||||||||||||||||||||||||||||||
Sets the instance of stored information. For example, to read the information latched when the last line finishes being grabbed for a frame, with 1024 lines, the instance would be 1023. |
‡ | k M10 |
p | r U27 |
aa |
The following allows you to retrieve information from a GenICam feature change event. These information types are only available if MdigGetHookInfo() was called from a function hooked to GenICam feature change event using MdigHookFunction() with M_FEATURE_CHANGE.
For retrieving information from a GenICam feature
change event
|
|||||||||||||||||||||||||||||||||||||||
InfoType | Description | MIL system-specific tooltip (‡) |
|||||||||||||||||||||||||||||||||||||
UserVarPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
M_GC_FEATURE_CHANGE_NAME + |
Retrieves the name of the GenICam feature that changed. (summarize)Retrieves the name of the GenICam feature that changed. (more details...) |
‡ | c U25 |
v | |||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
|
‡ | c U25 |
v | |||||||||||||||||||||||||||||||||||
Value |
Specifies the feature name. |
‡ | c U25 |
v |
You can add the following value to the above-mentioned value to get the string's length.
For getting the string size
|
|||||||||||||||||||||||||||||||||||||||
InfoType | Description | MIL system-specific tooltip (‡) |
|||||||||||||||||||||||||||||||||||||
UserVarPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
M_STRING_SIZE |
Retrieves the length of the string, including the terminating null character ("\0"). (summarize)Retrieves the length of the string, including the terminating null character ("\0"). (more details...) |
‡ | v | ||||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info:
Data type: address of a
MIL_INT
Data type info:
Data type: address of a
MIL_INT
|
‡ | v |
The following allows you to retrieve information about events that occur when grabbing into a multi-frame buffer (frame burst events). Unless otherwise specified, you can retrieve these information types if you call this function from within a function hooked to a frame end event using MdigHookFunction() with M_GRAB_FRAME_END or MdigProcess().
For retrieving information from a grab frame burst
event
|
|||||||||||||||||||||||||||||||||||||||
InfoType | Description | MIL system-specific tooltip (‡) |
|||||||||||||||||||||||||||||||||||||
UserVarPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
M_GRAB_FRAME_BURST_COUNT |
Retrieves the number of frames grabbed into the multi-frame buffer. (summarize)Retrieves the number of frames grabbed into the multi-frame buffer. (more details...) |
‡ | k U29 |
y U75 |
|||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info:
Data type: address of a
MIL_INT
Data type info:
Data type: address of a
MIL_INT
|
‡ | k U29 |
y U75 |
|||||||||||||||||||||||||||||||||||
Value |
Specifies the number of frames grabbed. |
‡ | k U29 |
y U75 |
|||||||||||||||||||||||||||||||||||
M_GRAB_FRAME_BURST_END_SOURCE |
Retrieves the type of event(s) that ended the grab of sequential frames into the multi-frame buffer (end of the frame burst). Simultaneous events might have caused the end of grab to happen, so a combination of the values below can be returned. Bitwise operators must be used to verify the presence of a specific returned value. (summarize)Retrieves the type of event(s) that ended the grab of sequential frames into the multi-frame buffer (end of the frame burst). (more details...) |
‡ | k U29 |
y U75 |
|||||||||||||||||||||||||||||||||||
UserVarPtr extra info |
Data type info:
Data type: address of a
MIL_INT MORE
Data type info:
Data type: address of a
MIL_INT MORE
|
‡ | k U29 |
y U75 |
|||||||||||||||||||||||||||||||||||
M_BURST_COUNT |
Specifies that the entire group of sequential frames have been grabbed into the multi-frame buffer. To specify the number of frames in a frame burst, use MdigControl() with M_GRAB_FRAME_BURST_SIZE. (summarize)Specifies that the entire group of sequential frames have been grabbed into the multi-frame buffer. (more details...) |
‡ | k U29 |
y U75 |
|||||||||||||||||||||||||||||||||||
M_BURST_MAX_TIME |
Specifies that the maximum frame burst time has elapsed. To specify the maximum time for a frame burst to complete, use MdigControl() with M_GRAB_FRAME_BURST_MAX_TIME. (summarize)Specifies that the maximum frame burst time has elapsed. (more details...) |
‡ | k U29 |
y U75 |
|||||||||||||||||||||||||||||||||||
M_BURST_TRIGGER |
Specifies that an end-of-frame-burst trigger occurred. To enable using an end-of-frame-burst trigger to end the grab, use MdigControl() with M_GRAB_FRAME_BURST_END_TRIGGER_STATE. (summarize)Specifies that an end-of-frame-burst trigger occurred. (more details...) |
‡ | k U29 |
y U75 |
Header | Include mil.h. |
Library | Use mil.lib. |
DLL | Requires mil.dll. |