![KEPCO KLR SERIES Скачать руководство пользователя страница 30](http://html1.mh-extra.com/html/kepco/klr-series/klr-series_developers-manual_1956489030.webp)
3-8
KLR-DEV 060713
3.3.2
USING A LIST TO PERFORM A SERIES OF OPERATIONS
The filename for this example is
Clistexample.txt
, located in the ivi\drivers\kepco\examples
folder (see Figure 3-2 for complete code).
This example is written in C# and applies to a KLR 75-32 (either standard or E-Series model).
Step sizes may need to be readjusted for other models. This example will not work for units con-
figured for master/slave operation.
Since the IVI-COM driver is a native application for the C# and the VB.NET environments, it is
the easiest to use. More information about the various programming environments can be found
in the kepcoDCPwr driver help file which is automatically installed during driver installation.
Initializing the driver is easy; only the driver name is required.
using System;
using KepcoDCPwr.Interop;
// Create driver instance.
KepcoDCPwr KLRdriver;
KepcoDCPwr.Interop.Output outputPtr;
KepcoDCPwr.Interop.IList listPtr;
KLRdriver = new KepcoDCPwrClass();
The connection between the host and the KLR is then established by the following code:
KLRdriver.Initialize("GPIB0::6::INSTR",
true,
true,
"Cache=true,InterchangeCheck=false,QueryInstrStatus=true,Simu-
late=false");//IVI options
// get references to the needed interfaces
outputPtr = KLRdriver.Outputs.get_Item(driver.Outputs);
listPtr = KLRdriver.List.get_Item(driver.Lists);
The list functionality uses arrays. The following code creates these arrays and then fills them
with data.
//create arrays for the ListPoints method
double[] voltList = new double [6];
double[] currList = new double [6];
double[] dwellTime = new double [6];
voltList[0] = 10;
voltList[1] = 20;
voltList[2] = 30;
voltList[3] = 40;
voltList[4] = 50;
voltList[5] = 60;
currList[0] = 2; // select max current for each step
currList[1] = 2;
currList[2] = 2;
currList[3] = 2;
Содержание 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: ......