Section 5 - Programming; General Description; Windows Programming; How To Use The Dynamic Link Library - Newport ESP6000 User Manual

Motion controller/driver
Table of Contents

Advertisement

Section 5
Programming
5.1

General Description

5.2

Description of Commands

Section 5 — Programming
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
The ESP6000 controller card and device driver must be installed correctly
before programming can begin. The Dynamic Link Library (DLL) provides
communication to the ESP6000 controller card via the PCI bus. When the
system is initialized the DLL will make a call to the device driver to open
communications. The device driver will respond with the address of the
memory location the DLL can use for shared memory. It is important to
check the return value from the function esp_init_system (see the Com-
mands paragraphs in this section) to insure that the shared memory was
locked down.

5.1.1 Windows Programming

The libraries provided are intended to be used with the Windows 95 and
Windows NT operating systems. If you are not an experienced Windows
programmer consult a good book on the subject, Programming Windows 95
by Charles Petzold, for example. Review the examples on the utility disk
for familiarization with library usage.

5.1.2 How To Use The Dynamic Link Library

Make calls to the dynamic link library the same way you would call any
other function. The library must be linked to your program either by
using the LoadLibrary() function provided with the Windows 95 API or
by using the import library included with the DLL.
The ESP6000 provides various Application Programming Interface (API)
commands for the user as an alternative to using the Windows setup utility
(ESP-util.exe). Commands are provided for Visual C/C++, Visual BASIC, and
LabVIEW programming environments via a DLL. Minimum software
version level requirements for commands are listed in Table 5.2-1.
Table 5.2-1 — Software Version Requirements
Language
Visual C/C++
Visual Basic
LabVIEW
General command categories are listed in Table 5.2-2. Command lists and
information (C language representation only) are provided in the following
paragraph.
Version
Any 32-bit compiler for Windows
4.0
4.0.1
5 - 1

Advertisement

Table of Contents
loading

This manual is also suitable for:

Unidrive6000

Table of Contents