dir2
author A.M. Thurnherr <athurnherr@yahoo.com>
Fri, 03 Jul 2020 10:25:08 -0400
changeset 12 5e67754f6457
parent 5 f41d45fe7ae9
permissions -rwxr-xr-x
V1.6: no more master/slave terminology

#!/usr/bin/expect -f
#======================================================================
#                    D I R 2 
#                    doc: Mon Mar  8 02:57:35 2004
#                    dlm: Fri Jul  3 10:14:53 2020
#                    (c) 2004 A.M. Thurnherr
#                    uE-Info: 36 34 NIL 0 0 72 2 2 8 NIL ofnI
#======================================================================

# HISTORY:
#  Mar  8, 2004: - created
#  Nov 19, 2008: - added version
#  Aug 25, 2010: - DEFAULTS.expect -> CRUISE_SETUP.expect
#        	 - libBB.expect -> libRDI.expect
#  Jul  3, 2020: - expunged master/UL terminology

log_user 0;

regsub {dir1} [exec which dir1] {libRDI.expect} path;
source $path;
source CRUISE_SETUP.expect;

print_version;

set_color;
send_user "Connecting to instruments..."
spawn bbabble -ms $tty0 $tty1;

wait_for_startup;
reset_two_instruments;

select_DL 0; send_user "\n"; list_dir;
select_UL; send_user "\n"; list_dir;

send_user "\nPutting instruments to sleep..."
select_DL; put_to_sleep; select_UL; put_to_sleep;

send_user "\nDone\n"