Depending on the selection of the configuration file (default: online.xml) one may wish to define certain aliases or define virtual motors. Here is one way how this can be achieved:
! ! this code is part of /online_dir/exp_ini.exp ! -------------------------------------------- ! ! here are the assignments for the default ! configuration file online.xml ! if compare( "online.xml", trnlnm( online_xml)) def vm1 def vm2 endif ! ! here are the assignments for 'online -tki -c online_micro.xml' ! if compare( "online_micro.xml", trnlnm( online_xml)) samy=mi_hyd_1 samr=mi_hyd_2 samx=mi_hyd_3 samz=mi_hyd_4 sampx=mi_pi2 sampy=mi_pi1 sampz=mi_pi3 endif ! ! here are the assignments for 'online -tki -c online_nano.xml' ! if compare( "online_nano.xml", trnlnm( online_xml)) samx=na_mot21 samz=na_mot22 samy=na_peg_1 samr=na_peg_2 sampx=na_pi2 sampy=na_pi1 sampz=na_pi3 endif