📄 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 + -