beautypg.com

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

Page 167

background image

daqCvtRtdSetupConvert

Also See: daqCvtRtdSetup, daqCvtRtdConvert

Format

daqCvtRtdSetupConvert(nscan, startPosition, nRtd, rtdType, avg, counts,
scans, temp, ntemp)

Purpose

daqCvtRtdSetupConvert

both sets up the resistance temperature detector (RTD) data conversion process

and converts that RTD data to a Celsius scale.

Parameter Summary

Parameter Type

Description

nscan DWORD

Total number of channel readings in a scan

startPosition DWORD

Position of the first RTD reading group in the scan

nRtd DWORD

Number of RTDs beings scanned

rtdType RtdType

Type of RTDs being used

avg DWORD

Type of averaging to be used

counts PWORD

Pointer to raw A/D data from one or more scans

scans DWORD

Number of scans of raw data in counts (number of pre-trigger +
post-trigger scans)

temp PSHORT

Variable array to hold converted temperatures

ntemp DWORD

Size of temperature array

Parameter Values

nscan:

valid values range from 1 to 512; this number should be equivalent to:

[(the number of RTDs * 4) + (any additional channels)]

startPosition:

valid values range from 1 to 507; the first scan position will be position 0, and the last

will be position (nscan-1)
nRtd:

valid values range from 1 to 128

rtdType:

see table below

avg:

see table below

counts:

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

conversion

scans:

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

temp:

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

converted readings upon return from this command
ntemp:

the value of the ntemp parameter should be equal to number of RTDs specified in setup times the

number of scans. If averaging is used, then ntemp should be equal to:

[(number of RTDs) * (scans) * (the value of the avg parameter as set in the
daqCvtRtdSetup function)].

Programmer’s Manual

908494

Daq API Command Reference 4.3-41