User`s manual

#include <stdio.h>
#include <stdlib.h>
#include <cscpi.h>
void main()
{
char vm_id[80];
INST_DECL(vm,"E1411B",REGISTER);
INST_STARTUP();
INST_OPEN(vm,"vxi,24");
IF (vm == 0)
{
printf("open failed on vm\n");
printf("cscpi open error number: %d\n", cscpi_open_error);
exit(1);
}
INST_SEND(vm,"*RST\n");
INST_QUERY(vm,"*IDN?\n", "%s",vm_id);
printf("The id of this module is %s \n", vm_id);
exit(0);
}
Debugging Programs
This section contains information to help you avoid programming mistakes
and to debug your programs. The steps outlined below do not depend on any
particular programming language.
Follow these steps as you write your program, or when the program is not
producing the expected results. Steps DEBUG1 through DEBUG5 will help
you find 80% of the errors that occur. Steps DEBUG6 through DEBUG9
will help you find the remaining 20% of the errors (which tend to be harder
to track down).
6-6 System Programming and Debugging C-Size Configuration Guide