tree: 94a54c17ee3d77977300a75b2d323a464c3e2195 [path history] [tgz]
  1. guybrush_r0_pacs_mainsmt.py
  2. guybrush_r0_pacs_mainsmt_gpio.csv
  3. guybrush_r0_pacs_minismt.py
  4. GuybrushProto0_RailMapping.csv
  5. pac19xx.py
  6. pac_utils.py
  7. pacman.py
  8. README.md
contrib/power_measurement/pacman/README.md

Prereqs

  • sudo pip3 install pandas plotly pyftdi

Usage

  • pacman.py

    • -s|--single Take a single voltage, current, power measurement of all rails
    • -t|--time Length of time to capture in seconds
    • -c|--config PAC address and configuration file used by servod
    • -O|--output Directory for output logs
    • -m|--mapping Rail hierachy mapping used to generate sunburst plot
    • -g|--gpio PAC address to GPIO Rail mapping
  • Example: sudo ./pacman.py -t 10 -c guybrush_r0_pacs_mainsmt.py

Output

  • This should dump three files into the output directory. By default the output directory is ./Data/
  1. accumulatorData.csv which is a csv of the accumulators
  2. timeLog.csv which has the time series logs
  3. report.html which has four plots inside of it
    • Accumulator table with a summary of results
    • Sunburst diagram of power consumption. You can click on it to browse where power is going
    • Box plots of statistics of time series captures (this is analogous to the servod measurements)
    • Time series plot of the instantaneous measurement. Double click on the rail in the legend to hide all others.