beautypg.com

Daqdacwavesetbuffer, Format, Purpose – Measurement Computing Data Acquisition Systems rev.10.4 User Manual

Page 200: Parameter summary, Parameter values, Transfermask, Returns

background image

daqDacWaveSetBuffer

Also See: daqDacTransferStart, daqDacTransferStop

Format

daqDacWaveSetBuffer(handle, deviceType, chan, buf, scanCount,
transferMask)

Purpose

daqDacWaveSetBuffer

configures a waveform/pattern output transfer buffer for the specified device and

channel.

Parameter Summary

Parameter Type

Description

handle DaqHandleT Handle to the device for which a DAC waveform transfer

buffer will be configured

deviceType DaqDacDeviceType

Specifies the DAC type

chan DWORD

Specifies the DAC channel

buf PWORD

Pointer to the user allocated waveform transfer buffer

scanCount DWORD

Length of the waveform buffer in output samples

transferMask DWORD

Configures the buffer transfer mode

Parameter Values

handle:

obtained from the daqOpen function

deviceType:

see table below

chan:

valid values depend on the values chosen for the deviceType parameter; see the deviceType

table below
buf:

pointer to buffer which contains scanCount updates for each channel in waveform/pattern output

mode
scanCount:

length of the buffer in updates for each channel can be 1 to 4,294,967,295; however, memory

limitations may apply

transferMask:

see table below

Parameter Type Definitions

DeviceType–(DaqDacDeviceType)

Definition

chan

Value

Description

0

Start the transfer of waveform/pattern output data where DAC0 is one of the
channels being output.

1

Start the transfer of waveform/pattern output data where DAC1 is one of the
channels being output.

2

Start the transfer of waveform/pattern output data where DAC2 is one of the
channels being output.

DddtLocal

3

Start the transfer of waveform/pattern output data where DAC3 is one of the
channels being output.

DddtLocalDigital

0

Start the transfer waveform/pattern output data where the 16-bit P3 Digital port is
one of the channels being output.


transferMask

Definition Description

DdtmUserBuffer

Selects a user buffer for waveform/pattern output

DdtmDriverBuffer

Selects a driver buffer for waveform/pattern output

Returns

4.4-18 Daq API Command Reference

908494

Programmer’s

Manual