beautypg.com

KEPCO KLP Series Developers Guide, Rev 3 User Manual

Page 31

background image

KLP-DEV 041213

3-9

currList[3] = 2;
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 KLP. 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 (KLPdriver.Initialized == true ) KLPdriver.Close();