![KEPCO KLR SERIES Скачать руководство пользователя страница 69](http://html1.mh-extra.com/html/kepco/klr-series/klr-series_developers-manual_1956489069.webp)
KLR-DEV 060713
5-7
5.4.3
EXAMPLE 3: USING THE POWER SUPPLY TO TAKE MEASUREMENTS
Figure 5-3 is an example of using the power supply to take measurements
FIGURE 5-3. EXAMPLE 3: USING THE POWER SUPPLY TO TAKE MEASUREMENTS (SHEET 1 OF 2)
#include <formatio.h>
#include <visa.h>
#include "kp_KLR.h"
/* Order of the H files in important
visa.h uses some of the formation functions
kp:KLR.h needs definitions from visa.h to compile correctly
***** end of required h files */
/* select one of the following strings depending upon port to be used */
ViChar id_str{}="GPIB::06::INSTR"; // change 06 to the GPIB address of unit.
/* LAN addresses - change 192.168.0.100 to IP address found via front panel interface
*/
ViChar id_str()="TCIP::192.168.0.100::INSTR"; // VXI-11 instrument- via LAN port 1024
ViChar id_str()="TCIP::i92.168.0.100::5025::SOCKET"; // SCPI-RAW port (5025) LAN instrument
/* change 0 to actual communications port in use */
ViChar id_str()="ASRL0::INSTR"; // serial port
ViByte ps_type;
ViSession KLR_Session;
Void main{
ViReal64 meas_volt,meas_curr; // variables for the measurement results
/* call function to set power supply to 15 volts at 12 amperes */
if (Kpklr_init ( &id_str, 1, &ps_type, &KLR_Session) !=Visuccess)
return; // could not open power supply
Set_powersupply(15,12);
delay (100);
Kpklr_MeasVoltCurr (KLR_session, *meas_volt, *meas_curr);
Kpklr_close(KLR_Session); // free up the memory and close visa session
}
ViStatus Get_powersupply (ViReal64 *voltage, ViReal64 *current){
ViStatus power_supply_status = VI_SUCCESS;
return (power_supply_status);
} // end of readback
Содержание KLR SERIES
Страница 2: ......
Страница 10: ......
Страница 42: ......
Страница 58: ...4 16 KLR DEV 060713 FIGURE 4 10 FUNCTION GENERATOR PANEL FIGURE 4 11 CONFIGURE User Sequence vi BLOCK DIAGRAM ...
Страница 59: ......
Страница 60: ......
Страница 61: ...FIGURE 4 13 FUNCTION GE ...
Страница 62: ......
Страница 86: ......
Страница 90: ......