Changeset 183 for trunk/3DEES/UserInterface.tcl
- Timestamp:
- Jan 24, 2014, 3:33:37 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/3DEES/UserInterface.tcl
r182 r183 96 96 variable inpCodes 97 97 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} 102 103 } 103 104 … … 504 505 trace add variable [myvar polar] write [myproc polar_update] 505 506 506 $config(1).chan_ 0_1 select507 $config(2).chan_ 0_2 select508 $config(3).chan_ 0_3 select509 $config(4).chan_ 0_4 select510 $config(5).chan_ 0_5 select511 $config(6).chan_2_ 1select507 $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 512 513 513 514 foreach {ch dummy} [array get adcCodes] { … … 536 537 foreach {osc title} $oscList { 537 538 set config($osc) [labelframe ${mux}.$osc -borderwidth 1 -relief sunken -text $title] 538 set column 1539 539 foreach {code input} $inpList { 540 set column [expr {$code + 1}] 540 541 label $config($osc).input_${input} -text " ${input}" 541 542 grid $config($osc).input_${input} -row 0 -column ${column} -sticky w 542 incr column543 543 } 544 544 foreach {ch id} $adcList { … … 552 552 } 553 553 } 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}] 556 556 grid $config($osc) -row ${row} -column ${column} -sticky news -padx 10 557 557 } … … 559 559 set config(key) [labelframe ${key}.frame -borderwidth 1 -relief sunken -text {legend}] 560 560 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 572 578 573 579 grid $config(key) -row 0 -column 0 -sticky news -padx 10 … … 603 609 grid columnconfigure $config(key) 2 -weight 1 604 610 grid columnconfigure $config(key) 3 -weight 1 611 grid columnconfigure $config(key) 4 -weight 1 612 grid columnconfigure $config(key) 5 -weight 1 605 613 606 614 … … 608 616 grid columnconfigure ${mux} 1 -weight 1 609 617 grid columnconfigure ${mux} 2 -weight 1 610 grid columnconfigure ${mux} 3 -weight 1611 grid columnconfigure ${mux} 4 -weight 1612 grid columnconfigure ${mux} 5 -weight 1613 618 } 614 619 … … 981 986 982 987 ${config}.thrs_check select 983 ${config}.thrs_field set 30988 ${config}.thrs_field set 60 984 989 } 985 990
Note:
See TracChangeset
for help on using the changeset viewer.