Figure 3-2. example of using a list, written in c, Example of using a list, written in c# -10 – KEPCO KLP Series Developers Guide, Rev 3 User Manual

Page 32

Advertising
background image

3-10

KLP-DEV 041213

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 KLPdriver;
KepcoDCPwr.Interop.IOutput outputPtr;
KepcoDCPwr.Interop.IList listPtr;
KLPdriver = new KepcoDCPwrClass();

try
{

Advertising