Add radio buttons to wombat sics_config.ini for sample stage motor configurations.
This commit is contained in:
@ -107,6 +107,20 @@ set move_count 10
|
|||||||
# 3: Oxford magnet sample stick
|
# 3: Oxford magnet sample stick
|
||||||
set axis_config 0
|
set axis_config 0
|
||||||
|
|
||||||
|
if { [ info exists ::config_dict ] } {
|
||||||
|
if {[ dict get $::config_dict normal_sample_stage enabled ] } {
|
||||||
|
set axis_config 0
|
||||||
|
} elseif {[ dict get $::config_dict eularian_cradle enabled ] } {
|
||||||
|
set axis_config 1
|
||||||
|
} elseif {[ dict get $::config_dict small_omega enabled ] } {
|
||||||
|
set axis_config 2
|
||||||
|
} elseif {[ dict get $::config_dict 12tmagnet_sample_insert enabled ] } {
|
||||||
|
set axis_config 3
|
||||||
|
} else {
|
||||||
|
set axis_config 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
switch $axis_config {
|
switch $axis_config {
|
||||||
0 {
|
0 {
|
||||||
set sample_stage_rotate "som"
|
set sample_stage_rotate "som"
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
cascade = 12tmagnet,12tmagnet_sample_insert,mercury_scipi
|
cascade = 12tmagnet,12tmagnet_sample_insert,mercury_scipi
|
||||||
enabled = False
|
enabled = False
|
||||||
group = 0setup
|
group = 0setup
|
||||||
|
onifoff = normal_sample_stage
|
||||||
|
|
||||||
[12tmagnet]
|
[12tmagnet]
|
||||||
desc = "12 Tesla Oxford Magnet"
|
desc = "12 Tesla Oxford Magnet"
|
||||||
@ -91,10 +92,33 @@ port = 7020
|
|||||||
tol = 2.0
|
tol = 2.0
|
||||||
terminator = \r
|
terminator = \r
|
||||||
|
|
||||||
[12tmagnet_sample_insert]
|
[normal_sample_stage]
|
||||||
desc = "REVIEW THIS -> som will be redefined as the sample insert rotation. Sample stage will be renamed to somss"
|
desc = "This is the default sample stage configuration with xy translation and phi and chi tilt stages"
|
||||||
|
enabled = True
|
||||||
|
group = motors
|
||||||
|
offifon = eularian_cradle,small_omega,12tmagnet_sample_insert
|
||||||
|
radio=samstage
|
||||||
|
|
||||||
|
[eularian_cradle]
|
||||||
|
desc = "Load the Eulerian cradle configuration"
|
||||||
enabled = False
|
enabled = False
|
||||||
group = motors
|
group = motors
|
||||||
|
offifon = normal_sample_stage,small_omega,12tmagnet_sample_insert
|
||||||
|
radio=samstage
|
||||||
|
|
||||||
|
[small_omega]
|
||||||
|
desc = "Load the small omega configuration"
|
||||||
|
enabled = False
|
||||||
|
group = motors
|
||||||
|
offifon = normal_sample_stage,eularian_cradle,12tmagnet_sample_insert
|
||||||
|
radio=samstage
|
||||||
|
|
||||||
|
[12tmagnet_sample_insert]
|
||||||
|
desc = "som will be redefined as the magnet sample insert rotation. Sample stage will be renamed to somss"
|
||||||
|
enabled = False
|
||||||
|
group = motors
|
||||||
|
offifon = normal_sample_stage,eularian_cradle,small_omega
|
||||||
|
radio=samstage
|
||||||
|
|
||||||
[west4100]
|
[west4100]
|
||||||
desc = "tc1: Blue furnace temperature controller"
|
desc = "tc1: Blue furnace temperature controller"
|
||||||
|
Reference in New Issue
Block a user