author | A.M. Thurnherr <athurnherr@yahoo.com> |
Fri, 03 Jul 2020 10:25:08 -0400 | |
changeset 12 | 5e67754f6457 |
parent 4 | fda11de1826e |
permissions | -rwxr-xr-x |
0 | 1 |
#!/usr/bin/expect -f |
2 |
#====================================================================== |
|
3 |
# R E S E T 2 |
|
4 |
# doc: Mon Mar 8 02:57:35 2004 |
|
12
5e67754f6457
V1.6: no more master/slave terminology
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
4
diff
changeset
|
5 |
# dlm: Fri Jul 3 10:19:41 2020 |
0 | 6 |
# (c) 2004 A.M. Thurnherr |
12
5e67754f6457
V1.6: no more master/slave terminology
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
4
diff
changeset
|
7 |
# uE-Info: 15 0 NIL 0 0 72 2 2 8 NIL ofnI |
0 | 8 |
#====================================================================== |
9 |
||
10 |
# HISTORY: |
|
11 |
# Mar 8, 2004: - created |
|
12 |
# Nov 19, 2008: - added version |
|
4
fda11de1826e
version left on Poseidon at end of P403
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents:
0
diff
changeset
|
13 |
# Aug 25, 2010: - DEFAULTS.expect -> CRUISE_SETUP.expect |
fda11de1826e
version left on Poseidon at end of P403
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents:
0
diff
changeset
|
14 |
# - libBB.expect -> libRDI.expect |
12
5e67754f6457
V1.6: no more master/slave terminology
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
4
diff
changeset
|
15 |
# Jul 3, 2020: - expunged master/slave terminology |
0 | 16 |
|
17 |
log_user 0; |
|
18 |
||
4
fda11de1826e
version left on Poseidon at end of P403
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents:
0
diff
changeset
|
19 |
regsub {dir1} [exec which dir1] {libRDI.expect} path; |
0 | 20 |
source $path; |
4
fda11de1826e
version left on Poseidon at end of P403
A.M. Thurnherr <ant@ldeo.columbia.edu>
parents:
0
diff
changeset
|
21 |
source CRUISE_SETUP.expect; |
0 | 22 |
|
23 |
set_color; |
|
24 |
send_user "Connecting to instruments..." |
|
25 |
spawn bbabble -ms $tty0 $tty1 |
|
26 |
wait_for_startup; |
|
27 |
reset_two_instruments; |
|
28 |
||
29 |
send_user "\nPutting instruments to sleep..." |
|
12
5e67754f6457
V1.6: no more master/slave terminology
A.M. Thurnherr <athurnherr@yahoo.com>
parents:
4
diff
changeset
|
30 |
select_DL 0; put_to_sleep; select_UL; put_to_sleep; |
0 | 31 |
|
32 |
send_user "\nDone\n" |