GC5050, GX5050, GX5055, GX5150, GX5280, GX5290, GX5290e, GX5295
Save the domain configuration associated the specified master handle to the GtDio.ini file.
DioSaveDomainConfiguration (nMasterHandle, pnStatus)
Name |
Type |
Comments |
nMasterHandle |
SHORT |
Master and handle |
pnStatus |
LONG |
Returned status: 0 on success, negative number on failure. |
Save the domain configuration associated the specified master handle to the GtDio.ini file to be used by DioInitialize API.
The DioInitialize can be used to initialize the DIO system configuration (Master and Slave boards) with one command. The required parameters (base address, density, banks etc.) are taken from the last configuration set by one of the following:
· A previous call to DioSetupInitialization.
· DioPanel configure push button.
· GTDIO.INI file.
The function calls DioSetupInitialization for the Master and its Slaves.
The following example demonstrates how to initialize a system that a Master board in chassis 1 slot 6 and a slave at chassis 1 slot 7 and save the configuration:
SHORT nMasterHandle1, nSlave1, nDensity, nBanks, nStatus;
DioSetupInitialization (0, 1, 0x106, &nDensity, &nBanks, &nMasterHandle1, &nStatus);
DioSetupInitialization (nMasterHandle1, 1, 0x107, &nDensity, &nBanks, &nSlave11, &nStatus);
DioSaveDomainConfiguration (nMasterHandle, &nStatus)