DioDomainGetOperatingMode

Applies To

GX5290, File

Purpose

Returns the DIO domain operating mode.

Syntax

DioDomainGetOperatingMode (nMasterHandle, pnMode, pnStatus)

Parameters

Name
Type
Comments
nMasterHandle
SHORT
Master board or File board handle.
pnMode
PSHORT
DIO domain operating mode:
0  DIO_OPERATING_MODE_DEFAULT: Default operating mode. The DIO boards in the domain operate in their default mode.
1  DIO_OPERATING_MODE_REAL_TIME_COMPARE: DIO domain is running in real tome compare mode (GX5290 only).
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

The Gx5290 can change the way it is operating to either be a high speed digital I/O or to real tome compare mode. The settings will change all the Gx529x boards in the domain to operate in the same mode. The operating mode is saved to the INI file and is reapplied each time the DIO is initialized until it is changed.

In real time compare mode the output memory contains the expected vector values while the input memory contains the vector masked values. See the “Gx5290UG.pdf” for more details on the real tome compare mode operation.

Example

The following example returns the DIO domain operating mode:

 

SHORT nStatus, nMode;

DioDomainGetOperatingMode (nMasterHandle, &nMode, &nStatus);

 

See Also

DioDomainSetupOperatingMode, DioGetErrorString