beautypg.com

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

Page 85

background image

daqAdcSetFreq

Also See: daqAdcGetFreq, daqAdcSetClockSource,

daqAdcSetRate

Format

daqAdcSetFreq(handle, freq)

Purpose

daqAdcSetFreq

calculates and sets the frequency of the internal scan pacer clock of the device using the

frequency specified in Hz.

Parameter Summary

Parameter Type

Description

handle DaqHandleT

Handle to the device whose acquisition frequency is being set

freq FLOAT

The sampling frequency in Hz

Parameter Values

handle:

obtained from the daqOpen frequency

freq:

valid values range from 0.2 mHz to 1.0 MHz, depending on the device

Returns

DerrNoError

No error

Function Usage

This function follows closely that of the daqAdcSetRate function with the mode parameter set to
DarmFrequency

. Valid values for the freq parameter range from 0.2 mHz to 1.0 MHz, but are dependent

on the device being used--see the discussion of actual scan rates in the entry for daqAdcSetRate.

This function is here for reference only. It is recommended that the daqAdcSetRate
function be used instead.

Prototypes

C/C++

daqAdcSetFreq(DaqHandleT handle, FLOAT freq);

Visual BASIC

VBdaqAdcSetFreq&(ByVal handle&, ByVal freq!)

Program References

DAQADCEX01.CPP, DAQADCEX02.CPP, DAQADCEX03.CPP, DAQADCEX04.CPP,
DAQADCEX05.CPP, DAQADCEX06.CPP, DAQADCEX07.CPP, DBK04EX.CPP, DBK07EX.CPP,
DBK08EX.CPP, DBK09EX.CPP, DBK12_13EX.CPP, DBK15EX.CPP, DBK16EX.CPP,
DBK17EX.CPP, DBK18EX.CPP, DBK19EX.CPP, DBK42EX.CPP, DBK43EX.CPP,
DBK44EX.CPP, DBK45EX.CPP, DBK50EX.CPP, DBK51EX.CPP, DBK52EX.CPP,
DBK53_54.CPP, DAQEX.FRM (VB)


Programmer’s Manual

908594

Daq API Command Reference 4.2-29