dir1
author A.M. Thurnherr <ant@ldeo.columbia.edu>
Fri, 07 Jan 2011 23:10:30 +0000
changeset 7 0373c17d8b57
parent 4 fda11de1826e
permissions -rwxr-xr-x
modified libRDI.expect to reliably wake up both instruments by making sure slave is woken up first

#!/usr/bin/expect -f
#======================================================================
#                    D I R 1 
#                    doc: Mon Mar  8 02:57:35 2004
#                    dlm: Thu Aug 26 00:28:15 2010
#                    (c) 2004 A.M. Thurnherr
#                    uE-Info: 14 1 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

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 instrument..."
spawn bbabble -ms $tty0;

wait_for_startup;
reset_instrument;

send_user "\n"; list_dir;

send_user "Putting instrument to sleep..."
put_to_sleep;

send_user "\nDone\n"