USING THE SDK ON WINDOWS 2000/XP
PCI-AC51 User’s Guide
18
Digital Bank Operations
The term
bank
refers to groups of eight digital I/O points. A 32-channel Pamux board with a B4 brain
board has four banks. It is faster to read a bank all at once than to read each point individually.
Note that channel 0 corresponds to the least significant bit. For example, if you read a bank with
channels 0, 3, and 4 on and all other channels off, the returned value would be 19 hex (11001 binary,
or 25 decimal).
Function
Type
Function
Parameter
Type
Parameter
Description
long
PamuxDigBankConfig
long
hHandle
Configures a bank of digital I/O points as
either inputs or outputs. A “1” in the
mask indicates an output. Use Pamux-
DigBankConfig for configuring between
8 and 32 points,
PamuxDigBank16Config for 16 points,
or PamuxDigBank32Config for 32
points.
The Byte Qty parameter in PamuxDig-
BankConfig indicates how many banks
to configure (Byte Qty = 4 for 32 points).
long
Bank
long
OutputMask
long
Byte Qty
long
PamuxDigBank16Config
long
hHandle
long
Bank
long
OutputMask
long
PamuxDigBank32Config
long
hHandle
long
Bank
long
OutputMask
long
PamuxDigBankRead
long
int hHandle
Reads inputs and outputs and places
the result in pData. Use PamuxDig-
BankRead for reading eight points,
PamuxDigBank16Read for 16 points, or
PamuxDigBank32Read for 32 points.
long
Bank
long
* pData
long
PamuxDigBank16Read
long
int hHandle
long
Bank
long
* pData
long
PamuxDigBank32Read
long
int hHandle
long
Bank
long
* pData
long
PamuxDigBankWrite
long
hHandle
Writes outputs using the value in Data.
Inputs are not affected if written to. Use
PamuxDigBankWrite for writing to eight
points, PamuxDigBank16Write for 16
points, or PamuxDigBank32Write for 32
points.
long
Bank
long
Data
long
PamuxDigBank16Write
long
hHandle
long
Bank
long
Data
long
PamuxDigBank32Write
long
hHandle
long
Bank
long
Data
* Note for Visual Basic users: * indicates a “by reference” argument.
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 ...