Chapter 6 Application Programs
Example Program for C and C++
138
void CheckError(char* pMessage)
{
if (ErrorStatus VI_SUCCESS){
printf("\n %s",pMessage);
ClosePort();
exit(0);
}
}
void delay(clock_t wait)
{
clock_t goal;
goal = wait + clock();
while( goal > clock() ) ;
}
End of Program