Changeset 167 for trunk


Ignore:
Timestamp:
Feb 23, 2012, 2:01:29 PM (13 years ago)
Author:
demin
Message:

multiple GUI fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MultiChannelUSB/UserInterface.tcl

    r165 r167  
    438438        my set rate_val(inst) 0.0
    439439        my set rate_val(mean) 0.0
     440       
     441        ${config}.chan_frame.entr_value configure -text 0.0
     442
     443        ${config}.chan_frame.axisy_value configure -text 0.0
     444        ${config}.chan_frame.axisx_value configure -text 0.0
    440445
    441446#        my cntr_reset
     
    455460        $graph grid configure -hide no
    456461        $graph legend configure -hide yes
    457         $graph axis configure x -min 0 -max 4096
    458462
    459463        set config [frame ${master}.config -width 170]
     
    540544        grid columnconfigure ${config}.chan_frame 1 -weight 1
    541545
    542         # enable zooming
    543         Blt_ZoomStack $graph
    544 
    545546        my crosshairs $graph
    546547
     
    582583    HstDisplay instproc axis_update args {
    583584        my instvar axis graph
     585        $graph axis configure x -min 0 -max 4096
     586        Blt_ZoomStack $graph
    584587        if {$axis} {
    585588            $graph axis configure y -min 1 -max 1E10 -logscale yes
     
    657660
    658661    HstDisplay instproc cntr_reset {} {
    659         my instvar controller number after_handle
    660         my instvar cntr_val cntr_bak cntr_old yvec_bak yvec_old
     662        my instvar controller config number after_handle
     663        my instvar cntr_val cntr_bak cntr_old yvec_bak yvec_old rate_val
    661664
    662665        my cntr_stop
     
    672675        set yvec_old 0.0
    673676       
     677        set rate_val(inst) 0.0
     678        set rate_val(mean) 0.0
     679        ${config}.chan_frame.entr_value configure -text 0.0
     680
    674681        my acquire
    675682
     
    924931        my set recs_val 100
    925932        my set recs_bak 100
     933       
     934        ${config}.chan_frame.mean_value configure -text [format {%.2e} 0.0]
     935        ${config}.chan_frame.entr_value configure -text 0.0
     936       
     937        ${config}.chan_frame.axisy_value configure -text 0.0
     938        ${config}.chan_frame.axisx_value configure -text 0.0
    926939
    927940#        my cntr_reset
     
    941954        $graph grid configure -hide no
    942955        $graph legend configure -hide yes
    943         $graph axis configure x -min 0 -max 10000
    944956
    945957        set config [frame ${master}.config -width 170]
     
    10171029        grid columnconfigure ${config}.chan_frame 1 -weight 1
    10181030
    1019         # enable zooming
    1020         Blt_ZoomStack $graph
    1021 
    10221031        my crosshairs $graph
    10231032
     
    11591168        ${config}.reset configure -state active
    11601169
    1161         ${config}.start configure -state active
    11621170        ${config}.cntr_field configure -state normal
    11631171        ${config}.recs_field configure -state normal
     
    12531261    CntDisplay instproc axis_update args {
    12541262        my instvar axis graph
     1263        $graph axis configure x -min 0 -max 10000
     1264        Blt_ZoomStack $graph
    12551265        if {$axis} {
    12561266            $graph axis configure y -min 1 -max 1E5 -logscale yes
     
    13861396        trace add variable [myvar last] write [myproc last_update]
    13871397
    1388         ${config}.chan_frame.chan1_check select
    1389         ${config}.chan_frame.chan2_check select
    1390         ${config}.chan_frame.chan3_check select
    1391         ${config}.chan_frame.chan4_check select
    1392         ${config}.chan_frame.chan5_check select
    1393         ${config}.chan_frame.chan6_check select
     1398        for {set i 1} {$i <= 6} {incr i} {
     1399            ${config}.chan_frame.chan${i}_check select
     1400            ${config}.chan_frame.chan${i}_value configure -text 0.0
     1401        }
     1402        ${config}.chan_frame.axisx_value configure -text 0.0
    13941403
    13951404        ${config}.thrs_check select
Note: See TracChangeset for help on using the changeset viewer.