HP VXI 75000 C Series User's And Scpi Programming Manual page 379

Algorithmic closed loop controller
Table of Contents

Advertisement

#if 0
/* Check pass parameters */
if ((argc < 2) || (argc > 33)) {
usage(argv[0]);
exit(1);
}
#endif
INST_STARTUP();
#if 0
/* If you need to open a VXI device session, here's how to do it. You need
* a VXI device session if the V382 is to source or respond to VXI
* backplane triggers (SICL ixtrig or ionintr calls).
*/
if (! (vxi = iopen("vxi"))) {
(void) fprintf(stderr, "SICL error: failed to open vxi interface.\n");
(void) fprintf(stderr, "SICL error %d: %s\n",
exit(1);
}
#endif
/* Open the E1415 device session with error checking. Copy and modify
* these lines if you need to open other instruments.
*/
INST_OPEN(e1415, E1415_ADDR); /* Open the E1415 */
if (! e1415) {
(void) fprintf(stderr, "Failed to open the E1415 at address %s\n",
(void) fprintf(stderr, "C-SCPI open error was %d\n", cscpi_open_error);
(void) fprintf(stderr, "SICL error was %d: %s\n",
exit(1);
}
/* Check for startup errors */
INST_QUERY(e1415,"syst:err?\n", "%d,%S", &error, string);
if (error) {
(void) printf("syst:err %d,%s\n", error, string);
exit(1);
}
/* Usually, you'll want to start from a known instrument state. The
* following provides this.
*/
INST_CLEAR(e1415);
INST_SEND(e1415, "*RST;*CLS\n");
#if 0
/* Does the E1415 pass self-test? */
{
int test_result;
test_result = -1;
Appendix F
/* Set to 1 if reading algorithm files */
/* Must have 1 to 32 algorithms */
/* Initialize the C-SCPI routines */
/* Set to 1 to open interface session */
igeterrno(), igeterrstr(igeterrno()));
E1415_ADDR);
igeterrno(), igeterrstr(igeterrno()));
/* Selected device clear */
/* Set to 1 to do self test */
/* Result of E1415 self-test */
/* Make sure it gets assigned */
/* Did it open? */
Generating User Defined Functions
379

Advertisement

Table of Contents
loading

This manual is also suitable for:

Vxi e1415a

Table of Contents