Quote:
Originally Posted by Gdeaver
Mr. Ross,
That spread sheet is exactly what our team wants to study and implement power management. Can you detail the programming set up to capture that data?
|
Here is the code that read the data into a 2d array (for buffering) in telopPeriodic and disabledPeriodic (java). The code to handle the buffering and writing the file periodically and handling exceptions was more code then reading the data from the pdp.
Code:
for (int i=0; i<16; i++) {
pdpArray[pdpLine][i] = pdp.getCurrent(i);
}
pdpArray[pdpLine][16] = pdp.getVoltage();
pdpArray[pdpLine][17] = pdp.getTemperature();