Changeset 10984 for fact/tools/Edd


Ignore:
Timestamp:
06/10/11 15:02:24 (14 years ago)
Author:
ogrimm
Message:
Edd allows to set plot update rate
File:
1 edited

Legend:

Unmodified
Added
Removed
  • fact/tools/Edd/Edd.cc

    r10928 r10984  
    77EddLineDisplay changes its background colour in case it display
    88a DIM status service
     9
     10Note: Currently no limit to number of points in plot, can result in out of memory condition.
    911
    1012============================================================ */
     
    5557  AddTrace(0,0,0);
    5658
     59  // Update interval
     60  Timer->setInterval(100);
    5761  SetActive(true);
    5862}
     
    334338
    335339//
    336 // Environment page
     340// Environment page (For M0, server was called ARDUINO)
    337341//
    338342TP_Environment::TP_Environment() {
     
    342346
    343347  // Status display
    344   EddLineDisplay *Line = new EddLineDisplay("ARDUINO/Message");
    345   Line->setMaximumWidth(200);
    346   Layout->addWidget(Line, 0, 0, 1, 2);     
    347 
    348   // Generate plot and data displays
     348  EddLineDisplay *Line = new EddLineDisplay("FSCctrl/Message");
     349  Line->setMaximumWidth(300);
     350  Layout->addWidget(Line, 0, 0, 1, 4);     
     351
     352  Line = new EddLineDisplay("FSCctrl/Time");
     353  Layout->addWidget(Line, 0, 5, 1, 2);     
     354
     355  // Temperatures
    349356  EddPlot *Plot = new EddPlot();
    350   for (int i=0; i<10; i++) {
    351     Line = new EddLineDisplay("ARDUINO/Data", i);
    352     Layout->addWidget(Line, i%5+1, i/5, 1, 1);
    353     Plot->AddService("ARDUINO/Data", i);
    354   }
    355   Layout->addWidget(Plot, 0, 2, 9, 7);     
     357  for (int i=0; i<64; i++) {
     358    Line = new EddLineDisplay("FSCctrl/Temperature", i);
     359    Line->setMaximumWidth(50);
     360    Layout->addWidget(Line, i/8+1, i%8);
     361    Plot->AddService("FSCctrl/Temperature", i);
     362  }
     363  Layout->addWidget(Plot, 0, 10, 22, 15);     
     364
     365  // Voltages and currents
     366  for (int i=0; i<40; i++) {
     367    Line = new EddLineDisplay("FSCctrl/Voltage", i);
     368    Line->setMaximumWidth(50);
     369    Layout->addWidget(Line, i/8+10, i%8);
     370
     371    Line = new EddLineDisplay("FSCctrl/Current", i);
     372    Line->setMaximumWidth(50);
     373    Layout->addWidget(Line, i/8+16, i%8);
     374  }
    356375
    357376  // Night sky monitor
    358377  Line = new EddLineDisplay("SQM/Message");
    359   Line->setMaximumWidth(200);
    360   Layout->addWidget(Line, 6, 0, 1, 2);     
     378  Line->setMaximumWidth(300);
     379  Layout->addWidget(Line, 22, 0, 1, 4);     
    361380
    362381  Line = new EddLineDisplay("SQM/NSB");
    363   Layout->addWidget(Line, 7, 0, 1, 1);         
     382  Layout->addWidget(Line, 22, 5, 1, 2);         
    364383}
    365384
     
    872891  TabWidget->addTab(new TP_Bias, "Bias");
    873892  TabWidget->addTab(new TP_Feedback, "Feedback");
    874   TabWidget->addTab(new TP_Environment, "Environment");
     893  TabWidget->addTab(new TP_Environment, "FSC/SQM");
    875894  TabWidget->addTab(new TP_Evidence, "Evidence");
    876895
Note: See TracChangeset for help on using the changeset viewer.