# tacac   May 14/98
# This script runs the analysis program to perform  trace averages 
# based on the normalized locomotor activty in a waveform. 
# The average of frames occurring during the active period of a waveform 
# is created and saved. The average calculated during the inactive period is 
# appended to this file. QM is used to subtract the two frames and show 
# the difference. 

# In this version, the trace average obtained during the inactive 
# phase of the waveform is subtracted from that obtained during waveform 
# activity.

#USAGE: 
# 1. use analysis to set the analysis range and cycles in a waveform, 
# 2. choose this waveform for cycle selection (SCW),
# 3. set cycles in-phase delay and window
# 4. exit analysis saving the modified parameters.
# 5. run this script, eg. tacac mydata newdata bins_acive bins_inactive
analysis  <<!
mc


