User manual
Programmer’s Guide Page 60 of 64
We also recommend reading the temperature when the instrument is stopped. The read operation may generate small
signal perturbations through cross talk, if it is executed while an acquisition is in progress.
3.21. Building applications that can Hibernate
The Acqrs_powerSystem function was implemented to be called from a routine that treats Windows events. The code
below shows a standard treatment of such events:
switch (winMsgP->message)
{
case WM_POWERBROADCAST:
switch (winMsgP->wParam)
{
case PBT_APMRESUMEAUTOMATIC:
status = Acqrs_powerSystem(AqPowerOn, 0);
break;
case PBT_APMSUSPEND:
status = Acqrs_powerSystem(AqPowerOff, 0);
break;
default: // There are other power events, but we only show these two.
break;
}
break;
default:
break;
}
If such code is not available the Acqiris devices will not be useable when the PC becomes active after hibernation.