beautypg.com

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

Page 64: Parameter summary, Parameter values, Returns, Funtion usage

background image

daqAdcExpSetBank

Also See: daqSetOption

Format

daqAdcExpSetBank(handle, chan, bankType)

Purpose

daqAdcExpSetBank

internally programs intelligent DBK card channels so the device’s gains may be set

just before the acquisition.

Parameter Summary

Parameter Type

Description

handle DaqHandleT Handle to the device for which to set the expansion bank
chan DWORD

First channel number on the DBK card (channel numbers are
grouped as 16 channels per bank)

bankType DaqAdcExpType Type of channel bank

Parameter Values

handle:

obtained from the daqOpen function

chan:

valid values from 0 to 271 and are defined by channel configuration; see daqAdcSetScan
for details

bankType:

see table below

Parameter Type Definitions

bankType-(DaqAdcExpType)

Definition Description

DaetNotDefined

Bank is unknown or undefined the bank

DaetDbk50

Dbk50 or Dbk51 option

DaetDbk5

Dbk5 option

DaetDbk2

Dbk2 option

DaetDbk4

Dbk4 option

DaetDbk7

Dbk7 option

DaetDbk55

Dbk55 option

DaetDbk90

Dbk90 option

Returns

DerrInvChan

Invalid channel number

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

Funtion Usage

A bank consists of 16 main unit channels, allocated to a number of connect DBK cards. DBK cards in a single
bank must be all of the same type. The daqAdcExpSetBank function must be called once for each card in
the bank. For example, if four 4-channel cards (such as a DBK7) are used in the first expansion bank, you
must call daqAdcExpSetBank 4 times with channels 16, 20, 24, and 28.

4.2-8 Daq API Command Reference

988594

Programmer’s Manual