USING THE SDK ON WINDOWS 2000/XP
PCI-AC51 User’s Guide
16
Developing an I/O Application
Use the following basic steps in your application (in Visual Basic or Visual C++):
1.
Open a handle to the board using the function PamuxPCICardOpen.
2.
Inspect the error code of the device open function.
3.
Configure the direction of the points.
4.
Start the application loop that continuously reads or writes points. At the same time, continue
to inspect the error codes from the OptoPM32.DLL.
5.
When the application loop is complete, close the handle to the board using
PamuxPCICardClose.
Special Directions for Visual Basic Programmers
Include the OptoPM32.bas file as a module in your project. This file includes subroutine declarations,
function declarations, and access paths to the OptoPM32.dll.
These files may be found in the SDK under \Vb\VB dll header.
Special Directions for Visual C++ Programmers
Include the header OptoPM32.h in your source code modules that reference the OptoPM32.dll
functions. Also include the DLL link library OptoPM32.lib in your project so the DLL references are
resolved.
These files may be found in the SDK under \Vc\VC Project Includes.
Summary of Contents for PCI-AC51
Page 8: ...FOR HELP PCI AC51 User s Guide 4 ...
Page 30: ...SPECIAL PRECAUTIONS FOR THE SOFTWARE DEVELOPER PCI AC51 User s Guide 26 ...
Page 34: ...ERROR CODES FOR WINDOWS 2000 XP PCI AC51 User s Guide 30 ...
Page 38: ...LEDS PCI AC51 User s Guide 34 ...
Page 40: ...CONVERTING APPLICATIONS THAT USE INP AND OUTP PCI AC51 User s Guide 36 ...