Saves the cache relay counts to the board EEPROM for permanent storage.
Gx6256SaveRelayCountToEeprom (nHandle, pnStatus)
Name |
Type |
Comments |
nHandle |
SHORT |
Handle to a GX6256/GX6864/GX6192 board. |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
As relays are activated, this action is recorded in a local cache. Since this process locks access to the EEPROM for a few seconds, it is best to manually save the relay count during periods where no switching will occur. It is the application responsibility to save the relay count to the board occasionally. Not calling this function will cause the relay count not to match with the actual relay activations. Relay activations are displayed in the SwitchEasy Panel.
The following example save the relay count changes to the board:
Gx6256SaveRelayCountToEeprom (nHandle, &nStatus);