Section 5 — Programming
5 - 1
Section 5
Programming
5.1
General Description
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.
5.2
Description of Commands
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
Version
Visual C/C++
Any 32-bit compiler for Windows
Visual Basic
4.0
LabVIEW
4.0.1
General command categories are listed in Table 5.2-2. Command lists and
information (C language representation only) are provided in the following
paragraph.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com