# File: hr_me_ve_v01.src
#
program "%Z% MODULE: %M% RELEASE: %R%.%L% CREATED: %G% %U%"
source "/mdisw/cfl/flight/src/hr_me_ve_v01.src"
descr "Loads IP queue instructions"
#=======================================================
#
#
#; FILE:    hr_me_ve.ips
#; PURPOSE: Make a full disk magnetogram and average dopplergram a
#;	   downlink the extracted dopplergram and extract magnetogram
#; HISTORY: 27-Oct-97 by M.Morrison
#
#QPROG_HR_ME_VE::
#
#    BRANCHEQ R3072 10 &DONE					;don't do anything with frame 10
tcblock mbipmacl 0x05E5    0x01AE 0x0C00 0x000A 0x05FE 
#								;the processing at frame 9 takes so long
#								;that when it returns from the "HR_MVL30"
#								;subroutine call, the frame number has changed!
#
#    CALLQUE  $QSR_HR_MVL30					;do all of the work
tcblock mbipmacl 0x05E9    0x01F8 0x1663 
#    BRANCHLT R3072 9 &DONE					;don't do anything unless frame 9 
tcblock mbipmacl 0x05EB    0x01B8 0x0C00 0x0009 0x05FE 
#
#    COPYRD2D $IPRL_EXTRACT_64K $IPRL_EXTRACT_PARAM 6            ;
tcblock mbipmacl 0x05EF    0x0144 0x145B 0x1173 0x0006 
#    CALLQUE  $QSR_STD_EFMT_VEL		;---- Extract from velocity
tcblock mbipmacl 0x05F3    0x01F8 0x1842 
#    CALLQUE  $QSR_STD_EFMT_MAG		;---- Extract from magnetogram
tcblock mbipmacl 0x05F5    0x01F8 0x185A 
#
#    ;---- Downlink the two observables
#    SETREGS  $IPRL_DL_PARAM 2 0x9000 0x6800 			;downlink vel and 
tcblock mbipmacl 0x05F7    0x01B2 0x11D0 0x0002 0x9000 \
                                0x6800 
#    CALLQUE  $QSR_DL_2PAGE					;0.6 sec
tcblock mbipmacl 0x05FC    0x01F8 0x0DA5 
#
#DONE:
#    END
tcblock mbipmacl 0x05FE    0x01FC 
#=======================================================
#
return
#
#=======================================================
