MIL_ID IoCmdListSysId, | //in |
MIL_INT64 InquireType, | //in |
void *UserVarPtr | //out |
This function inquires about the specified I/O command list setting.
Note that you can use MsysIoControl() to control specific I/O command list settings.
This function is only available on Matrox 4Sight GPm.
Specifies the type of I/O command list setting about which to inquire.
See the Parameter associations section for possible values that can be specified.
Specifies the address in which to write the requested information. Since the MsysIoInquire() function also returns the requested information, you can set this parameter to M_NULL.
See the Parameter associations section for possible values that can be returned.
The tables below list possible values for the InquireType parameter and possible values returned to the UserVarPtr parameter.
The following inquire types allow you to inquire general I/O command list settings.
Unless otherwise specified, the following values require that you pass the UserVarPtr parameter the address of a MIL_INT.
For inquiring general I/O command list
settings
|
|||||||||||||||||||||||||||||||||||||||
InquireType |
Description
|
MIL system-specific tooltip (†) |
|||||||||||||||||||||||||||||||||||||
UserVarPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
M_CLOCK_FREQUENCY |
Inquires the frequency of the I/O command list's clock signal. (more details...) |
† | a | ||||||||||||||||||||||||||||||||||||
UserVarPtr data type info |
Data
type: MIL_DOUBLE |
† | a | ||||||||||||||||||||||||||||||||||||
Value |
Specifies the frequency of the I/O command list's clock, in Hz. |
† | a | ||||||||||||||||||||||||||||||||||||
M_IO_COMMAND_COUNTER_ACTIVATION |
Inquires which edge of the source signal is used to increment the I/O command list's internal counter. SET (more details...) |
† | a | ||||||||||||||||||||||||||||||||||||
M_EDGE_FALLING |
Specifies to use a high-to-low signal transition to increment the I/O command list's internal counter. |
† | a | ||||||||||||||||||||||||||||||||||||
M_EDGE_RISING |
Specifies to use a low-to-high signal transition to increment the I/O command list's internal counter. |
† | a | ||||||||||||||||||||||||||||||||||||
M_IO_COMMAND_COUNTER_SOURCE |
Inquires the signal to use as the counter source. SET (more details...) |
† | a | ||||||||||||||||||||||||||||||||||||
UserVarPtr data type info |
Data
type: MIL_INT64 |
† | 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. INFO |
† | a | ||||||||||||||||||||||||||||||||||||
M_CLOCK |
Specifies to use your hardware's clock signal as a counter source. INFO |
† | 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. INFO |
† | a | ||||||||||||||||||||||||||||||||||||
M_IO_COMMAND_LIST_NUMBER |
Inquires which I/O command list is allocated. SET (more details...) |
† | a | ||||||||||||||||||||||||||||||||||||
UserVarPtr data type info |
Data
type: MIL_INT64 |
† | a | ||||||||||||||||||||||||||||||||||||
M_IO_COMMAND_LIST1 |
Specifies the first I/O command list. |
† | a | ||||||||||||||||||||||||||||||||||||
M_IO_COMMAND_LIST2 |
Specifies the second I/O command list. |
† | a | ||||||||||||||||||||||||||||||||||||
M_IO_OBJECT_TYPE |
Inquires the type of I/O command list that is allocated. SET (more details...) |
† | a | ||||||||||||||||||||||||||||||||||||
UserVarPtr data type info |
Data
type: MIL_INT64 |
† | a | ||||||||||||||||||||||||||||||||||||
M_IO_COMMAND_LIST |
Specifies a general I/O command list. |
† | a | ||||||||||||||||||||||||||||||||||||
M_OWNER_SYSTEM |
Inquires the MIL identifier (MIL_ID) of the system on which the I/O command list has been allocated. SET (more details...) |
† | a | ||||||||||||||||||||||||||||||||||||
UserVarPtr data type info |
Data
type: MIL_ID |
† | a | ||||||||||||||||||||||||||||||||||||
M_DEFAULT_HOST |
Specifies the default Host system of the current MIL application. INFO |
† | a | ||||||||||||||||||||||||||||||||||||
MIL system identifier |
Specifies a valid system identifier, previously allocated using MsysAlloc(). INFO |
† | a | ||||||||||||||||||||||||||||||||||||
M_REFERENCE_VALUE |
Inquires the I/O command list's internal counter value at the current moment (that is, the moment MsysIoInquire() is called). (more details...) |
† | a | ||||||||||||||||||||||||||||||||||||
UserVarPtr data type info |
Data
type: MIL_INT64 |
† | a | ||||||||||||||||||||||||||||||||||||
Value |
Specifies the I/O command list's internal counter value. |
† | a |
The following inquire types allow you to inquire settings for one of the I/O command list's reference latches.
Unless otherwise specified, the following values require that you pass the UserVarPtr parameter the address of a MIL_INT.
For inquiring reference latch
settings
|
|||||||||||||||||||||||||||||||||||||||
InquireType |
Description
|
MIL system-specific tooltip (†) |
|||||||||||||||||||||||||||||||||||||
UserVarPtr - Possible values returned |
|||||||||||||||||||||||||||||||||||||||
M_REFERENCE_LATCH_ACTIVATION + |
Inquires the signal transition upon which to store the time or counter value to the specified reference latch. SET (more details...) |
† | a | ||||||||||||||||||||||||||||||||||||
M_ANY_EDGE |
Specifies to store the time or counter value to the latch upon both a low-to-high and a high-to-low signal transition. |
† | a | ||||||||||||||||||||||||||||||||||||
M_EDGE_FALLING |
Specifies to store the time or counter value to the latch upon a high-to-low signal transition. |
† | a | ||||||||||||||||||||||||||||||||||||
M_EDGE_RISING |
Specifies to store the time or counter value to the latch upon a low-to-high signal transition. |
† | a | ||||||||||||||||||||||||||||||||||||
M_REFERENCE_LATCH_STATE + |
Inquires the state of the specified reference latch. SET (more details...) |
† | a | ||||||||||||||||||||||||||||||||||||
M_DISABLE |
Specifies the reference latch is disabled. |
† | a | ||||||||||||||||||||||||||||||||||||
M_ENABLE |
Specifies the reference latch is enabled. |
† | a | ||||||||||||||||||||||||||||||||||||
M_REFERENCE_LATCH_TRIGGER_SOURCE + |
Inquires which input signal will trigger storing the time or counter value to the specified reference latch. SET (more details...) |
† | a | ||||||||||||||||||||||||||||||||||||
M_AUX_IOn |
Specifies to use auxiliary input signal n, where n is a number of the auxiliary input signal. |
† | a | ||||||||||||||||||||||||||||||||||||
M_REFERENCE_LATCH_VALUE + |
Inquires the last time or counter value stored by the specified reference latch. (more details...) |
† | a | ||||||||||||||||||||||||||||||||||||
UserVarPtr data type info |
Data
type: MIL_INT64 |
† | a | ||||||||||||||||||||||||||||||||||||
Value |
Specifies the last timestamp or counter value stored by the specified reference latch. |
† | a |
You must add the following value to the above-mentioned values to specify which reference latch to inquire about.
For specifying the reference latch to
inquire
|
|||||||||||||||||||||||||||||||||||||||
Combination value | Description
|
MIL system-specific tooltip (†) |
|||||||||||||||||||||||||||||||||||||
M_LATCHn |
Specifies to inquire about reference latch n, where n is a number from 1 to 4. |
† | a |
Header | Include mil.h. |
Library | Use mil.lib. |
DLL | Requires mil.dll. |