frappy.config automatically connects to running frappy servers

This commit is contained in:
l_samenv
2023-03-31 14:25:50 +02:00
parent 5b3e7b25cf
commit b819305088
3 changed files with 16 additions and 10 deletions

View File

@ -1,11 +1,11 @@
deviceDesc = SECoP test (version v1.0)
deviceDesc = FRAPPY history recorder, with He pump
set ::secop_version 4
makenv frappy_main -driver secop
#makenv frappy_stick -driver secop -port localhost:15201
#makenv frappy_addons -driver secop
#debug _secop
#dolater 0 _secop poll /secop 1 read test
foreach {service port} [exec frappy getports [result instrument]] {
makenv frappy_$service -driver secop -port localhost:$port
}
set hepump [silent undefined hval /cfg_env/_hepump]
if {$hepump ne "undefined"} {
makeHePump
}

View File

@ -2,6 +2,11 @@ deviceDesc = FRAPPY history recorder, with stick
set ::secop_version 4
makenv frappy_main -driver secop -port localhost:15101
makenv frappy_stick -driver secop -port localhost:15201
set ins [result instrument]
if {[string match "prep*" $ins]} {
set nr [string range $ins end end]
} else {
error "runs on prep0-9 only"
}
makenv frappy_main -driver secop -port localhost:1511$nr
makeHePump

View File

@ -57,6 +57,7 @@ ServerOption TelWord sealogin
allowexec [pwd]/plugin/safeplugin
allowexec ping
allowexec dig
allowexec frappy
definealias tem temperature