Figure 13. power supply event window, Programming examples, 1 example 1 – KEPCO KLP Series (older -1200 models) VISA Driver Manual User Manual
Page 13: 2 example 2
KLP-VISA 010906
13/(14 Blank)
2.2.14Errors will cause the Power Supply Event Window (Figure 13) to open. This allows the user an
opportunity to correct the error condition and continue or quit the VISA application.
FIGURE 13. POWER SUPPLY EVENT WINDOW
3. PROGRAMMING EXAMPLES.
The following examples show the functions needed to set voltage to 15V, current to 2 amp and output ON.
3.1 EXAMPLE 1:
ViByte ps_type;
ViSession KLP_Session;
Kpklp_init ("GPIB0::6", 1, &ps_type, &KLP_Session);
//init ps
Kpklp_Set_Volt_Curr (KLP_Session, 15, 2);
//voltage and current
Kpklp_OutputOnOff ( KLP_Session, 1);
//output on
3.2 EXAMPLE 2:
ViByte ps_type;
ViSession KLP_Session;
Kpklp_init ("GPIB0::6", 1, &ps_type, &KLP_Session);
//init ps
Kpklp_SetValue (KLP_Session, 0, 15);
//voltage
Kpklp_SetValue (KLP_Session, 1, 2);
//current
Kpklp_OutputOnOff ( KLP_Session, 1);
//output on