beautypg.com

Daqcvttcsetupconvert and daqcvttcsetupconvertf, Daqcvttcsetupconvert, Daqcvttcsetupconvertf – Measurement Computing Data Acquisition Systems rev.10.4 User Manual

Page 179

background image

daqCvtTCSetupConvert

and

daqCvtTCSetupConvertF

Also See: daqCvtTCConvert, daqCvtTCConvertF, daqCvtTCSetup

Format

daqCvtCSetupConvert(nscan, cjcPosition, ntc, tcType, bipolar, avg, counts,
scans, temp, ntemp)

Purpose

daqCvtTCSetupConvert

and daqCvtTCSetupConvertF are each used to set up and convert raw

thermocouple (T/C) data to data on a Celsius scale. See Note 1.

Parameter Summary

Parameter Type

Description

nscan DWORD

Number of channel readings in a single scan

cjcPosition DWORD

Position of the CJC reading within the scan

ntc DWORD

Number of thermocouple readings that immediately follow the CJC reading
within the scan

tcType TCType

Type of thermocouples being measured

bipolar BOOL Must be set true if the readings were acquired with the device set for

bipolar operation; must be set false for unipolar operation

avg DWORD

Type of averaging to use

counts PWORD

Array of raw data from one or more scans

scans DWORD

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

temp PSHORT

Variable array to hold converted temperature results (see Note 1)

ntemp DWORD

Number of entries in the temperature array

Parameter Values

nscan:

valid values range from 2 to 512; this number should be equal to: [(the number of T/Cs) + (the

number of CJCs) + (any zero readings) + (any additional voltage readings)]
cjcPosition:

valid values depend on whether or not zero compensation is being used: values range from 0

to (nscan-2) with no zero compensation, and from 2 to (nscan-2) with zero
compensation
ntc:

valid values range from 1 to [(nscan-1)-cjcPosition]

tcType:

see table below

bipolar:

valid values are either true (

≠ 0) or false ( = 0)

avg:

see table below

counts:

valid values range from 0 to 65,536 (each raw data item may be any 16-bit value)

scans:

valid value range from 1 to 4,294,967,295; however, memory limitations may apply

temp:

valid converted values stored in this array range from –2,000 (-200°C) to +13,720 (+1,372°C),

depending on the thermocouple type. (See Note 1)
ntemp:

the value of the ntemp parameter should be equal to number of T/Cs specified in setup times the

number of scans. If averaging is used, then ntemp should be equal to: [(number of T/Cs) *
(scans) * (the value of the avg parameter as set in the daqCvtTCSetup function)]

Note 1: daqCvtTCSetupConvert converts temperature readings to values in tenths of degrees Celsius (0.1°C).

daqCvtTCSetupConvertF stores actual temperature values, i.e., actual instead of a value converted
to the nearest tenth of a degree °C.

Programmer’s Manual

908494

Daq API Command Reference 4.3-53