Al_setbuffer – Measurement Computing ADLIB WIN User Manual

Page 125

Advertising
background image

Chapter 40 Buffer Handler Functions

27-5

27.5 AL_SetBuffer

Prototype

C\C++

(16 Bit) ERRNUM AL_SetBuffer(LHLD lhld, long lBuffNum, int _far *fpDataBuff,

long

lStartPoint, long lCount );


(32 Bit) ERRNUM AL_SetBuffer(LHLD lhld, long lBuffNum, int *fpDataBuff,

long

lStartPoint, long lCount );



Visual Basic for Windows

Function

AL_

SetBuffer(ByVal

lhld As Long, ByVal lBuffNum As Long,

fpDataBuff as Integer, ByVal lStartPoint As Long,

ByVal lCount As Long) As Long

LHLD lhld

handle of the LDSD


long
lBuffNum

specifies the buffer number


int _far *
fpDataBuff

source address of the data buffer


long lStartPoint

starting point in the destination buffer to be set


long lCount

number of samples



The AL_SetBuffer function copies the user fpDataBuff source buffer to the LDSD destination buffer
specified by lBuffNum. This function is used to copy the waveform data to the specified ADLIB buffers for
the Pci55xx DtoA devices.

Parameter

Description

lhld

Identifies the instance of the logical device subsystem.


lBuffNum

Specifies the ID number of the LDSD buffer to be copied.


fpDataBuff

Specifies the user buffer source address.


lStartPoint

Starting sample point in the LDSD source buffer to be set.


lCount

Number of fpDataBuff samples to be copied.


Returns:
On success the specified LDSD data buffer is updated with the specified fpDataBuff data samples,
otherwise ERRNUM contains the last error code that occurred during the call.

Related Functions:
AL_SetNumOfBuffers
AL_SetBufferSize

Supported Logical Device Subsystems:
Pci55xx Series: DAC0, DAC1

Advertising