MIL_ID SystemId, | //in |
MIL_INT DigNum, | //in |
MIL_CONST_TEXT_PTR DataFormat, | //in |
MIL_INT64 InitFlag, | //in |
MIL_ID *DigIdPtr | //out |
This function allocates a digitizer on the specified system so that it can be used by subsequent MIL digitizer functions. A digitizer on the target system must be allocated to acquire data from a camera. Its device number specifies the first acquisition path of the digitizer. Its digitizer configuration format (DCF) establishes the number of acquisition paths used. One digitizer might use several acquisition paths depending on the input format of the camera. Use MdigGrab(), MdigGrabContinuous(), or MdigProcess() to grab.
Multiple digitizers can be allocated on the same system. If the system supports the possibility of independent acquisition paths, the digitizers' device number together with their DCF establishes if they represent dependent or independent acquisition path(s) on the system. If independent, grabs from these digitizers occur simultaneously. If dependent, grabs from these digitizers occur consecutively.
If multiple cameras of the same type are connected to the same acquisition path(s), instead of allocating multiple digitizers, you can allocate a single digitizer in the required format and then use MdigControl() with M_CHANNEL to switch between the cameras. M_CHANNEL selects the active input channel of the digitizer. The switch occurs upon the next call to MdigGrab(), MdigGrabContinuous(), or MdigProcess() with the digitizer. The default input channel is determined by the selected DCF (generally, M_CH0).
It is faster to allocate all the required digitizers first, perform the required grabs, and then free all the digitizers rather than allocate, grab, and then free each digitizer in succession.
Upon execution of this function, MIL ensures that the digitizer is present before allocating it and generates an error if it is not. Note that the corresponding hardware won't necessarily be programmed at the time of allocation.
When you have completely finished using a digitizer, you should free it, using MdigFree().
Specifies the number or string to identify the device to allocate for the digitizer.
This parameter can be set to one of the following:
For specifying the device
number
|
|||||||||||||||||||||||||||||||||||||||
Value |
Description
|
MIL system-specific tooltip (†) |
|||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default device number. (more details...) |
† | a | b | c | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | |||||||||||||||||||
Specifies the camera (or device) to allocate for the digitizer. (more details...) |
† | c | o | s | |||||||||||||||||||||||||||||||||||
Parameters | |||||||||||||||||||||||||||||||||||||||
Sets the camera identifier. |
† | c | o | s | |||||||||||||||||||||||||||||||||||
MIL system specific | |||||||||||||||||||||||||||||||||||||||
When the InitFlag is set to M_GC_DEVICE_IP_ADDRESS, specify the camera's IP address. When the InitFlag is set to M_GC_DEVICE_USER_NAME, specify the camera's name. This macro is not available with any other InitFlag. |
† | c | s | ||||||||||||||||||||||||||||||||||||
Note that this macro can only be used when the InitFlag is set to M_GC_DEVICE_USER_NAME. |
† | o | |||||||||||||||||||||||||||||||||||||
M_DEVn |
Specifies the first acquisition path with which to associate a timing control unit (for example, a video capture controller) on your frame grabber, or the rank of your camera when dealing with a network camera (for example, a GigE Vision camera) or a USB3 Vision camera. (more details...) |
† | a | b | c | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | |||||||||||||||||||
MIL system specific | |||||||||||||||||||||||||||||||||||||||
The value of n must be 0 since you can only grab from one digitizer at a time. |
† | a | b | f | n | ||||||||||||||||||||||||||||||||||
The value of n must be from 0 to 31. This number represents the camera's index number. Note that this value can only be used when the InitFlag is set M_DEV_NUMBER. |
† | c | o | s | |||||||||||||||||||||||||||||||||||
The value of n must be from 0 to 3. The number of digitizers that can be allocated depends on the amount of bandwidth available using M_1394_BANDWIDTH(). |
† | e | |||||||||||||||||||||||||||||||||||||
The value of n must be either 0 or 1 for Matrox Morphis Dual. The value of n must be from 0 to 3 for Matrox Morphis Quad. |
† | g | |||||||||||||||||||||||||||||||||||||
The value of n must be from 0 to 15 for Matrox Morphis QxT. |
† | h | |||||||||||||||||||||||||||||||||||||
When dealing with Matrox Solios XA single analog, the value of n must be 0. When dealing with Matrox Solios XA quad analog, the value of n must be from 0 to 3. For details regarding allocation of specific independent digitizers, see the Allocating independent MIL digitizers on Matrox Solios section of Chapter 13: Matrox Solios. |
† | l | |||||||||||||||||||||||||||||||||||||
The value of n must be from 0 to 3. |
† | k | q | ||||||||||||||||||||||||||||||||||||
When dealing with Matrox Radient eCL-SF, the value of n must be 0. When dealing with Matrox Radient eCL-DF or Matrox Radient eCL-DB, the value of n must be either 0 or 1. When dealing with Matrox Radient eCL-QB, the value of n must be 0 to 3. |
† | j | m | p | r |
Specifies the name of the digitizer configuration format (DCF) appropriate for your camera. Depending on the target system, different DCFs are supported.
One of the following values can be specified when allocating a digitizer for either a monochrome or a color camera:
For monochrome or color
cameras
|
|||||||||||||||||||||||||||||||||||||||
Value |
Description
|
MIL system-specific tooltip (†) |
|||||||||||||||||||||||||||||||||||||
M_NULL |
Specifies the data format is set by the digitizer allocated as the multicast master. (more details...) |
† | c | s | |||||||||||||||||||||||||||||||||||
MIL_TEXT("DCF File name") 1 |
Specifies the path and file name of the DCF (for example: "C:\mydirectory\myfile"). (more details...) |
† | b | c | f | g | h | i | j | k | l | m | n | o | p | q | r | s | |||||||||||||||||||||
MIL system specific | |||||||||||||||||||||||||||||||||||||||
Use the Matrox Intellicam program to create your own DCF file. |
† | b | c | g | h | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||||||||
MIL_TEXT("Image path[@n]") 1 |
Specifies the path of the directory from which to retrieve image files (or an AVI file) when allocating a simulated digitizer (for example, "C:\mydirectory\"), where n is the frame rate; the information in brackets is optional (for example, "C:\mydirectory\@30". (more details...) |
† | a | ||||||||||||||||||||||||||||||||||||
MIL_TEXT("M_DEFAULT") 1 |
Specifies the default digitizer format. (more details...) |
† | a | b | c | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | |||||||||||||||||||
MIL_TEXT("M_DEFAULT_1394") 1 |
Specifies the format with the largest image dimensions possible with the highest available frame rate for the connected IEEE 1394-compliant camera. (more details...) |
† | e | ||||||||||||||||||||||||||||||||||||
MIL_TEXT("M_xXy_data_FORMAT_7_z") 1 |
Specifies the string format for format 7 cameras, where x is SizeX in pixels, y is SizeY in pixels, data_FORMAT_7 is the image data format (for example, YUV, RGB...), and z is the format 7 mode (for example, "M_640X480_YUV411_FORMAT_7_1", "M_320X240_YUV422_FORMAT_7_2", and "M_1024X768_YUV_FORMAT_7_0" are accepted strings from one type of camera). (more details...) |
† | e | ||||||||||||||||||||||||||||||||||||
MIL_TEXT("M_xXy_data[@z[FPS]]") 1 |
Specifies the string format, where x is SizeX in pixels, y is SizeY in pixels, data is the image data format (for example, YUV, RGB...), and z is the frame rate; the information in brackets is optional (for example, "M_640X480_YUV411@30FPS", "M_320x240_YUV422@7.5", and "M_1024X768_YUV" are accepted strings from one type of camera). |
† | e | ||||||||||||||||||||||||||||||||||||
MIL_TEXT("SDCF File name") 1 |
Specifies the path and file name of the simulated DCF for use with a simulated digitizer (for example: "C:\mydirectory\myfile"). (more details...) |
† | a |
1 If you are passing the value in a variable, don't enclose it in MIL_TEXT().
One of the following values can be specified when allocating a digitizer for a monochrome cameras:
For monochrome cameras
|
|||||||||||||||||||||||||||||||||||||||
Value |
Description
|
MIL system-specific tooltip (†) |
|||||||||||||||||||||||||||||||||||||
MIL_TEXT("M_CCIR") 1 |
Specifies a DCF for a CCIR, 768x576, 14.75 MHz, analog camera. |
† | b | g | h | l | n | ||||||||||||||||||||||||||||||||
MIL_TEXT("M_RS170") 1 |
Specifies a DCF for an RS-170, 640x480, 12.27 MHz, analog camera. (more details...) |
† | b | e | g | h | l | n | |||||||||||||||||||||||||||||||
MIL system specific | |||||||||||||||||||||||||||||||||||||||
This value is available only if it is supported by the camera. |
† | e |
1 If you are passing the value in a variable, don't enclose it in MIL_TEXT().
One of the following values can be specified when allocating a digitizer for a color camera:
The following values are not supported on Matrox Solios XA single analog.
For color cameras
|
|||||||||||||||||||||||||||||||||||||||
Value |
Description
|
MIL system-specific tooltip (†) |
|||||||||||||||||||||||||||||||||||||
MIL_TEXT("M_NTSC") 1 |
Specifies a DCF for a composite NTSC 640x480, 12.27 MHz camera. (more details...) |
† | b | e | g | h | n | ||||||||||||||||||||||||||||||||
MIL system specific | |||||||||||||||||||||||||||||||||||||||
This value is available only if it is supported by the camera. |
† | e | |||||||||||||||||||||||||||||||||||||
MIL_TEXT("M_NTSC_RGB") 1 |
Specifies a DCF for a component RGB, 640x480, 12.27 MHz camera. (more details...) |
† | l | n | |||||||||||||||||||||||||||||||||||
MIL system specific | |||||||||||||||||||||||||||||||||||||||
Specifies a DCF for RGB format with an external synchronization signal. |
† | l | |||||||||||||||||||||||||||||||||||||
Specifies a DCF for RGB format with a composite synchronization signal on green. |
† | n | |||||||||||||||||||||||||||||||||||||
MIL_TEXT("M_NTSC_YC") 1 |
Specifies a DCF for a component NTSC Y/C (SVHS), 640x480, 12.27 MHz camera. |
† | b | g | n | ||||||||||||||||||||||||||||||||||
MIL_TEXT("M_PAL") 1 |
Specifies a DCF for a composite PAL 768x576, 14.75 MHz camera. |
† | b | g | h | n | |||||||||||||||||||||||||||||||||
MIL_TEXT("M_PAL_RGB") 1 |
Specifies a DCF for a component RGB, 768x576, 14.75 MHz camera. (more details...) |
† | l | n | |||||||||||||||||||||||||||||||||||
MIL system specific | |||||||||||||||||||||||||||||||||||||||
Specifies a DCF for RGB format with an external synchronization signal. |
† | l | |||||||||||||||||||||||||||||||||||||
Specifies a DCF for RGB format with a composite synchronization signal on green. |
† | n | |||||||||||||||||||||||||||||||||||||
MIL_TEXT("M_PAL_YC") 1 |
Specifies a DCF for a PAL Y/C, 768x576, 14.75 MHz camera. |
† | b | g | n |
1 If you are passing the value in a variable, don't enclose it in MIL_TEXT().
Specifies the type of initialization to perform on the digitizer.
For specifying the type of
initialization
|
|||||||||||||||||||||||||||||||||||||||
Value |
Description
|
MIL system-specific tooltip (†) |
|||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value. (more details...) |
† | a | b | c | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | |||||||||||||||||||
MIL system specific | |||||||||||||||||||||||||||||||||||||||
The default value is M_DEV_NUMBER. |
† | c | o | s | |||||||||||||||||||||||||||||||||||
The default value is M_EMULATED. |
† | a | |||||||||||||||||||||||||||||||||||||
The default value is M_1394_BANDWIDTH(), where the bandwidth is set to 100%. |
† | e | |||||||||||||||||||||||||||||||||||||
Specifies that grabbing is permitted with the allocated digitizer. |
† | i | |||||||||||||||||||||||||||||||||||||
Specifies that the typical amount of bandwidth used by a camera communicating with MIL should be reduced by a given percentage. (more details...) |
† | e | |||||||||||||||||||||||||||||||||||||
Parameters | |||||||||||||||||||||||||||||||||||||||
Specifies the total amount of bandwidth for the digitizer being allocated, as a percentage. |
† | e | |||||||||||||||||||||||||||||||||||||
M_DEV_NUMBER + |
Specifies to allocate the digitizer for the camera with the specified device number. (more details...) |
† | c | o | s | ||||||||||||||||||||||||||||||||||
M_EMULATED |
Specifies to allocate the digitizer as a simulated digitizer. |
† | a | ||||||||||||||||||||||||||||||||||||
M_GC_DEVICE_IP_ADDRESS + |
Specifies to allocate the digitizer for the camera at the specified IP address. (more details...) |
† | c | s | |||||||||||||||||||||||||||||||||||
M_GC_DEVICE_USER_NAME + |
Specifies to allocate the digitizer for the camera with the specified device's user name. (more details...) |
† | c | o | s | ||||||||||||||||||||||||||||||||||
M_MINIMAL |
Specifies that grabbing is not permitted with the allocated digitizer. (more details...) |
† | i |
You can use one or more of the following values in combination with each other or with the above-mentioned values, to specify further details of the allocation of your camera.
For specifying further
details
|
|||||||||||||||||||||||||||||||||||||||
Value |
Description
|
MIL system-specific tooltip (†) |
|||||||||||||||||||||||||||||||||||||
Specifies which camera's device description file (XML) to download from the camera's manifest table. (more details...) |
† | c | o | s | |||||||||||||||||||||||||||||||||||
Parameters | |||||||||||||||||||||||||||||||||||||||
Specifies which XML to download from the camera's manifest table. This can be a value from 0 to 15. |
† | c | o | s | |||||||||||||||||||||||||||||||||||
M_GC_PACKET_SIZE_NEGOTIATION_SKIP |
Specifies that the packet size negotiation task is skipped. (more details...) |
† | c | s | |||||||||||||||||||||||||||||||||||
M_GC_XML_DOWNLOAD_SKIP |
Specifies that the camera's device description file (XML) should not be downloaded from the camera associated with the digitizer. (more details...) |
† | c | k | o | q | s | ||||||||||||||||||||||||||||||||
M_GC_XML_FORCE_DOWNLOAD |
Specifies that the camera's device description file (XML) should be downloaded from the camera associated with the digitizer. (more details...) |
† | c | k | o | q | s |
You can use one of the following values on its own, or add it to the above-mentioned values, to specify whether the allocated digitizer will be a master, monitor, or slave digitizer in a multicast master-slave relationship.
For information about using IP multicast and configuring your Matrox GigE Vision digitizer, refer to the Using IP multicast section of Chapter 4: Matrox GigE Vision driver.
For specifying the multicasting
master-slave relationship
|
|||||||||||||||||||||||||||||||||||||||
Value | Description
|
MIL system-specific tooltip (†) |
|||||||||||||||||||||||||||||||||||||
M_GC_MULTICAST_MASTER |
Specifies that the allocated digitizer will be the master digitizer in a multicasting master-slave or monitor relationship. (more details...) |
† | c | s | |||||||||||||||||||||||||||||||||||
M_GC_MULTICAST_MONITOR |
Specifies that the allocated digitizer will be a special type of slave digitizer (a monitor digitizer) in a multicast master-slave relationship. (more details...) |
† | c | s | |||||||||||||||||||||||||||||||||||
M_GC_MULTICAST_SLAVE |
Specifies that the allocated digitizer will be a slave digitizer in a multicast master-slave relationship. (more details...) |
† | c | s |
Header | Include mil.h. |
Library | Use mil.lib. |
DLL | Requires mil.dll. |