SICS-587 (in progress) Put IP and PORT configuration in one file.

Platypus TODO hmm, environment, and devices like multimeters and the
sylvac.
This commit is contained in:
Ferdi Franceschini
2013-04-21 10:54:51 +10:00
parent 73ba1b0dba
commit 49e6a584c0
7 changed files with 152 additions and 74 deletions

View File

@@ -15,10 +15,19 @@ proc ::counter::isc_initialize {} {
variable isc_numchannels
variable isc_monitor_address
variable isc_portlist
if {0} {
variable isc_beam_monitor_list {MONITOR_1 MONITOR_2}
set isc_monitor_address "das1-[SplitReply [instrument]]"
set isc_portlist [list 30000 30001 30002 30003 30004 30005 30006 30007]
}
dict for {k v} $::MONITOR_HOSTPORT {
lappend monlist $k
lappend hostlist [dict get $v HOST]
lappend isc_portlist [dict get $v PORT]
}
variable isc_beam_monitor_list $monlist
set isc_monitor_address [lindex $hostlist 0]
set isc_numchannels [llength $isc_beam_monitor_list]
::counter::ic_initialize
} message ] {