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_1394 |
Allocates a MIL IEEE 1394b IIDC system. |
† | e | ||||||||||||||||||||||||||||||||||||
M_SYSTEM_CRONOSPLUS |
Allocates a MIL CronosPlus system. |
† | b | ||||||||||||||||||||||||||||||||||||
M_SYSTEM_DEFAULT |
Specifies the default system. (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
M_SYSTEM_GIGE_VISION |
Allocates a MIL GigE Vision system. (more details...) |
† | c | s | |||||||||||||||||||||||||||||||||||
M_SYSTEM_GPU |
Allocates a MIL GPU system. |
† | d | ||||||||||||||||||||||||||||||||||||
M_SYSTEM_HOST |
Specifies a Host system. (more details...) |
† | a | f | |||||||||||||||||||||||||||||||||||
MIL system specific | |||||||||||||||||||||||||||||||||||||||
A Host system, allocated on a Matrox Iris GT platform, is allocated on-board your Matrox Iris GT, but the system has no access to the acquisition capabilities of the Matrox Iris GT driver. To access the Matrox Iris GT acquisition capabilities, you must allocate a MIL Iris GT system (with M_SYSTEM_IRIS_GT). |
† | f | |||||||||||||||||||||||||||||||||||||
M_SYSTEM_IRIS_GT |
Allocates a MIL Iris GT system. |
† | f | ||||||||||||||||||||||||||||||||||||
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 | ||||||||||||||||||||||||||||||||||||
M_SYSTEM_SOLIOS |
Allocates a MIL Solios system. |
† | l | m | |||||||||||||||||||||||||||||||||||
M_SYSTEM_USB3_VISION |
Allocates a MIL USB3 Vision system. (more details...) |
† | o | ||||||||||||||||||||||||||||||||||||
M_SYSTEM_VIO |
Allocates a MIL Vio system. |
† | n | ||||||||||||||||||||||||||||||||||||
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. (more details...) |
† | a | b | c | d | e | f | g | h | i | j | l | m | n | o | p | r | s | ||||||||||||||||||||
MIL system specific | |||||||||||||||||||||||||||||||||||||||
Note that to allocate a remote GPU or Matrox Orion HD 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, push 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 29: Distributed MIL. |
† | d | i | ||||||||||||||||||||||||||||||||||||
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. (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
MIL system specific | |||||||||||||||||||||||||||||||||||||||
Note that to allocate a remote GPU or Matrox Orion HD 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, push 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 29: Distributed MIL. |
† | d | i | ||||||||||||||||||||||||||||||||||||
MIL_TEXT("dmiltcp://[Passkey:]RemoteComputerName[:Port]/MILSystemType") 1 |
Allocates a DMIL remote system on a remote or local computer, using the TCP/IP protocol. (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
MIL system specific | |||||||||||||||||||||||||||||||||||||||
Note that to allocate a remote GPU or Matrox Orion HD 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, push 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 29: Distributed MIL. |
† | d | i |
1 If you are passing the value in a variable, don't enclose it in MIL_TEXT().
Specifies the number (or rank) 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 | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
M_DEVn |
Specifies the n th board of the specified system type. (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
MIL system specific | |||||||||||||||||||||||||||||||||||||||
Note that only M_DEV0 is valid. |
† | c | o | s |
Specifies the type of initialization to perform on the selected system. This parameter can be set to one of the following.
For specifying the type of initialization
setup
|
|||||||||||||||||||||||||||||||||||||||
Value | Description
|
MIL system-specific tooltip (†) |
|||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_COMPLETE. |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
M_COMPLETE |
Specifies to initialize the system completely; the system is initialized to its default state and any required resident software is downloaded. (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
M_PARTIAL |
Specifies to initialize the system to its default state, but it does not download any resident software. (more details...) |
† | d |
Header | Include mil.h. |
Library | Use mil.lib. |
DLL | Requires mil.dll. |