MIL_ID SysId, | //in |
MIL_INT64 IoCmdListNum, | //in |
MIL_INT64 Type, | //in |
MIL_INT64 CounterSrc, | //in |
MIL_ID *IoCmdListSysIdPtr | //out |
This function allocates a MIL I/O command list and initializes it. An I/O command list allows you to schedule commands to change the state of a bit of an I/O command register at a specified time or counter value. You can route the state of the bit, for example, to an auxiliary output signal to control a connected device at a required moment.
To schedule commands, the I/O command list uses an internal counter to count clock ticks or transitions that occur on a signal specified as the counter source. When allocating an I/O command list, you must specify the counter source that will be used to schedule commands. The counter source can be either a clock, which allows you to schedule commands in time, or a specified signal, which allows you to schedule commands based on the number of transitions that occur on the signal. The latter case allows you to schedule commands, for example, based on the positional information provided by the output signal of a rotary decoder. To schedule commands with the I/O command list, use MsysIoCommandRegister().
To modify or inquire I/O command list settings, use MsysIoControl() and MsysIoInquire(). When an I/O command list is no longer required, you should free it using MsysIoFree().
This function is only available on Matrox 4Sight GPm.
Specifies the identifier of the MIL system on which to allocate the I/O command list.
For specifying the system
|
|||||||||||||||||||||||||||||||||||||||
Value | Description
|
MIL system-specific tooltip (†) |
|||||||||||||||||||||||||||||||||||||
M_DEFAULT_HOST |
Specifies the default Host system of the current MIL application. (more details...) |
† | a | ||||||||||||||||||||||||||||||||||||
MIL system identifier |
Specifies a valid system identifier, previously allocated using MsysAlloc(). (more details...) |
† | a |
Specifies the index of the I/O command list to allocate. Note that you cannot allocate a command list with the same index as one that has already been allocated. This parameter can be set to one of the following values:
For specifying the I/O command list's
index
|
|||||||||||||||||||||||||||||||||||||||
Value | Description
|
MIL system-specific tooltip (†) |
|||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_IO_COMMAND_LIST1. |
† | a | ||||||||||||||||||||||||||||||||||||
M_IO_COMMAND_LIST1 |
Allocates the first I/O command list. |
† | a | ||||||||||||||||||||||||||||||||||||
M_IO_COMMAND_LIST2 |
Allocates the second I/O command list. |
† | a |
Specifies the type of I/O command list to allocate. This parameter can be set to the following value:
For specifying the type of I/O command
list
|
|||||||||||||||||||||||||||||||||||||||
Value | Description
|
MIL system-specific tooltip (†) |
|||||||||||||||||||||||||||||||||||||
M_IO_COMMAND_LIST |
Specifies a general I/O command list. |
† | a |
Specifies the signal to use as the counter source. The counter source will affect the units that you should use to specify, for example, when a registered command should be executed (MsysIoCommandRegister()). This parameter can be set to one of the following values:
For specifying the counter
source
|
|||||||||||||||||||||||||||||||||||||||
Value | Description
|
MIL system-specific tooltip (†) |
|||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_CLOCK. |
† | a | ||||||||||||||||||||||||||||||||||||
M_AUX_IOn |
Specifies to use auxiliary input signal n as the counter source, where n is the number for one of the auxiliary input signals. (more details...) |
† | a | ||||||||||||||||||||||||||||||||||||
M_CLOCK |
Specifies to use your hardware's clock signal as a counter source. (more details...) |
† | a | ||||||||||||||||||||||||||||||||||||
M_ROTARY_ENCODERn |
Specifies to use the output of rotary decoder n as the counter source, where n is the number of the rotary decoder. (more details...) |
† | a |
Specifies the address of the variable in which to write the I/O command list identifier. Since the MsysIoAlloc() function also returns the I/O command list identifier, you can set this parameter to M_NULL.
If allocation is successful, the I/O command list's identifier is written into the variable. If allocation fails, M_NULL is written into the variable.
Header | Include mil.h. |
Library | Use mil.lib. |
DLL | Requires mil.dll. |