Table: | For specifying the number of the target board |
+ combination: | For identifying the instance of the GenTL library to use |
Table: | For specifying the type of initialization setup |
+ combination: | For specifying that the target board is identified using its user-defined name |
MIL_ID ContextAppId, | //in |
MIL_CONST_TEXT_PTR SystemDescriptor, | //in |
MIL_INT SystemNum, | //in |
MIL_INT64 InitFlag, | //in |
MIL_ID *SysIdPtr | //out |
This function allocates a MIL system so that it can be used by subsequent MIL functions. This function can allocate a MIL system, which consists of a Matrox imaging board (or third-party board), the Host CPU and memory, and any available graphics controller. Alternatively, this function can allocate a Host-type system, which consists of the Host CPU and memory, and any available graphics controller. Upon execution of this function, MIL ensures that it can open communication with the hardware associated with the system before allocating it, and generates an error if it cannot.
A system must be allocated before any buffers, displays, or digitizer can be allocated on it. Before allocating a system, an application must be allocated, using MappAlloc() or MappAllocDefault(). To use the default system, you must allocate it using M_SYSTEM_DEFAULT.
Note, upon allocation of an application, a default Host system is automatically allocated. Rather than using MsysAlloc() to allocate a Host system, you can use this default Host system, by specifying M_DEFAULT_HOST wherever a Host system identifier is required.
When you no longer need a particular system, free it using MsysFree().
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. |
Specifies the type of system to allocate. Set this parameter to one of the following values:
For specifying the type of system to
allocate
|
|||||||||||||||||||||||||||||||||||||||
Value | Description |
MIL system-specific tooltip (‡) |
|||||||||||||||||||||||||||||||||||||
M_SYSTEM_CLARITY_UHD |
Allocates a MIL Clarity UHD system. |
‡ | u U36 |
||||||||||||||||||||||||||||||||||||
M_SYSTEM_CONCORD_POE |
Allocates a MIL Concord POE system. Note that to use Matrox Concord PoE for acquisition, you must allocate and use a MIL GigE Vision system (M_SYSTEM_GIGE_VISION) instead; refer to information denoted for a GigE Vision system. You only need to allocate and use a MIL Concord PoE system (M_SYSTEM_CONCORD_POE) to use the other functionality on the board and to inquire about the board itself. So information in this reference, for use with a MIL Concord PoE system, is denoted MIL Concord PoE with ToE since it is typically only applicable to this model of the board. If the information is applicable to the Matrox Concord PoE base model, it will be explicitly specified. For more information, see the Using a MIL Concord PoE system with the Matrox Concord PoE base model section of the Matrox Concord PoE chapter in the MIL Hardware-specific Notes. (summarize)Allocates a MIL Concord POE system. (more details...) |
‡ | z | ||||||||||||||||||||||||||||||||||||
M_SYSTEM_DEFAULT |
Specifies the default system. This value is set during MIL installation and using the MILConfig utility. Note that the end-user can always change this value. (summarize)Specifies the default system. (more details...) |
‡ | a | c M10 |
g | h | i | j | k M10 |
l | m | o | p | r U27 |
t U28 |
u U36 |
v | w U53 |
y U75 |
z | aa | ||||||||||||||||||
M_SYSTEM_GENTL |
Allocates a MIL GenTL system. This allocation opens general communication with all the GenTL-compliant cameras (or devices) found on your subnet. (summarize)Allocates a MIL GenTL system. (more details...) |
‡ | v | ||||||||||||||||||||||||||||||||||||
M_SYSTEM_GIGE_VISION |
Allocates a MIL GigE Vision system. This allocation opens general communication with all the GigE Vision-compliant cameras (or devices) found on your subnet (through one or more Gigabit Ethernet network adapters in your computer). (summarize)Allocates a MIL GigE Vision system. (more details...) |
‡ | c U25 |
||||||||||||||||||||||||||||||||||||
M_SYSTEM_HOST |
Specifies a Host system. Note that a Host system has no hardware-supported acquisition capabilities, however some acquisition capabilities are available when using a simulated digitizer, allocated using MdigAlloc() with M_EMULATED. (summarize)Specifies a Host system. (more details...) |
‡ | a | ||||||||||||||||||||||||||||||||||||
M_SYSTEM_INDIO |
Allocates a MIL Indio system. If you need to capture images from a GigE Vision camera, you will need to allocate M_SYSTEM_GIGE_VISION as well. (summarize)Allocates a MIL Indio system. (more details...) |
‡ | w U53 |
||||||||||||||||||||||||||||||||||||
M_SYSTEM_IRIS_GTR |
Allocates a MIL Iris GTR system. |
‡ | t U28 |
||||||||||||||||||||||||||||||||||||
M_SYSTEM_MORPHIS |
Allocates a MIL Morphis system. |
‡ | g | ||||||||||||||||||||||||||||||||||||
M_SYSTEM_MORPHISQXT |
Allocates a MIL Morphis QxT system. |
‡ | h | ||||||||||||||||||||||||||||||||||||
M_SYSTEM_ORION_HD |
Allocates a MIL Orion HD system. |
‡ | i | ||||||||||||||||||||||||||||||||||||
M_SYSTEM_RADIENT |
Allocates a MIL Radient system. |
‡ | j | ||||||||||||||||||||||||||||||||||||
M_SYSTEM_RADIENTCXP |
Allocates a MIL Radient eV-CXP system. |
‡ | k M10 |
||||||||||||||||||||||||||||||||||||
M_SYSTEM_RADIENTEVCL |
Allocates a MIL Radient eV-CL system. |
‡ | r U27 |
aa | |||||||||||||||||||||||||||||||||||
M_SYSTEM_RADIENTPRO |
Allocates a MIL RadientPro CL system. |
‡ | p | ||||||||||||||||||||||||||||||||||||
M_SYSTEM_RAPIXOCXP |
Allocates a MIL Rapixo CXP system. |
‡ | y U75 |
||||||||||||||||||||||||||||||||||||
M_SYSTEM_SOLIOS |
Allocates a MIL Solios system. |
‡ | l | m | |||||||||||||||||||||||||||||||||||
M_SYSTEM_USB3_VISION |
Allocates a MIL USB3 Vision system. This allocation opens general communication with all the USB3 Vision-compliant cameras (or devices) connected to your computer. (summarize)Allocates a MIL USB3 Vision system. (more details...) |
‡ | o | ||||||||||||||||||||||||||||||||||||
MIL_TEXT("dmilpcie://[Passkey:]RemoteComputerName[:Port]/MILSystemType") 1 |
[This is
only applicable to Matrox Supersight platform]
Allocates a DMIL remote system on a remote Matrox Supersight SHB that will communicate with the local SHB, using the PCIe protocol. To allocate a DMIL remote system on a Matrox Supersight SHB, that SHB must have a valid DMIL installation and be in the same Matrox Supersight as the local SHB. When specifying the string that indicates the remote SHB:
Prior to allocating a DMIL remote system, certain conditions must be met. For more information, see Chapter 48: Distributed MIL. (summarize)[This is
only applicable to Matrox Supersight platform]
Allocates a DMIL remote system on a remote Matrox Supersight SHB that will communicate with the local SHB, using the PCIe protocol. (more details...) |
‡ | a | c M10 |
g | h | i | j | k M10 |
l | m | o | p | r U27 |
u U36 |
v | w U53 |
y U75 |
z | aa | |||||||||||||||||||
MIL system specific | |||||||||||||||||||||||||||||||||||||||
Note that to allocate this system, the Distributed MIL server cannot be running as a service on the remote computer; you must either set it to run at logon, or start it manually. To set it to run at logon, open the MILConfig utility and select Run at every logon with user credentials in the Server Settings pane, found under the Distributed MIL item. To start it manually, you must logon to the remote computer and, from the MILConfig utility, click on the Start Server button, found in the Server Settings pane under the Distributed MIL item. For more information, see the Setting up the Distributed MIL server on remote computers subsection of the Preparing computers for Distributed MIL section of Chapter 48: Distributed MIL. |
‡ | i | u U36 |
||||||||||||||||||||||||||||||||||||
MIL_TEXT("dmilshm://[Passkey:]localhost[:Port]/MILSystemType") 1 |
Allocates a DMIL remote system for a separate process on the local computer, using the DMIL SHM protocol. This protocol allows you to communicate between a client and server process on the same computer using shared memory. To allocate a DMIL remote system on a computer, that computer must have a valid DMIL installation. When specifying the string that indicates the local computer:
The DMIL SHM protocol only supports connections to localhost. Prior to allocating a DMIL remote system, certain conditions must be met. For more information, see Chapter 48: Distributed MIL. (summarize)Allocates a DMIL remote system for a separate process on the local computer, using the DMIL SHM protocol. (more details...) |
‡ | a | c M10 |
g | h | i | j | k M10 |
l | m | o | p | r U27 |
t U28 |
u U36 |
v | w U53 |
y U75 |
z | aa | ||||||||||||||||||
MIL system specific | |||||||||||||||||||||||||||||||||||||||
Note that to allocate this system, the Distributed MIL server cannot be running as a service on the remote computer; you must either set it to run at logon, or start it manually. To set it to run at logon, open the MILConfig utility and select Run at every logon with user credentials in the Server Settings pane, found under the Distributed MIL item. To start it manually, you must logon to the remote computer and, from the MILConfig utility, click on the Start Server button, found in the Server Settings pane under the Distributed MIL item. For more information, see the Setting up the Distributed MIL server on remote computers subsection of the Preparing computers for Distributed MIL section of Chapter 48: Distributed MIL. |
‡ | i | u U36 |
||||||||||||||||||||||||||||||||||||
MIL_TEXT("dmiltcp://[Passkey:]RemoteComputerName[:Port]/MILSystemType") 1 |
Allocates a DMIL remote system on a remote or local computer, using the TCP/IP protocol. To allocate a DMIL remote system on a computer, that computer must have a valid DMIL installation. When specifying the string that indicates the remote computer (or local computer for a DMIL server also running locally):
Prior to allocating a DMIL remote system, certain conditions must be met. For more information, see Chapter 48: Distributed MIL. (summarize)Allocates a DMIL remote system on a remote or local computer, using the TCP/IP protocol. (more details...) |
‡ | a | c M10 |
g | h | i | j | k M10 |
l | m | o | p | r U27 |
t U28 |
u U36 |
v | w U53 |
y U75 |
z | aa | ||||||||||||||||||
MIL system specific | |||||||||||||||||||||||||||||||||||||||
Note that to allocate this system, the Distributed MIL server cannot be running as a service on the remote computer; you must either set it to run at logon, or start it manually. To set it to run at logon, open the MILConfig utility and select Run at every logon with user credentials in the Server Settings pane, found under the Distributed MIL item. To start it manually, you must logon to the remote computer and, from the MILConfig utility, click on the Start Server button, found in the Server Settings pane under the Distributed MIL item. For more information, see the Setting up the Distributed MIL server on remote computers subsection of the Preparing computers for Distributed MIL section of Chapter 48: Distributed MIL. |
‡ | i | u U36 |
1 If you are passing the value in a variable, don't enclose it in MIL_TEXT().
Specifies the number (rank) or user-defined name of the target board of the specified system type. This parameter can be set to one of the following:
For specifying the number of the target
board
|
|||||||||||||||||||||||||||||||||||||||
Value | Description |
MIL system-specific tooltip (‡) |
|||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default board. |
‡ | a | c M10 |
g | h | i | j | k M10 |
l | m | o | p | r U27 |
t U28 |
u U36 |
v | w U53 |
y U75 |
z | aa | ||||||||||||||||||
Casts the address of the string identifying the user-defined board name, from a MIL_CONST_TEXT_PTR to a MIL_INT. (summarize)Casts the address of the string identifying the user-defined board name, from a MIL_CONST_TEXT_PTR to a MIL_INT. (more details...) |
‡ | z | |||||||||||||||||||||||||||||||||||||
Parameters | |||||||||||||||||||||||||||||||||||||||
This parameter specifies the string to cast. |
‡ | z | |||||||||||||||||||||||||||||||||||||
|
‡ | z | |||||||||||||||||||||||||||||||||||||
M_DEVn + |
Specifies the device number (rank) of the board. You can set n to one of the following values: 0 <= n <=15. (summarize)Specifies the device number (rank) of the board. (more details...) |
‡ | a | c M10 |
g | h | i | j | k M10 |
l | m | o | p | r U27 |
t U28 |
u U36 |
v | w U53 |
y U75 |
z | aa | ||||||||||||||||||
MIL system specific | |||||||||||||||||||||||||||||||||||||||
Note that only M_DEV0 is valid. |
‡ | c M10 |
o | v |
1 If you are passing the value in a variable, don't enclose it in MIL_TEXT().
You can add the following value to the above-mentioned value to identify the GenTL library for which to allocate a MIL GenTL system.
All third-party proprietary GenTL libraries installed on your computer are sorted and indexed by MIL. Use the GenTL Producer index number to identify the library that your MIL system should use to communicate with the hardware devices on the specified transportation layer. These libraries are indexed and sorted for reference by MIL (the GenTL Consumer). In all cases, the same number and type of libraries should be installed on every computer that will run your application; the order in which they are installed, however, is not important.
To determine the number of GenTL libraries installed on your computer, use MappInquire() with M_GENTL_PRODUCER_COUNT or use the General Default Values page of the MILConfig utility.
For identifying the instance of the GenTL library to
use
|
|||||||||||||||||||||||||||||||||||||||
Combination value | Description |
MIL system-specific tooltip (‡) |
|||||||||||||||||||||||||||||||||||||
Specifies the GenTL Producer (library) for which to allocate this MIL GenTL system. (summarize)Specifies the GenTL Producer (library) for which to allocate this MIL GenTL system. (more details...) |
‡ | v | |||||||||||||||||||||||||||||||||||||
Parameters | |||||||||||||||||||||||||||||||||||||||
Specifies the index of the GenTL Producer. |
‡ | v | |||||||||||||||||||||||||||||||||||||
|
‡ | v |
Specifies how to perform the allocation.
To specify the type of initialization to perform on the selected system, set this parameter to one of the following:
For specifying the type of initialization
setup
|
|||||||||||||||||||||||||||||||||||||||
Value | Description |
MIL system-specific tooltip (‡) |
|||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value. (summarize)Specifies the default value. (more details...) |
‡ | a | c M10 |
g | h | i | j | k M10 |
l | m | o | p | r U27 |
t U28 |
u U36 |
v | w U53 |
y U75 |
z | aa | ||||||||||||||||||
MIL system specific | |||||||||||||||||||||||||||||||||||||||
Same as M_COMPLETE. |
‡ | a | c M10 |
g | h | i | j | k M10 |
l | m | o | p | r U27 |
t U28 |
u U36 |
w U53 |
y U75 |
z | aa | ||||||||||||||||||||
Same as M_MIXED. |
‡ | v | |||||||||||||||||||||||||||||||||||||
M_CL |
Specifies to initialize Camera Link transport layer technology. |
‡ | v | ||||||||||||||||||||||||||||||||||||
M_COMPLETE + |
Specifies to initialize the system completely; the system is initialized to its default state and any required resident software is downloaded. At least one complete initialization is necessary after you power-up your system. (summarize)Specifies to initialize the system completely; the system is initialized to its default state and any required resident software is downloaded. (more details...) |
‡ | a | c M10 |
g | h | i | j | k M10 |
l | m | o | p | r U27 |
t U28 |
u U36 |
w U53 |
y U75 |
z | aa | |||||||||||||||||||
M_CXP |
Specifies to initialize CoaXPress transport layer technology. |
‡ | v | ||||||||||||||||||||||||||||||||||||
M_GEV |
Specifies to initialize Ethernet transport layer technology. |
‡ | v | ||||||||||||||||||||||||||||||||||||
M_MIXED |
Specifies to initialize the transport layer technology specified by the GenTL Producer (library). |
‡ | v | ||||||||||||||||||||||||||||||||||||
M_U3V |
Specifies to initialize USB transport layer technology. |
‡ | v |
You can use the following value on its own, or add it to the above-mentioned value, to set that the target board is identified using its user-defined name.
This InitFlag is also available for the Matrox Concord PoE base model.
For specifying that the target board is identified
using its user-defined name
|
|||||||||||||||||||||||||||||||||||||||
Value | Description |
MIL system-specific tooltip (‡) |
|||||||||||||||||||||||||||||||||||||
M_DEVICE_NAME |
Specifies that the SystemNum parameter identifies the target board using its user-defined name. |
‡ | z |
Header | Include mil.h. |
Library | Use mil.lib. |
DLL | Requires mil.dll. |