Changeset 10752 for trunk/FACT++


Ignore:
Timestamp:
05/19/11 08:56:39 (14 years ago)
Author:
tbretz
Message:
Connected output lines of FTM, enable/disable pixel and some first FAD stuff.
Location:
trunk/FACT++/gui
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/gui/MainWindow.cc

    r10737 r10752  
    224224}
    225225
    226 void MainWindow::on_fPixelEnable_stateChanged(bool b)
    227 {
    228     if (fInHandler)
    229         return;
    230 
    231     const uint16_t idx = fPixelIdx->value();
    232 
    233     const uint8_t d[3] = { uint8_t(idx&0xff), uint8_t(idx>>8), !b };
    234 
    235     Dim::SendCommand("FTM_CONTROL/DISABLE_PIXEL", d);
    236 }
    237 
    238 void MainWindow::on_fEnableTrigger_stateChanged(bool b)
    239 {
    240     if (!fInHandler)
    241         Dim::SendCommand("FTM_CONTROL/ENABLE_TRIGGER", b);
    242 }
    243 
    244 void MainWindow::on_fEnableExt1_stateChanged(bool b)
    245 {
    246     if (!fInHandler)
    247         Dim::SendCommand("FTM_CONTROL/ENABLE_EXT1", b);
    248 }
    249 
    250 void MainWindow::on_fEnableExt2_stateChanged(bool b)
    251 {
    252     if (!fInHandler)
    253         Dim::SendCommand("FTM_CONTROL/ENABLE_EXT2", b);
    254 }
    255 
    256 void MainWindow::on_fEnableTimeMarker_stateChanged(bool b)
    257 {
    258     if (!fInHandler)
    259         Dim::SendCommand("FTM_CONTROL/ENABLE_TIM", b);
    260 }
    261 
    262 void MainWindow::on_fEnableVeto_stateChanged(bool b)
    263 {
    264     if (!fInHandler)
    265         Dim::SendCommand("FTM_CONTROL/ENABLE_VETO", b);
     226void MainWindow::on_fPixelEnable_stateChanged(int b)
     227{
     228    cout << "PIXEL: " << fPixelIdx->value() << " " << b << endl;
     229    if (!fInHandler)
     230        Dim::SendCommand(b==Qt::Unchecked ?
     231                         "FTM_CONTROL/DISABLE_PIXEL" : "FTM_CONTROL/ENABLE_PIXEL",
     232                         uint16_t(fPixelIdx->value()));
     233}
     234
     235void MainWindow::on_fEnableTrigger_stateChanged(int b)
     236{
     237    if (!fInHandler)
     238        Dim::SendCommand("FTM_CONTROL/ENABLE_TRIGGER", b==Qt::Checked);
     239}
     240
     241void MainWindow::on_fEnableExt1_stateChanged(int b)
     242{
     243    if (!fInHandler)
     244        Dim::SendCommand("FTM_CONTROL/ENABLE_EXT1", b==Qt::Checked);
     245}
     246
     247void MainWindow::on_fEnableExt2_stateChanged(int b)
     248{
     249    if (!fInHandler)
     250        Dim::SendCommand("FTM_CONTROL/ENABLE_EXT2", b==Qt::Checked);
     251}
     252
     253void MainWindow::on_fEnableClockCond_stateChanged(int b)
     254{
     255    if (!fInHandler)
     256        Dim::SendCommand("FTM_CONTROL/ENABLE_CLOCK_CONDITIONER", b==Qt::Checked);
     257}
     258
     259void MainWindow::on_fEnableVeto_stateChanged(int b)
     260{
     261    if (!fInHandler)
     262        Dim::SendCommand("FTM_CONTROL/ENABLE_VETO", b==Qt::Checked);
    266263}
    267264
     
    307304    SelectTab("FTUs");
    308305}
     306
     307void MainWindow::on_fStatusFADLed_clicked()
     308{
     309    SelectTab("FAD");
     310}
  • trunk/FACT++/gui/MainWindow.h

    r10736 r10752  
    3434    void on_fStatusFTULed_clicked();
    3535    void on_fStatusFTMLed_clicked();
     36    void on_fStatusFADLed_clicked();
    3637    void on_fStatusLoggerLed_clicked();
    3738    void on_fStatusChatLed_clicked();
     
    4344
    4445    // Tab: FTM
    45     void on_fEnableTrigger_stateChanged(bool);
    46     void on_fEnableExt1_stateChanged(bool);
    47     void on_fEnableExt2_stateChanged(bool);
    48     void on_fEnableTimeMarker_stateChanged(bool);
    49     void on_fEnableVeto_stateChanged(bool);
     46    void on_fEnableTrigger_stateChanged(int);
     47    void on_fEnableExt1_stateChanged(int);
     48    void on_fEnableExt2_stateChanged(int);
     49    void on_fEnableClockCond_stateChanged(int);
     50    void on_fEnableVeto_stateChanged(int);
    5051
    5152    void on_fTriggerSeqPed_valueChanged(int)   { SetTriggerSequence(); }
     
    7980
    8081    // Tab: Rates
    81     void on_fThresholdVal_valueChanged(int v);
     82    void on_fPixelEnable_stateChanged(int);
     83    void on_fThresholdVal_valueChanged(int);
    8284    virtual void on_fThresholdIdx_valueChanged(int) { }
    8385    virtual void on_fPixelIdx_valueChanged(int) { }
    84     void on_fPixelEnable_stateChanged(bool);
     86
     87    virtual void on_fRatePatch1_valueChanged(int) { }
     88    virtual void on_fRatePatch2_valueChanged(int) { }
     89    virtual void on_fRateBoard1_valueChanged(int) { }
     90    virtual void on_fRateBoard2_valueChanged(int) { }
    8591
    8692    // Tab: Chat
Note: See TracChangeset for help on using the changeset viewer.