ABC 040104
3-25/(3-26 Blank)
3.7.7
SCPI PROGRAM EXAMPLES
Refer to Appendix B, Figures B-1 through B-7 for examples illustrating the use of SCPI com-
mands.
Figure 3-5 is an example of a program using SCPI commands to program the ABC Power Sup-
ply. The program illustrated is for a configuration using an IBM PC or compatible with a National
Instruments GPIB interface card. (It will be necessary to consult the manufacturer’s data to
achieve comparable functions with an interface card from a different manufacturer.) This pro-
gram sets output voltage (Voltage mode) or voltage limit (Current mode) to 5V, and current limit
(Voltage mode) or output current (Current mode) to 1A, then reads the measured (actual) volt-
age and current, then prints the measurements.
3.8
OPERATOR MAINTENANCE
1. Twice a year, clean exterior surfaces using a dry lint-free cloth to wipe all exterior surfaces of
the power supply to remove dust and other contaminants.
2. Once a year, clean the front panel as follows:
• Disconnect the unit from mains power
• Using a damp, lint-free cloth, wipe the front panel to remove any accumulated dirt.
• Reconnect a-c power to the unit.
FIGURE 3-5. TYPICAL EXAMPLE OF ABC POWER SUPPLY PROGRAM USING SCPI COMMANDS
/**************************************************************************/
/* Sample Program For KEPCO power supply, using National Instruments */
/* GPIB interface card and IBM PC or compatible computer */
/**************************************************************************/
#include <stdio.h>
#include "decl.h"
char rd_str[80];
// Input buffer
char dat_str[80];
// Output buffer
int bd,adr;
main() {
adr = ibfind("DEV6");
// Open DEV6 (defined by IBCONF)
bd = ibfind ("GPIB0");
// Open GPIB card
ibsic (bd);
// Send Interface Clear
ibsre(bd,1);
// Set remote line true
strcpy(dat_str,"VOLT 5;CURR 1");
// Define a set command
strcat(dat_str,"\r\n");
// Append delimiter
ibwrt(adr,dat_str,strlen(dat_str));
// Send string to power supply
strcpy(dat_str,"MEAS:VOLT?;CURR?");
// Define a measure command
strcat(dat_str,"\r\n");
// Append delimiter
ibwrt(adr,dat_str,strlen(dat_str));
// Send string to power supply
strset(rd_str,'\0');
// Clear input buffer
ibrd(adr,rd_str,64);
// Read result of measure
printf("received : %s\n",rd_str);
// Print voltage and current
}
Содержание ABC 10-10DM
Страница 2: ......
Страница 6: ......
Страница 14: ...viii ABC 040104 FIGURE 1 1 ABC SERIES POWER SUPPLY...
Страница 18: ...1 4 ABCOPR040104 FIGURE 1 1 ABC SERIES POWER SUPPLY MECHANICAL OUTLINE DRAWING...
Страница 19: ...ABCOPR040104 1 5 FIGURE 1 2 ABC POWER SUPPLY AND RA 71 RACK ADAPTER OUTLINE DRAWING...
Страница 20: ...1 6 ABCOPR040104 FIGURE 1 3 TWO ABC POWER SUPPLIES AND RA 72 RACK ADAPTER OUTLINE DRAWING...
Страница 24: ......
Страница 58: ......
Страница 64: ......
Страница 94: ......
Страница 96: ...FOLD HERE Please place stamp here KEPCO INC 131 38 SANFORD AVE FLUSHING NY 11352 USA CUT HERE...