?? errhand.c
字號:
/* errhand.c
This example demonstrates how a SICL error handler
can be installed.
*/
#include <sicl.h>
#include <stdio.h>
main ()
{
INST dvm;
double res;
#if defined(__BORLANDC__) && !defined(__WIN32__)
_InitEasyWin(); // required for Borland EasyWin programs
#endif
ionerror (I_ERROR_EXIT);
dvm = iopen ("hpib7,16");
itimeout (dvm, 10000);
iprintf (dvm, "%s\n", "MEAS:VOLT:DC?");
iscanf (dvm, "%lf", &res);
printf ("Result is %f\n", res);
iclose (dvm);
/* For WIN16 programs, call _siclcleanup before exiting to release
resources allocated by SICL for this application. This call
is a no-op for WIN32 programs. */
_siclcleanup();
return 0;
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -