Measurement-computing Data Acquisition Systems rev.10.4 Instrukcja Użytkownika Strona 159

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 366
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 158
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
Przeglądanie stron 158
1 2 ... 154 155 156 157 158 159 160 161 162 163 164 ... 365 366

Komentarze do niniejszej Instrukcji

Brak uwag