Al_setswgate – Measurement Computing ADLIB WIN User Manual

Page 88

Advertising
background image

Chapter 22 Gating Modes

21-4

21.4 AL_SetSwGate

Prototype

C\C++

ERRNUM

AL_SetSwGate(LHLD

lhld, long lSwGate);


Visual Basic for Windows

Function

AL_SetSwGate(ByVal

lhld As Long, ByVal lSwGate As Long) As Long

LHLD lhld

handle of the LDSD

long lSwGate

specifies the desired state of the hardware gate


The AL_SetSwGate function enables or disables a hardware control gate.

Parameter

Description

lhld

Identifies the instance of the logical device subsystem.


lSwGate

Specifies the hardware gate state. The available settings are defined in the

ADLIB include file as follows:

DISABLED

The device is stopped.

ENABLED

The device is enabled to run.


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_SetGateLevel
AL_GetGateStruct
AL_GetSwGate

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

DISABLED or ENABLED

Advertising