Read Adc Diagnostics; Read Status Information; Adc Status Register - Ametek DN VR-608 Series User Manual

8-channel variable reluctance sensor interface for the powerdna cube and rack series chassis
Table of Contents

Advertisement

4.10.4 Read ADC
Diagnostics
//Read raw ADC data from channel pair.
double adcData[fifosize*2];
reader.Read(fifosize, &adcData, &numVals);
//Print ADC FIFO data.
for (i=0; i < numVals; i++){
std::cout << "Even: " << adcData[k*2];
std::cout << ", Odd: " << adcData[k*2+1] << std::endl;
}
//Read ADC status, used as a diagnostic to troubleshoot VR inputs
uInt32 sts;
reader.ReadADCStatus(&sts);
4.10.5 Read Status
Information
© Copyright 2024
United Electronic Industries, Inc.
You can read ADC voltage data for a channel pair. Data is returned for the even
and odd channels simultaneously. For example, a channel 0 reader will return
interleaved channel 0 and channel 1 data.
NOTE: The data returned is not calibrated (<1% error in hardware) and there is
no guarantee that it is gapless.
You can also read the ADC module's zero crossing detection status:
The status data is sticky; after you read the status, the status bits are cleared for
the pair. Therefore, you should only call ReadADCStatus() for either the even
or odd channel to avoid losing your data. Status bits are mapped as shown in
Table 4-7.
Table 4-7 ADC Status Register
Bit
20
Rising edge zero crossing was detected on the odd channel.
19
Falling edge zero crossing was detected on the odd channel.
18
Rising edge zero crossing was detected on the even channel.
17
Falling edge zero crossing was detected on the even channel.
16
Data is ready for both channels in the pair.
15...0
reserved
Additional status information can be read by using the CUeiVRReader methods
listed in Table 4-8.
February 2024
DNx-VR-608 Variable Reluctance Interface
Programming with the High-level API
Description
Chapter 4
39
www.ueidaq.com
508.921.4600

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dna-vr-608Dnr-vr-608Dnf-vr-608

Table of Contents