PCI-AC51 OPTO 22, PCI-AC51 Datasheet - Page 13

Computers, Interface Cards

PCI-AC51

Manufacturer Part Number
PCI-AC51
Description
Computers, Interface Cards
Manufacturer
OPTO 22
Datasheet

Specifications of PCI-AC51

Peak Reflow Compatible (260 C)
No
Leaded Process Compatible
No
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
Developing the I/O Application
Common Function Parameters and Return Values
int hHandle
PamuxPCICardOpen().
int Bank
int Point
OutputMask
Return Values
All functions in the OptoPM32.dll return an error value. A non-zero value indicates an error has
occurred. For proper application operation, make sure your program checks error codes. See the list
of error codes on
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
5. When the application loop is complete, close the handle to the board using
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 toolkit 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 toolkit under \Vc\VC Project Includes.
to inspect the error codes from the OptoPM32.DLL.
PamuxPCICardClose.
A bank number (0 to 63).
A point or channel number on a rack starting with zero.
A “1” bit represents an output. Used to configure outputs.
Handle to a PCI-AC51 card. Handles are acquired using
page
17.
CHAPTER 2: PROGRAMMING WITH THE PCI-AC51 TOOLKIT IN WINDOWS
PCI-AC51 User’s Guide
9
9

Related parts for PCI-AC51