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

Algorithmic closed loop controller
Table of Contents

Advertisement

INST_QUERY(e1415, "*TST?\n", "%d", &test_result);
if (test_result) {
}
}
#endif
/* Setup SCP functions */
INST_SEND(e1415, "sens:func:volt (@116)\n"); /* Analog in volts */
INST_SEND(e1415, "sour:func:cond (@141)\n"); /* Digital output
#if 0
{
int cal_result;
cal_result = -1;
INST_QUERY(e1415, "*CAL?\n", "%d", &cal_result);
if (cal_result) {
}
}
#endif
/* Configure Trigger Subsystem and Data Format */
INST_SEND(e1415, "trig:sour timer;:trig:timer .001\n");
INST_SEND(e1415, "samp:timer 10e-6\n"); /* default */
INST_SEND(e1415, "form real,32\n");
/* Download Globals */
/* INST_SEND(e1415, "alg:def 'globals','static float x;'\n"); */
/* Download Custom Function */
{
float64 maxInput;
float64 minInput;
float64 tableOffset;
uint16 coef_array[512]; /* 512 elements */
float64 tableRange;
maxInput = 2;
minInput = -2;
Build_table( maxInput, minInput, my_function, &tableRange,
/* Download the table range and the table array to the card
/* Piecewise requires 128 sets of table values
INST_SEND(e1415,"ALGorithm:FUNCtion:DEFine 'sin',%f,%f,%1024b",
}
380 Generating User Defined Functions
(void) fprintf(stderr, "E1415A failed self-test\n");
exit(1);
/* Set to 1 to do calibration */
/* Perform Calibrate, if necessary */
/* Result of E1415 self-test */
/* Make sure it gets assigned */
(void) fprintf(stderr, "E1415A failed calibration\n");
(void) fprintf(stderr, "Check FIFO for channel errors\n");
exit(1);
/* set to maximum expected input*/
/* set to minimum expected input*/
/* offset used in building table*/
/* Range on which table was built*/
&tableOffset, coef_array );
tableRange, tableOffset, coef_array);
*/
*/
*/
Appendix F

Advertisement

Table of Contents
loading

This manual is also suitable for:

Vxi e1415a

Table of Contents