![KEPCO KLR SERIES Скачать руководство пользователя страница 31](http://html1.mh-extra.com/html/kepco/klr-series/klr-series_developers-manual_1956489031.webp)
KLR-DEV 060713
3-9
currList[4] = 2;
currList[5] = 2;
dwellTime[0] = 1;
dwellTime[1] = 2;
dwellTime[2] = 3;
dwellTime[3] = 4;
dwellTime[4] = 5;
dwellTime[5] = 0.01;
The following command uses the IVI-COM driver to send the lists to the KLR. Note that the
arrays are passed by reference to the driver.
listPtr.ListPoints(ref voltList, ref currList, ref dwellTime);
The list is set to perform the required number of executions, then started:
// Set the number of executions.
listPtr.count = 2;
// initiate
outputPtr.listInitiate();
The driver should be closed at the end using the following code. The conditional statement
allows the close to be added to the end of the program without getting any runtime errors.
//' Close driver if initialized.
if (KLRdriver.Initialized == true ) KLRdriver.Close();
FIGURE 3-2. EXAMPLE OF USING A LIST, WRITTEN IN C# (SHEET 1 OF 2)
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
'This program executes a 6 point current and voltage list.
' It also specifies 6 different dwell times.
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
using System;
using KepcoDCPwr.Interop;
namespace ListExample
{
/// <summary>
/// Summary description for Class1.
/// </summary>
class Class1
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main(string[] args)
{
// Create driver instance.
KepcoDCPwr KLRdriver;
KepcoDCPwr.Interop.IOutput outputPtr;
KepcoDCPwr.Interop.IList listPtr;
KLRdriver = new KepcoDCPwrClass();
try
{
Содержание 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: ......