beautypg.com

Daqadcsetmux – Measurement Computing Data Acquisition Systems rev.10.4 User Manual

Page 86

background image

daqAdcSetMux

Also See: daqAdcSetScan, daqAdcGetScan

Format

daqAdcSetMux(handle, startChan, endChan, gain, flags)

Purpose

daqAdcSetMux

sets a simple scan sequence of local A/D channels from startChan to endChan with the

specified gain value.

Parameter Summary

Parameter Type

Description

handle DaqHandleT

Handle to the device whose ADC channel scan group is
being configured

startChan DWORD

The starting channel of the scan group

endChan DWORD

The ending channel of the scan group

gain DaqAdcGain

The gain value for all channels

flags DWORD

Channel configuration flags in the form of a bit mask

Parameter Values:

handle:

obtained from the daqOpen function

startChan:

must be a valid channel number for the device

endChan:

must be a valid channel number for the device and greater than startChan

gain: s

ee ADC Gain Definition table for gain parameter values

flags: s

ee ADC Flag Definition table for flags parameter values

Returns

DerrInvGain

Invalid gain

DerrInvChan

Invalid channel

DerrNoError

No error

Reference Note:
For more details on error messages, please refer to the Daq Error Table.

Function Usage

This function provides a simple alternative to daqAdcSetScan if only consecutive channels need to be
acquired. The flags parameter is used to set channel-dependent options. The gain and flags parameters
will apply to all channels in the specified range.

4.2-30 Daq API Command Reference

988594

Programmer’s Manual