Changeset 11925 for trunk/FACT++/gui


Ignore:
Timestamp:
08/31/11 16:53:11 (13 years ago)
Author:
tbretz
Message:
Updated Bias control stuff, especially removed the sending of commands for the moment.
Location:
trunk/FACT++/gui
Files:
2 edited

Legend:

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

    r11883 r11925  
    567567void MainWindow::on_fBiasVoltDac_valueChanged(int val)
    568568{
    569     if (fInHandler)
    570         return;
    571 
     569    fBiasVolt->setValue(val*90/4096);
     570/*
    572571    if (fBiasApplyGlobal->isChecked())
    573572    {
     
    582581
    583582    const uint16_t dat[2] = { ihw, uint16_t(val) };
    584     Dim::SendCommand("BIAS_CONTROL/SET_CHANNEL_DAC", dat);
     583    Dim::SendCommand("BIAS_CONTROL/SET_CHANNEL_DAC", dat);*/
    585584}
    586585
     
    592591void MainWindow::on_fBiasApplyReference_clicked()
    593592{
    594     Dim::SendCommand("BIAS_CONTROL/APPLY_REFERENCE_VOLTAGE");
     593//    Dim::SendCommand("BIAS_CONTROL/APPLY_REFERENCE_VOLTAGE");
    595594}
    596595
    597596void MainWindow::on_fBiasSetToZero_clicked()
    598597{
    599     Dim::SendCommand("BIAS_CONTROL/SET_GLOBAL_DAC", uint16_t(0));
     598//    Dim::SendCommand("BIAS_CONTROL/SET_GLOBAL_DAC", uint16_t(0));
    600599}
    601600
    602601void MainWindow::on_fBiasReset_clicked()
    603602{
    604     Dim::SendCommand("BIAS_CONTROL/RESET");
    605 }
    606 
    607 void MainWindow::on_fBiasMin_valueChanged(int min)
    608 {
    609     fBiasCam->SetMin(min);
    610 }
    611 
    612 void MainWindow::on_fBiasMax_valueChanged(int max)
    613 {
    614     fBiasCam->SetMax(max);
     603//    Dim::SendCommand("BIAS_CONTROL/RESET");
     604}
     605
     606void MainWindow::on_fBiasVoltMin_valueChanged(int min)
     607{
     608    fBiasCamV->SetMin(min);
     609}
     610
     611void MainWindow::on_fBiasVoltMax_valueChanged(int max)
     612{
     613    fBiasCamV->SetMax(max);
     614}
     615
     616void MainWindow::on_fBiasCurrentMin_valueChanged(int min)
     617{
     618    fBiasCamA->SetMin(min);
     619}
     620
     621void MainWindow::on_fBiasCurrentMax_valueChanged(int max)
     622{
     623    fBiasCamA->SetMax(max);
    615624}
    616625
  • trunk/FACT++/gui/MainWindow.h

    r11883 r11925  
    165165    void on_fBiasVoltDac_valueChanged(int);
    166166
    167     void on_fBiasMin_valueChanged(int); // FIXME: Could be set as slot in the designer
    168     void on_fBiasMax_valueChanged(int); // FIXME: Could be set as slot in the designer
     167    void on_fBiasVoltMin_valueChanged(int); // FIXME: Could be set as slot in the designer
     168    void on_fBiasVoltMax_valueChanged(int); // FIXME: Could be set as slot in the designer
     169
     170    void on_fBiasCurrentMin_valueChanged(int); // FIXME: Could be set as slot in the designer
     171    void on_fBiasCurrentMax_valueChanged(int); // FIXME: Could be set as slot in the designer
    169172
    170173    void on_fBiasRequestStatus_clicked();
     
    172175    void on_fBiasSetToZero_clicked();
    173176    void on_fBiasReset_clicked();
     177
     178    virtual void on_fBiasDispRefVolt_stateChanged(int) = 0;
    174179
    175180    // Tab: Rates
Note: See TracChangeset for help on using the changeset viewer.