# !/bin/sh
#
# cycle_isus script
#
#  turns the isus and the bathyphotometer off
#  waits 60 seconds
#  then turns isus and bathyp back on 
#  using ts7500ctl
#
ts7500ctl --address=0x66 --poke16=0x0100 # direction = OUT
ts7500ctl --address=0x66 --poke16=0x0089 # OFF
echo "ISUS AND BATHYPHOTOMETER ARE  OFF"
echo "Waiting one minute"
#
# Wait loop
#
echo " "
echo .........x.........x.........x.........x.........x.........x
i=1
while [ "$i" -le 60 ]
  do
    echo -n .
    i=`expr $i + 1`
    sleep 1
  done
echo " "
#
# Turn isus and bathyp on
#
ts7500ctl --address=0x66 --poke16=0x0100 # direction = OUT
ts7500ctl --address=0x66 --poke16=0x0889 # ON
echo "ISUS AND BATHYPHOTOMETER ARE ON" 
