GX5290, File
Sets the DIO domain operating mode.
DioDomainGetOperatingMode (nMasterHandle, pnMode, pnStatus)
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. |
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.
The following example sets the DIO domain operating mode to real tome compare mode:
SHORT nStatus;
DioDomainSetupOperatingMode (nMasterHandle, DIO_OPERATING_MODE_REAL_TIME_COMPARE, &nStatus);