beautypg.com

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

Page 159

background image

daqCvtLinearSetupConvert

Also See: daqCvtLinearConvert, daqCvtLinearSetup,

daqCvtSetAdcRange

Format

daqCvtLinearSetupConvert(nscan, readingsPos, nReadings, signal1, voltage1,
signal2, voltage2, avg, counts, scans, fValues, nValues)

Purpose

daqCvtLinearSetupConvert

both sets up the linear conversion process and converts the ADC readings

into floating point numbers.

Parameter Summary

Parameter Type

Description

nscan DWORD

Number of channels in a single scan

readingsPos DWORD

Position within the scan of the first reading to convert

nReadings DWORD

Number of consecutive ADC readings to convert

signal1 FLOAT Transducer input signal that produces voltage1
voltage1 FLOAT Transducer output voltage for input signal1
signal2 FLOAT Transducer input signal that produces voltage2
voltage2 FLOAT Transducer output voltage for input signal2
avg DWORD

Type of averaging to use

counts PWORD

Array of acquired ADC readings to be converted

scans DWORD

Number of scans to be converted

fValues PFLOAT

Array to hold the converted readings

nValues DWORD Size of the reading array

Parameter Values

nscan:

valid values range from 1 to 512

readingsPos:

valid values range from 0 to (nscan – 1)

nReadings:

valid values range from 1 to (nscan – readingsPos)

signal1:

single precision floating point (4 bytes) value representing transducer input voltage

voltage1:

single precision floating point (4 bytes) value representing transducer output voltage

signal2:

single precision floating point (4 bytes) value representing transducer input voltage

voltage2:

single precision floating point (4 bytes) value representing transducer output voltage

avg:

see table below

counts:

valid pointer to an array of integer words (2 bytes) which contain the data to perform the linear

conversion

scans:

the number of scans to be converted from 1 to the size of the counts array (in scans)

fValues:

valid pointer to an array of single precision floating point (4 bytes) values which will store the

converted readings upon return from this command

nValues:

the size of the fValues arrary should be at least equal to:

(scans * channels in scan * the sample size, normally 2)

Programmer’s Manual

908494

Daq API Command Reference 4.3-33