| Customize Help
| Save Settings

MsysIoControl



Function Map
Synopsis
Control an I/O command list setting.
Syntax
void MsysIoControl(
MIL_ID IoCmdListSysId, //in
MIL_INT64 ControlType, //in
MIL_DOUBLE ControlValue //in
)
Description

This function allows you to control an I/O command list setting.

To inquire the current value of a particular I/O command list setting, use MsysIoInquire().

[Matrox 4Sight GP/GPm]

On a Matrox 4Sight GPm computer, this function is only available if a MIL Host system was previously allocated. It is not available on a Matrox 4Sight GP.

Note that this function reference has not been updated for a MIL system added during a MIL update. Refer to the MIL system's release note to see which MIL system’s documentation you should use in its place and any possible differences.
Parameters
This function is not supported on the selected boards.
This function reference has not been updated for the selected MIL system. To show the content of this page, choose a second MIL system; refer to the MIL system's release note to see which MIL system’s documentation to choose and any possible differences.
Parameters
IoCmdListSysId

Specifies the identifier of the I/O command list.

ControlType

Specifies the type of I/O command list setting to control.

See the Parameter associations section for possible values that can be specified.

ControlValue

Specifies the new value to assign to the I/O command list setting specified by the ControlType parameter.

See the Parameter associations section for possible values that can be specified.

The tables below list possible values for the ControlType and ControlValue parameters.

The following control type allows you to control an I/O command list setting.

function map For controlling I/O command list settings
Click to summarizeControlType Description MIL system-specific
tooltip (‡)
ControlValue
Click to summarize M_IO_COMMAND_CANCEL

Clears the specified I/O command list of any command that affects the specified I/O command register bits.

[Matrox 4Sight GP/GPm]

On a Matrox 4Sight GPm platform, this value is only available if MIL 10 update 51 (or later) is installed. It is not available on a Matrox 4Sight GP.

(summarize)
a t
U28
w
U53
z
Click to summarize

Specifies I/O command register bits using a bit-encoded value, in which each bit represents one I/O command register bit.

(summarize)
a t
U28
w
U53
z
Parameters

Specifies the bit encoded value.

a t
U28
w
U53
z
Click to summarize M_IO_COMMAND_BITn

Specifies the I/O command register bit n, where n is a number from 0 to 7.

(summarize)
a t
U28
w
U53
z
MIL system specific

For the Matrox Iris GTR, n can be a value from 0 to 3.

t
U28
Click to summarize M_IO_COMMAND_COUNTER_ACTIVATION

Sets which edge of the source signal to use to increment the I/O command list's internal counter. This setting should be changed only when the I/O command list is allocated using MsysIoAlloc() with M_AUX_IOn. INQ

(summarize)
a t
U28
w
U53
z
MIL system specific
[This is only applicable to Matrox 4Sight GP/GPm platform]

On a Matrox 4Sight GPm computer, this function is only available if a MIL Host system was previously allocated. It is not available on a Matrox 4Sight GP.

a
Click to summarize M_DEFAULT

Same as M_EDGE_RISING.

a t
U28
w
U53
z
Click to summarize M_ANY_EDGE

Specifies to use both a low-to-high and a high-to-low signal transition to increment the I/O command list's internal counter.

a t
U28
w
U53
z
Click to summarize M_EDGE_FALLING

Specifies to use a high-to-low signal transition to increment the I/O command list's internal counter.

a t
U28
w
U53
z
Click to summarize M_EDGE_RISING

Specifies to use a low-to-high signal transition to increment the I/O command list's internal counter.

a t
U28
w
U53
z

The following control types allow you to control settings for one of the I/O command list's reference latches. Reference latches are used to store a time or counter value when the required signal transition occurs on a specified input signal. You can then inquire the time or counter value saved in the latch using MsysIoInquire() with M_REFERENCE_LATCH_VALUE.

function map For controlling an I/O command list reference latch
Click to summarizeControlType Description MIL system-specific
tooltip (‡)
ControlValue
Click to summarize M_REFERENCE_LATCH_ACTIVATION +

Sets the signal transition upon which to store the time or counter value to the specified reference latch. INQ


You must specify a combination value from the following table:
(summarize)
a t
U28
w
U53
z
MIL system specific
[This is only applicable to Matrox 4Sight GP/GPm platform]

