#!/bin/sh # Simultaneously, start testing RP's network connectivity, while # powering on MCH and RP using ~/power_strip/ scripts # Display power-on time TIMESTAMP_PRETTY=$(date '+%Y-%m-%d %H:%M:%S') echo "MCH powered on at $TIMESTAMP_PRETTY." # Power on MCH ./mch_start & # Wait 2 minutes before measurement sleep 120 # Get and plot Sayma data # (Assumption: numpy, matplotlib and scipy have been installed on local) # (Assumption: directory ./creotech-raw exists) # NOTE: Change the RP hostname and LV/HV arguments according to # which two channels you are measuring! ./get_and_plot_sayma_data creotech-raw creotech-1 1 creotech-1 2 creotech-1:LV,LV & # Wait 1 minute before powering off MCH and RP sleep 60 # Wait 30 seconds sleep 30 # Simultaneously power off MCH and RP # Display power-off time TIMESTAMP_PRETTY=$(date '+%Y-%m-%d %H:%M:%S') echo "MCH powered off at $TIMESTAMP_PRETTY." # Power off MCH ./mch_stop