Al_getinputconfiglist – Measurement Computing ADLIB WIN User Manual

Page 107

Advertising
background image

Chapter 31 Input Configurations

24-3

24.2 AL_GetInputConfigList

Prototype

C\C++

ERRNUM

AL_GetInputConfigList(LHLD

lhld, LPINPUTCONFIGLIST lpInputConfiglist);


Visual Basic for Windows

Function

AL_GetInputConfigList(ByVal

lhld As Long, lpInputConfiglist As

INPUTCONFIGLIST) As Long

LHLD lhld

handle

of

the

LDSD

LPINPUTCONFIGLIST lpInputConfiglist

destination address of the user channel list structure


The AL_GetInputConfigList function retrieves to the current LDSD InputConfig list. 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. The
InputConfigID 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. This
structure has been predefined 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 lpInputConfiglist structure is filled with the device's InputConfig
list settings, otherwise ERRNUM contains the last error code that occurred during the call and the
lpInputConfiglist structure may contain invalid information.

Related Functions:
AL_SetInputConfigList
AL_SetInputConfigGlobal

Examples:

string

“0(DI),1(PD),2(SE),3(DI),4(DI),5(SE),6(SE),7(PD)”

array

{0,200, 1,220, 2,210, 3,200, 4,200, 5,210, 6,210, 7,220};

Advertising