Input configurations, Al_setinputconfiglist – Measurement Computing ADLIB WIN User Manual

Page 105

Advertising
background image

Chapter 31 Input Configurations

24-1

24. INPUT CONFIGURATIONS

Input Configurations allows the random ordering of Differential, Single Ended or Pseudo Differential
channels input types to be programmed into the board channel RAM list.
The Pci55xx Series has 16 channels of analog inputs with programmable gain that’s multiplexed to the 12
or 16-bit A/D converter and supported by 176 elements of channel list RAM. This allows the board to
access individual channels, with input configurations.

24.1 AL_SetInputConfigList

Prototype

C\C++

ERRNUM

AL_SetInputConfigList(LHLD

lhld, LPINPUTCONFIGLIST lpInputConfiglist);


Visual Basic for Windows
Function AL_SetInputConfigList(ByVal lhld As Long, lpInputConfiglist As INPUTCONFIGLIST)
As Long


LHLD lhld

handle

of

the

LDSD

LPINPUTCONFIGLIST lpchanlist

address of the user INPUTCONFIGLIST structure


The AL_SetInputConfigList function sets the InputConfig list settings in the LDSD. The INPUTCONFIG
listing is comprised of a channel number and INPUTCONFIG type. The INPUTCONFIG list may contain
Channel/InputConfig settings that are not currently set in the channel listing itself, only those channels
selected within the channel list will be set to the appropriate InputConfig type when running. The
InputConfig ID setting in the array can be obtained from the capability file.

Parameter

Description

lhld

Identifies the instance of the logical device subsystem.


lpInputConfiglist

Specifies a 32 bit far pointer to a INPUTCONFIG information
structure. The structure has been pre-defined in the ADLIB include file
and is defined as follows:


typedef struct tagINPUTCONFIGLIST
{

long

lType; /* 0 = Not Defined */

/* 1 = Use string list */

/* 2 = Use array of ints */


char

achInputConfigList[MAX_INPUTCONFIG_STRLEN];


long

lNumElements;

long

alInputConfigList[MAX_INPUTCONFIG_LIST_ARRAYLEN];


}INPUTCONFIG;
typedef INPUTCONFIG FAR * LPINPUTCONFIGLIST;

Returns:
On success ERRNUM is set to 1 and the information contained in the lpInputConfiglist structure is
transferred to the LDSD, otherwise ERRNUM contains the last error code that occurred during the call.

Advertising