Al_setautoinitbuffers – Measurement Computing ADLIB WIN User Manual

Page 138

Advertising
background image

Chapter 40 Buffer Handler Functions

27-18

27.17 AL_SetAutoInitBuffers

Prototype

C\C++

ERRNUM

AL_SetAutoInitBuffers(LHLD

lhld, long lState)


Visual Basic for Windows

Function

AL_

SetAutoInitBuffers(ByVal

lhld As Long, ByVal lState As long) As Long

LHLD lhld

handle of the LDSD


long
lState

desired state of the LDSD AutoInitBuffer flag


The AL_SetAutoInitBuffers function sets the LDSD buffer’s auto initialization authorization. Essentially
this function affects whether the AL_StartDevice function is allowed to auto initialize all LDSD buffers.
This is most useful when a AL_SINGLE_CYCLE operation has completed operation and another
acquisition is desired using the same LDSD buffers.

Parameter Description

lhld

Identifies the instance of the logical device subsystem.


lState

Specifies the desired AutoInitBuffers authorization state of the LDSD. The available

settings are defined in the ADLIB include file as follows:

YES

The buffers will be auto initialized on AL_InitDevice calls.

NO

The buffers will NOT be auto initialized on AL_InitDevice calls.


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

Related Functions:
AL_StartDevice

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

Advertising