Al_getgatestruct – Measurement Computing ADLIB WIN User Manual

Page 87

Advertising
background image

Chapter 22 Gating Modes

21-3

21.3 AL_GetGateStruct

Prototype

C\C++

ERRNUM

AL_GetGateStruct(LHLD

lhld, LPGATE lpgateStruct);


Visual Basic for Windows

Function

AL_GetGateStruct(ByVal

lhld As Long, lpgateStruct As GATE) As Long


LHLD
lhld

handle of the LDSD

LPGATE lpgateStruct

address of the user gate structure


The AL_GetGateStruct function provides access to all LDSD gate settings.

Parameter

Description

lhld

Identifies the instance of the logical device subsystem.


lpgateStruct

Specifies a 32 bit far pointer to a gate information structure. This structure has

been pre-defined in the ADLIB include file and is defined as follows:


typedef struct tagGATE
{
char

achGateSourceName[MAX_OPTIONS_NAME_STRING];

long

lGateSourceId;


long

lGateLevel;


}GATE;
typedef GATE FAR * LPGATE;

Returns:
On success ERRNUM is set to 1 and the lpgateStruct structure is filled with the device's gate settings,
otherwise ERRNUM contains the last error code that occurred during the call and the lpgateStruct structure
may contain invalid information.

Related Functions:
AL_SetGateSource
AL_SetGateLevel
AL_SetSwGate
AL_GetSwGate

Supported Logical Device Subsystems:
Pci55xx Series: ADC0, DAC0

Advertising