Load Oxford 12T magnet driver if it is enabled in the sics_config.ini file.
This commit is contained in:
@ -503,3 +503,11 @@ proc add_oxmag { name IP PORT {interval 5} } {
|
||||
interval $interval
|
||||
}]
|
||||
}
|
||||
|
||||
if { [ info exists ::config_dict ] && [ dict get $::config_dict 12tmagnet enabled ] } {
|
||||
set IP [dict get $::config_dict 12tmagnet ip]
|
||||
set PORT [dict get $::config_dict 12tmagnet port]
|
||||
set NAME [dict get $::config_dict 12tmagnet name]
|
||||
puts "MAGNET: add_oxmag $NAME $IP $PORT"
|
||||
add_oxmag $NAME $IP $PORT
|
||||
}
|
||||
|
Reference in New Issue
Block a user