Al_setgatelevel – Measurement Computing ADLIB WIN User Manual

Page 86

Advertising
background image

Chapter 22 Gating Modes

21-2

21.2 AL_SetGateLevel

Prototype

C\C++

ERRNUM

AL_SetGateLevel(LHLD

lhld, LPSTR lpstrGateLevel);


Visual Basic for Windows

Function

AL_SetGateLevel(ByVal

lhld As Long,

ByVal lpstrGateLevel As String) As Long

LHLD lhld

handle of the LDSD

LPSTR lpstrGateLevel address of the gate Level string

The AL_SetGateLevel function sets the hardware gate level of the LDSD.

Parameter

Description

lhld

Identifies the instance of the logical device subsystem.


lpstrGateLevel

Points to the desired gate level string. The available string settings are device

independent and are verified by ADLIB against the available gate source

options

specified in the device's capabilities file.


Returns:
On success ERRNUM is set to 1, otherwise ERRNUM contains the last error code that occurred during the
call.

Related Functions:
AL_SetGateSource
AL_GetGateStruct
AL_SetSwGate
AL_GetSwGate

Supported Logical Device Subsystems:
Pci55xx Series: ADC0, DAC0, Options:

“ACTIVE_HIGH“ or “ACTIVE_LOW“

Advertising