DNx-MUX-414 / DNR-MUX-418 1x3 Multiplexer Board
Chapter 2
14
Programming with the High-Level API
May 2019
www.ueidaq.com
508.921.4600
© Copyright 2019
United Electronic Industries, Inc.
2.6
Monitoring
Supply
Voltage,
Temperature
& Status
The MUX-414 / MUX-418 provides the diagnostic capability of monitoring
onboard supply voltages and temperature using an onboard ADC. Additionally,
you can also retrieve status.
To monitor diagnostic data, use the
ReadADC
method.
You can read up to 5 diagnostic channels:
•
ADC channel 0: <Reserved>
•
ADC channel 1: The 3.3 V supply in volts
•
ADC channel 2: The 2.5 V supply in volts
•
ADC channel 3: The temperature in degrees C
•
ADC channel 4: The status (uint32, see description in Section 2.7)
The following code shows how to read the voltage and temperature:
NOTE:
You can also retrieve status data with the
ReadStatus
method (see
// read all 5 values
double adcBuffer[5];
muxWriter.ReadADC(5, adcBuffer, NULL);
// print supplies and temp
for(int j = 1; j<4; j++)
{
std::cout << " adc" << j << "= " << adcBuffer[j];
}
std::cout << std::endl;