reset2
changeset 12 5e67754f6457
parent 4 fda11de1826e
equal deleted inserted replaced
11:c39e37d59638 12:5e67754f6457
     1 #!/usr/bin/expect -f
     1 #!/usr/bin/expect -f
     2 #======================================================================
     2 #======================================================================
     3 #                    R E S E T 2 
     3 #                    R E S E T 2 
     4 #                    doc: Mon Mar  8 02:57:35 2004
     4 #                    doc: Mon Mar  8 02:57:35 2004
     5 #                    dlm: Thu Aug 26 00:29:29 2010
     5 #                    dlm: Fri Jul  3 10:19:41 2020
     6 #                    (c) 2004 A.M. Thurnherr
     6 #                    (c) 2004 A.M. Thurnherr
     7 #                    uE-Info: 18 39 NIL 0 0 72 2 2 8 NIL ofnI
     7 #                    uE-Info: 15 0 NIL 0 0 72 2 2 8 NIL ofnI
     8 #======================================================================
     8 #======================================================================
     9 
     9 
    10 # HISTORY:
    10 # HISTORY:
    11 #  Mar  8, 2004: - created
    11 #  Mar  8, 2004: - created
    12 #  Nov 19, 2008: - added version
    12 #  Nov 19, 2008: - added version
    13 #  Aug 25, 2010: - DEFAULTS.expect -> CRUISE_SETUP.expect
    13 #  Aug 25, 2010: - DEFAULTS.expect -> CRUISE_SETUP.expect
    14 #		 - libBB.expect -> libRDI.expect
    14 #		 - libBB.expect -> libRDI.expect
       
    15 #  Jul  3, 2020: - expunged master/slave terminology
    15 
    16 
    16 log_user 0;
    17 log_user 0;
    17 
    18 
    18 regsub {dir1} [exec which dir1] {libRDI.expect} path;
    19 regsub {dir1} [exec which dir1] {libRDI.expect} path;
    19 source $path;
    20 source $path;
    24 spawn bbabble -ms $tty0 $tty1
    25 spawn bbabble -ms $tty0 $tty1
    25 wait_for_startup;
    26 wait_for_startup;
    26 reset_two_instruments;
    27 reset_two_instruments;
    27 
    28 
    28 send_user "\nPutting instruments to sleep..."
    29 send_user "\nPutting instruments to sleep..."
    29 select_master 0; put_to_sleep; select_slave; put_to_sleep;
    30 select_DL 0; put_to_sleep; select_UL; put_to_sleep;
    30 
    31 
    31 send_user "\nDone\n"
    32 send_user "\nDone\n"