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

Page 74

Advertising
background image

daqAdcRdScanN

Also See: daqAdcSetMux, daqAdcSetClockSource, daqAdcSetTrig, daqAdcRdN

Format

daqAdcRdScanN(handle, startChan, endChan, buf, scanCount, triggerSource,
rising, level, freq, gain, flags)

Purpose

daqAdcRdScanN

reads multiple scans from a set of consecutive acquisition channels.

Parameter Summary

Parameter Type

Description

handle DaqHandleT

Handle to the device from which acquisition scans
will be acquired

startChan DWORD

The starting channel of the scan group

endChan DWORD

The ending channel of the scan group

buf PWORD

An array into which the acquisition scans will be
placed

scanCount DWORD

The number of scans to be read

triggerSource DaqAdcTriggerSource The trigger source
rising BOOL

Boolean flag to indicate the rising or falling edge for
the trigger source

level WORD

The trigger level if an analog trigger is specified

freq FLOAT

The sampling frequency in Hz

gain DaqAdcGain The channel’s gain setting
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

buf:

must be a valid pointer to memory whose size is at least equal to:

[(endChan – startChan) * scanCount * (the sample size, normally 2 bytes) ]
scanCount:

valid values range from 1 to 4,294,967,295 scans; however, memory limitations apply.

triggerSource:

see table below

rising:

valid values are either true (

≠ 0) or false ( = 0)

level:

valid values range from 0 to 65,535, representing the trigger level in unsigned A/D counts

freq:

see the daqAdcSetRate function for details

gain: s

ee ADC Gain Definition table for gain parameter values

flags:

see ADC Flag Definition table for flags parameter values

Parameter Type Definitions

triggerSource-DaqAdcTriggerSource

Definition Description

DatsImmediate

Begins taking post trigger scans immediately upon daqAdcArm function

DatsAdcClock

Begins taking post trigger scans upon detection of next pacer clock pulse

DatsGatedAdcClock

Begins taking post trigger scans upon detection of next gated pacer clock pulse

DatsExternalTTL

Begins taking post trigger scans on the selectable edge of an external TTL signal on pin
25 of P1

DatsHardwareAnalog

Begins taking post trigger scans upon a selectable criteria of the input signal (above
level, below level, rising edge, etc.)

4.2-18 Daq API Command Reference

988594

Programmer’s Manual

Advertising