Al_setgainglobal – Measurement Computing ADLIB WIN User Manual

Page 103

Advertising
background image

Chapter 26 Global Gain Settings

23-1

23.7 AL_SetGainGlobal

Prototype

C\C++

ERRNUM

AL_SetGainGlobal(LHLD

lhld, lpstr lpstrGain);


Visual Basic for Windows

Function

AL_SetGainGlobal(ByVal

lhld As Long, ByVal lpstrGain As String) As Long


LHLD lhld

handle of the LDSD

lpstr lpstrGain

address of the gain string


The AL_SetGainGlobal function globally sets all channel list gains to the specified lpstrGain in the
LDSD.

Parameter

Description

lhld

Identifies the instance of the logical device subsystem to be released.


lpstrGain Points to the desired gain setting string. The available string settings are device

independent and are verified by ADLIB against the available gain 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_SetChannelList
AL_SetMinStartChan
AL_GetMinStartChan
AL_SetMaxEndChan
AL_GetMaxEndChan

Supported Logical Device Subsystems:
Pci5501, Pci5503: ADC0, Options:

“1”, “2”, “5“,“10“

Pci5502, Pci5504: ADC0, Options:

“1“, “10“, “100“, “1000“

Advertising