3-30
BHK-1/2-MG 030916
FIGURE 3-6. TYPICAL EXAMPLE OF BHK-MG 40W POWER SUPPLY PROGRAM USING SCPI COMMANDS
3.8
REMOTE PROGRAMMING USING ANALOG PROGRAMMING TERMINALS
The BHK-MG 40W Power Supply is designed with separate, but similar, circuits for analog volt-
age programming (Figure 3-7) and analog current programming (Figure 3-8). The voltage pro-
gramming circuit is used for programming output voltage if the unit is in voltage mode, or voltage
limit if the unit is in current mode. Similarly, the current programming circuit programs output cur-
rent in current mode, and current limit in voltage mode.
/**************************************************************************/
/* 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
}
Содержание BHK-MG Series
Страница 2: ......
Страница 6: ......
Страница 16: ......
Страница 18: ...xii BHK MG030916 FIGURE 1 1 BHK MG 40W SERIES PROGRAMMABLE POWER SUPPLY...
Страница 24: ...1 6 BHK 1 2 MG OPR 030916 FIGURE 1 2 BHK 40W SERIES POWER SUPPLY MECHANICAL OUTLINE DRAWING SHEET 1 OF 2...
Страница 25: ...BHK 1 2 MG OPR 030916 1 7 FIGURE 1 2 BHK 40W SERIES POWER SUPPLY MECHANICAL OUTLINE DRAWING SHEET 2 OF 2...
Страница 26: ...1 8 BHK 1 2 MG OPR 030916 FIGURE 1 3 RA 24 RACK ADAPTER WITH TWO 1 2 RACK BHK MG 40W UNITS...
Страница 35: ...BHK 1 2 MG SERIES 030916 2 3 FIGURE 2 2 BHK MG SERIES REAR PANEL CONTROLS AND CONNECTIONS...
Страница 100: ...3 54 BHK 1 2 MG 030916 FIGURE 3 20 SERIES AUTOMATIC CONFIGURATION...
Страница 108: ...3 62 BHK 1 2 MG 030916 FIGURE 3 23 PARALLEL AUTOMATIC CONFIGURATION Eo is the output voltage of the power assembly...
Страница 113: ...BHK 1 2 MG 030916 3 67 FIGURE 3 25 PARALLEL MASTER SLAVE CURRENT MODE CONFIGURATION...
Страница 150: ......