beautypg.com

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

Page 66

background image

daqAdcGetFreq

Also See: daqAdcSetFreq, daqAdcSetClockSource,

daqAdcSetRate

Format

daqAdcGetFreq(handle, freq)

Purpose

daqAdcGetFreq

reads the sampling frequency of the pacer clock.

Parameter Summary

Parameter Type

Description

handle DaqHandleT

Handle to the device from which to get the current frequency setting

freq PFLOAT

A variable to hold the currently defined sampling frequency in Hz

Parameter Values

handle:

obtained from the daqOpen function

freq:

must be a valid pointer to a variable defined as a single precision (4-byte) floating point value

Returns

DaqError

See Daq Error Table

Function Usage

This function can be used after calling the daqAdcSetScan and daqAdcSetRate functions to retrieve the
pacer clock’s sampling frequency. Valid values for the freq parameter can range from 0.2 mHz to 1.0 MHz,
but they are dependent on the device being used--see the discussion of actual scan rates in the entry for
daqAdcSetRate

. If using a DaqBook or DaqBoard(ISA) device, daqAdcGetFreq assumes that the

1 MHz/10 MHz jumper is set to the default position of 1 MHz.

This function is here for reference only, since it closely resembles the daqAdcSetRate
function with its mode parameter set to DarmFrequency. It is recommended that the
daqAdcSetRate

function be used to retrieve the current acquisition frequency setting.

Prototypes

C/C++

daqAdcGetFreq(DaqHandleT handle, PFLOAT freq);

Visual BASIC

VBdaqAdcGetFreq&(ByVal handle&, freq!)

Program References

None

4.2-10 Daq API Command Reference

988594

Programmer’s Manual