Overview; Examples - Newport ESP6000 User Manual

Motion controller/driver
Table of Contents

Advertisement

5.4
User Programming
Section 5 — Programming
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
5.4.1 Visual C

5.4.1.1 Overview

You must include the ESP6000 Dynamic Link Library, esp6000.dll, in your
application program. Probably the easiest way is to statically link the
import library to your project. The import library contains information
that Windows uses to locate the code in the DLL. You can also use the
LoadLibrary() function in your project. If you choose to use this method
make sure that you check the return value from the LoadLibrary() function
to verify that the library was found and is loaded into memory. Once the
library is loaded you are ready to start programming. The function
esp_init_system() must be the first function called. This function estab-
lishes shared memory and opens the initial communications to the
ESP6000 controller card. A complete list of "C" function prototypes are
available in the esp6000.h header file. This file should be included in all
your "C" source code.

5.4.1.2 Examples

There are several examples included in the install disk in the
"\newport\esp6000\vc" directory. If you are using Microsoft Foundation
Classes (MFC) you will want to look at the term485.cpp example.
5.4.2 Visual Basic
5.4.2.1 Overview
Visual Basic is probably the easiest Windows Programming language to
use. We have included a file called esp6000.bas in the ...\ESP6000\apps
\VB directory. Add this file to your project and you are ready to start
programming. As with any programming language, make sure you call the
esp_init_system() function first.
5.4.2.2 Examples
Refer to the utilities disk in the "VB" directory for examples you can use to
get your project up and running.
5.4.3 LabVIEW
5.4.3.1 Overview
LabVIEW is a graphically-oriented programming tool designed for scien-
tific and control applications. Each ESP 6000 LabVIEW API call is devel-
oped and saved as a virtual instrument (.vi) file. VI's are available through
the ESP6000 LabVIEW library, ESP6000.LLB.
5-109

Advertisement

Table of Contents
loading

This manual is also suitable for:

Unidrive6000

Table of Contents