beautypg.com

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

Page 229: Parameter summary, Parameter values, Returns

background image

daqDacWtMany

Also See: daqDacWt

Format

daqDacWtMany(handle, deviceTypes, chans, dataVals, count)

Purpose

daqDacWtMany

sets the output values of multiple local or expansion DAC channels.

Parameter Summary

Parameter Type

Description

handle DaqHandleT Handle to the device whose channel values will be updated
deviceTypes DaqDacDeviceType Pointer to an array which specifies the DAC types
chans PDWORD

Pointer to any array which specifies the DAC channels

dataVals PWORD

Pointer to an array which gives a value to output to the
D/A channel

count DWORD

Length of all the arrays

Parameter Values

handle:

obtained from the daqOpen function

deviceTypes:

see table below

chans:

pointer to an array of output channel numbers; for channel number values, refer to the

deviceTypes table below
dataVals:

valid values range from 0 to 65,535

count:

the total number of analog channels to output range from 1 to 512

Parameter Type Definitions

deviceType-(DaqDacDeviceType)

Definition

chan

Value

Description

0

Output data value to DAC0

1

Output data value to DAC1

2

Output data value to DAC2

DddtLocal

3

Output data value to DAC3

N*4 + 0

Set output for channel0 on a DBK2 or DBK5 on bank N

N*4 + 0

Set output for channel1 on a DBK2 or DBK5 on bank N

N*4 + 0

Set output for channel2 on a DBK2 or DBK5 on bank N

DddtDbk

N*4 + 0

Set output for channel3 on a DBK2 or DBK5 on bank N

DddtLocalDigital

NA

The 16-bit P3 Digital port is not applicable for analog output operations

Returns

DerrInvDacVal

Invalid data value

DerrNoError

No error

For more details on error messages refer to the Daq Error Table.

Programmer’s Manual

908494

Daq API Command Reference 4.4-47