On a Matrox 4Sight GPm computer, this function is only available if a MIL Host system was previously allocated. It is not available on a Matrox 4Sight GP.

a
Click to summarize M_DEFAULT

Same as M_EDGE_RISING.

a t
U28
w
U53
z
Click to summarize 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 t
U28
w
U53
z
Click to summarize M_EDGE_FALLING

Specifies to store the time or counter value to the latch upon a high-to-low signal transition.

a t
U28
w
U53
z
Click to summarize M_EDGE_RISING

Specifies to store the time or counter value to the latch upon a low-to-high signal transition.

a t
U28
w
U53
z
Click to summarize M_REFERENCE_LATCH_STATE +

Sets the state of the specified reference latch. INQ


You must specify a combination value from the following table:
(summarize)
a t
U28
w
U53
z
MIL system specific
[This is only applicable to Matrox 4Sight GP/GPm platform]

On a Matrox 4Sight GPm computer, this function is only available if a MIL Host system was previously allocated. It is not available on a Matrox 4Sight GP.

a
Click to summarize M_DEFAULT

Same as M_DISABLE.

a t
U28
w
U53
z
Click to summarize M_DISABLE

Specifies the reference latch is disabled.

a t
U28
w
U53
z
Click to summarize M_ENABLE

Specifies the reference latch is enabled.

a t
U28
w
U53
z
Click to summarize M_REFERENCE_LATCH_TRIGGER_SOURCE +

Sets which input signal will trigger storing the timestamp or counter value to the specified reference latch. INQ


You must specify a combination value from the following table:
(summarize)
a t
U28
w
U53
z
MIL system specific
[This is only applicable to Matrox 4Sight GP/GPm platform]

On a Matrox 4Sight GPm computer, this function is only available if a MIL Host system was previously allocated. It is not available on a Matrox 4Sight GP.

a
Click to summarize M_AUX_IOn

Specifies to use auxiliary input signal n, where n is a number of the auxiliary input signal.

(summarize)
a t
U28
w
U53
z
MIL system specific
[This is only applicable to Matrox 4Sight GP/GPm platform]

For the Matrox 4Sight GPm, n can be a value from 8 to 15.

a

For the Matrox Concord PoE, n can be a value from 2 to 7.

z

For the Matrox Indio, n can be a value from 8 to 15.

w
U53

For the Matrox Iris GTR, n can be a value from 3 to 6.

t
U28
Click to summarize M_EXPOSURE

Specifies to route the exposure signal of the camera.

t
U28
Click to summarize M_GRAB_TRIGGER_READY

Specifies to route the internal grab trigger ready signal.

t
U28
Click to summarize M_TIMER_STROBE

Specifies to route the internal timer strobe signal.

t
U28
Click to summarize M_TIMERn

Specifies to use timer n, where n is a number of the timer.

a t
U28
w
U53
z
Combination value for the values listed in For controlling an I/O command list reference latch.

You must add the following value to the above-mentioned values to specify which reference latch to affect.

function map For specifying the reference latch to affect
Click to summarizeCombination value Description MIL system-specific
tooltip (‡)
Click to summarize M_LATCHn

Specifies to affect reference latch n, where n is the latch number.

(summarize)
a t
U28
w
U53
z
MIL system specific
[This is only applicable to Matrox 4Sight GP/GPm platform]

This is only available on Matrox 4Sight GPm, where n is a number from 1 to 4.

a

For Matrox Iris GTR, n is a number from 1 to 2.

t
U28

For the Matrox Concord PoE, n can be a value from 1 to 4.

z

For the Matrox Concord Indio, n can be a value from 1 to 4.

w
U53
Compilation information
Header Include mil.h.
Library Use mil.lib.
DLL Requires mil.dll.
IO COMMAND CANCEL IO COMMAND BITn IO COMMAND COUNTER ACTIVATION DEFAULT ANY EDGE EDGE FALLING EDGE RISING REFERENCE LATCH ACTIVATION DEFAULT ANY EDGE EDGE FALLING EDGE RISING REFERENCE LATCH STATE DEFAULT DISABLE ENABLE REFERENCE LATCH TRIGGER SOURCE AUX IOn EXPOSURE GRAB TRIGGER READY TIMER STROBE TIMERn LATCHn M_IO_COMMAND_BITn M_AUX_IOn M_TIMERn M_LATCHn