Ignore:
Timestamp:
Jan 24, 2014, 3:33:37 PM (11 years ago)
Author:
demin
Message:

fix classifier and add bin number to osc mux

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/3DEES/UserInterface.tcl

    r182 r183  
    9696    variable inpCodes
    9797    array set inpCodes {
    98         0 {r}
    99         1 {c}
    100         2 {a}
    101         3 {f}
     98        0 {rs}
     99        1 {cs}
     100        2 {av}
     101        3 {af}
     102        4 {bn}
    102103    }
    103104
     
    504505        trace add variable [myvar polar] write [myproc polar_update]
    505506
    506         $config(1).chan_0_1 select
    507         $config(2).chan_0_2 select
    508         $config(3).chan_0_3 select
    509         $config(4).chan_0_4 select
    510         $config(5).chan_0_5 select
    511         $config(6).chan_2_1 select
     507        $config(1).chan_1_1 select
     508        $config(2).chan_1_2 select
     509        $config(3).chan_1_3 select
     510        $config(4).chan_1_4 select
     511        $config(5).chan_1_5 select
     512        $config(6).chan_2_4 select
    512513
    513514        foreach {ch dummy} [array get adcCodes] {
     
    536537        foreach {osc title} $oscList {
    537538            set config($osc) [labelframe ${mux}.$osc -borderwidth 1 -relief sunken -text $title]
    538             set column 1
    539539            foreach {code input} $inpList {
     540                set column [expr {$code + 1}]
    540541                label $config($osc).input_${input} -text " ${input}"
    541542                grid $config($osc).input_${input} -row 0 -column ${column} -sticky w
    542                 incr column
    543543            }
    544544            foreach {ch id} $adcList {
     
    552552                }
    553553            }
    554             set column [expr {($osc - 1) % 6}]
    555             set row [expr {($osc - 1) / 6}]
     554            set column [expr {($osc - 1) % 3}]
     555            set row [expr {($osc - 1) / 3}]
    556556            grid $config($osc) -row ${row} -column ${column} -sticky news -padx 10
    557557        }
     
    559559        set config(key) [labelframe ${key}.frame -borderwidth 1 -relief sunken -text {legend}]
    560560
    561         label $config(key).r -text "r - raw signal"
    562         grid $config(key).r -row 0 -column 0 -sticky news
    563 
    564         label $config(key).f -text "c - filtered and clipped signal"
    565         grid $config(key).f -row 0 -column 1 -sticky news
    566 
    567         label $config(key).d -text "a - amplitude"
    568         grid $config(key).d -row 0 -column 2 -sticky news
    569 
    570         label $config(key).c -text "f - amplitude flag"
    571         grid $config(key).c -row 0 -column 3 -sticky news
     561        label $config(key).rs -text "rs - raw signal"
     562        grid $config(key).rs -row 0 -column 0 -sticky news
     563
     564        label $config(key).cs -text "cs - filtered and clipped signal"
     565        grid $config(key).cs -row 0 -column 1 -sticky news
     566
     567        label $config(key).av -text "av - amplitude value"
     568        grid $config(key).av -row 0 -column 2 -sticky news
     569
     570        label $config(key).af -text "af - amplitude flag"
     571        grid $config(key).af -row 0 -column 3 -sticky news
     572
     573        label $config(key).bn -text "bn - bin number"
     574        grid $config(key).bn -row 0 -column 4 -sticky news
     575
     576        label $config(key).bf -text "bf - bin flag"
     577        grid $config(key).bf -row 0 -column 5 -sticky news
    572578
    573579        grid $config(key) -row 0 -column 0 -sticky news -padx 10
     
    603609        grid columnconfigure $config(key) 2 -weight 1
    604610        grid columnconfigure $config(key) 3 -weight 1
     611        grid columnconfigure $config(key) 4 -weight 1
     612        grid columnconfigure $config(key) 5 -weight 1
    605613
    606614
     
    608616        grid columnconfigure ${mux} 1 -weight 1
    609617        grid columnconfigure ${mux} 2 -weight 1
    610         grid columnconfigure ${mux} 3 -weight 1
    611         grid columnconfigure ${mux} 4 -weight 1
    612         grid columnconfigure ${mux} 5 -weight 1
    613618    }
    614619
     
    981986
    982987        ${config}.thrs_check select
    983         ${config}.thrs_field set 30
     988        ${config}.thrs_field set 60
    984989    }
    985990
Note: See TracChangeset for help on using the changeset viewer.