MIL_ID SystemId, | //in |
MIL_INT DispNum, | //in |
MIL_CONST_TEXT_PTR DispFormat, | //in |
MIL_INT64 InitFlag, | //in |
MIL_ID *DisplayIdPtr | //out |
This function allocates a display on the specified system so that it can be used by subsequent MIL display functions. Use MdispSelect() to select the image buffer to display. Note that the buffer and the display should be allocated on the same system.
In general, the display is presented on the computer running the main MIL application; however there are two ways to display an image buffer on the remote computer, depending on your application requirements:
When developing a Distributed MIL controlling application and you allocate a display on a DMIL remote system, you can select image buffers allocated on that DMIL remote system to the display. By default, these buffers are displayed on the master computer. However, to display the buffers on the remote computer, combine M_EXCLUSIVE, M_AUXILIARY, or M_WINDOWED with M_REMOTE_DISPLAY when allocating the display. This type of display is referred to as a remote display.
When developing a MIL application and wanting to publish a display so that image buffers selected to the display can be viewed at any remote computer in, for example, a web browser, use M_NETWORK when allocating the display. This type of display is referred to as a network display.
There can be 31 network displays allocated simultaneously.
When a display is no longer required, you should free it, using MdispFree().
Specifies the system on which to allocate the display. This parameter should be set to one of the following values:
For specifying the system
|
|||||||||||||||||||||||||||||||||||||||
Value | Description
|
||||||||||||||||||||||||||||||||||||||
M_DEFAULT_HOST |
Specifies the default Host system of the current MIL application. |
||||||||||||||||||||||||||||||||||||||
MIL system identifier |
Specifies a valid system identifier, previously allocated using MsysAlloc(). |
Specifies the device to use for image display.
For a non-exclusive display or for an exclusive display that you want MIL to choose the display device, set this parameter to the following value:
For specifying the display
device
|
|||||||||||||||||||||||||||||||||||||||
Value | Description
|
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies that MIL will use the most appropriate device for display purposes. (more details...) |
For an exclusive display for which you want to specify the position of the display device in screen arrangements of up to 3x3 screens, this parameter can be set to a combination of the following values.
For specifying the position of the device
to use for an exclusive display
|
|||||||||||||||||||||||||||||||||||||||
Value | Description
|
||||||||||||||||||||||||||||||||||||||
M_BOTTOM |
Specifies to use the bottom-most device for an exclusive display. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_CENTER |
Specifies to use the center device for an exclusive display. |
||||||||||||||||||||||||||||||||||||||
M_LEFT |
Specifies to use the left-most device for an exclusive display. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_RIGHT |
Specifies to use the right-most device for an exclusive display. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_TOP |
Specifies to use the top-most device for an exclusive display. (more details...) |
Specifies the format of the display. For windowed displays, this parameter has no effect and should be set to "M_DEFAULT". For exclusive or auxiliary displays, this parameter specifies the screen resolution. For network displays, this parameter specifies the color format in which to transmit the data.
For any type of display, this parameter can be set to the following value:
For specifying the default display
format
|
|||||||||||||||||||||||||||||||||||||||
Value | Description
|
||||||||||||||||||||||||||||||||||||||
MIL_TEXT("M_DEFAULT") 1 |
Specifies the default display format. (more details...) |
1 If you are passing the value in a variable, don't enclose it in MIL_TEXT().
When programming for your Matrox Iris GT with MIL in Embedded Compact, there is no local display to show the images or other data. The only displays available are network displays, which are displayed on the client computer (in a web page). Your Matrox Iris GT with MIL in Embedded Compact does not support windowed, exclusive, or auxiliary displays. Your Matrox Iris GT with MIL in XPe does not have these limitations.
For network displays, the DispFormat parameter can be set to one of the following values:
For network displays
|
|||||||||||||||||||||||||||||||||||||||
Value | Description
|
MIL system-specific tooltip (†) |
|||||||||||||||||||||||||||||||||||||
MIL_TEXT("M_REMOTEVIEW") 1 |
Sets the display format to the most appropriate type of display available. (more details...) |
† | f | ||||||||||||||||||||||||||||||||||||
MIL_TEXT("M_REMOTEVIEW_MONO") 1 |
Sets the display format to monochrome. |
† | f | ||||||||||||||||||||||||||||||||||||
MIL_TEXT("M_REMOTEVIEW_PSEUDO") 1 |
Sets the display format to pseudo-color. (more details...) |
† | f | ||||||||||||||||||||||||||||||||||||
MIL_TEXT("M_REMOTEVIEW_RGB") 1 |
Sets the display format to RGB. |
† | f |
1 If you are passing the value in a variable, don't enclose it in MIL_TEXT().
For exclusive displays and for auxiliary displays that don't use an encoder, the DispFormat parameter can be set to the following:
For exclusive displays, or for auxiliary
displays that don't use an encoder
|
|||||||||||||||||||||||||||||||||||||||
Value | Description
|
MIL system-specific tooltip (†) |
|||||||||||||||||||||||||||||||||||||
M_CURRENT_RESOLUTION |
Specifies to use the current resolution of the screen. (more details...) |
† | b | c | e | g | h | l | m | n | o | s | |||||||||||||||||||||||||||
MIL_TEXT("vcffilename.vcf") 1 |
Specifies the name of the video configuration format (VCF) that defines the resolution and refresh rate to use. (more details...) |
† | b | c | e | g | h | l | m | n | o | s |
1 If you are passing the value in a variable, don't enclose it in MIL_TEXT().
For auxiliary displays that use the encoder in the on-board display section of the Matrox imaging board, the DispFormat parameter can be set to one of the following.
Note that encoders on other display boards are not supported.
For auxiliary displays (with
encoder)
|
|||||||||||||||||||||||||||||||||||||||
Value | Description
|
MIL system-specific tooltip (†) |
|||||||||||||||||||||||||||||||||||||
MIL_TEXT("M_NTSC") 1 |
Enables the encoder in composite format with colorburst. (more details...) |
† | n | ||||||||||||||||||||||||||||||||||||
MIL_TEXT("M_NTSC_RGB") 1 |
Enables the encoder in RGB format with synchronization on green. |
† | n | ||||||||||||||||||||||||||||||||||||
MIL_TEXT("M_NTSC_YC") 1 |
Enables the encoder in Y/C format with colorburst. (more details...) |
† | n | ||||||||||||||||||||||||||||||||||||
MIL_TEXT("M_PAL") 1 |
Enables the encoder in composite format with colorburst. (more details...) |
† | n | ||||||||||||||||||||||||||||||||||||
MIL_TEXT("M_PAL_RGB") 1 |
Enables the encoder in RGB format with synchronization on green. |
† | n | ||||||||||||||||||||||||||||||||||||
MIL_TEXT("M_PAL_YC") 1 |
Enables the encoder in Y/C format with colorburst. (more details...) |
† | n |
1 If you are passing the value in a variable, don't enclose it in MIL_TEXT().
Specifies your display's type. This parameter can be set to one of the following:
For specifying the display
type
|
|||||||||||||||||||||||||||||||||||||||
Value | Description
|
MIL system-specific tooltip (†) |
|||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default display type, which can be set using the MILConfig utility. (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
M_AUXILIARY + |
Specifies to present the image buffer selected for display on a dedicated screen that is not a Windows desktop screen. (more details...) |
† | n | ||||||||||||||||||||||||||||||||||||
M_EXCLUSIVE + |
Specifies to present the image buffer selected for display full-screen, without a windowed border, in one of Windows desktop screens. (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
M_NETWORK |
Specifies to publish the display on your network so that the selected image buffer can be presented in, for example, a web browser on the remote computer. |
† | f | ||||||||||||||||||||||||||||||||||||
M_WINDOWED + |
Specifies to present the image buffer selected for display in its own window on the Windows desktop screen(s). (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s |
You can add the following value to the above-mentioned values to set where and how the display is allocated.
For controlling where and how the display
is allocated
|
|||||||||||||||||||||||||||||||||||||||
Combination value | Description
|
MIL system-specific tooltip (†) |
|||||||||||||||||||||||||||||||||||||
M_REMOTE_DISPLAY |
Specifies that the display is displayed on the remote computer. (more details...) |
† | a | b | c | e | g | h | j | k | l | m | n | o | p | q | r | s |
Header | Include mil.h. |
Library | Use mil.lib. |
DLL | Requires mil.dll; mildisplay.dll. |