# 1 "/opt/topspin3.2/exp/stan/nmr/lists/pp/satrect1"
;satrect1
;
;TS 3 / 08.09.2011
;
;
;saturation recovery T1 experiment
;written by STE, 28.11.2002
;pulse program is for 2D acquisition
;establish suitable vd list
;uses mc syntax, so that it can be used in 1D mode for set-up of 
;saturation pulse train
;
;Avance II+ version
;parameters:
;pl1 : X power level
;pl2 : =0W, not used
;pl12 : power level for H 90 and standard proton decoupling 
;pl13 : e.g. used in spinal64_13
;p1 : X 90 degree pulse
;d1 : recycle delay
;d20 : delay in saturation pulse train
;l20 : number of pulses in saturation pulse train, 0 if undesired
;vdlist : list containing tau delays
;pcpd2 : pulse length in decoupling sequence
;FnMode : QF
;
;
;$CLASS=Solids
;$DIM=pseudo 2D
;$TYPE=direct excitation
;$SUBTYPE=T1/T2
;$COMMENT=saturation recovery T1 experiment

"acqt0=-p1/2"

# 1 "mc_line 36 file /opt/topspin3.2/exp/stan/nmr/lists/pp/satrect1 exp. def. part of mc cmd. before ze"
define delay MCWRK
define delay MCREST
"MCREST = 10m - 10m"
"MCWRK = 0.500000*10m"

    dccorr
# 36 "/opt/topspin3.2/exp/stan/nmr/lists/pp/satrect1"
1 ze
# 1 "mc_line 36 file /opt/topspin3.2/exp/stan/nmr/lists/pp/satrect1 exp. def. of mc cmd. after ze"
# 37 "/opt/topspin3.2/exp/stan/nmr/lists/pp/satrect1"
# 1 "mc_line 37 file /opt/topspin3.2/exp/stan/nmr/lists/pp/satrect1 exp. start label for mc cmd."
2 MCWRK 
LBLF1, MCWRK
  MCREST
# 38 "/opt/topspin3.2/exp/stan/nmr/lists/pp/satrect1"
# 41 "/opt/topspin3.2/exp/stan/nmr/lists/pp/satrect1"
  d1

# 1 "/opt/topspin3.2/exp/stan/nmr/lists/pp/aq_prot.incl" 1
;aq_prot.incl
;avance-version (13/01/28)
;Test the rf on-time and duty cycle
;protect against too long acquisition time

;$CLASS=Solids INCL
;$COMMENT=protect against too long acquisition time
# 9 "/opt/topspin3.2/exp/stan/nmr/lists/pp/aq_prot.incl"
1m
if "aq < 50.1m" goto Passaq
2u 
print "acquisition time exceeds 50m limit!"
goto HaltAcqu
Passaq, 1m

;$Id: aq_prot.incl,v 1.2.18.4 2013/01/28 17:40:19 ber Exp $
# 43 "/opt/topspin3.2/exp/stan/nmr/lists/pp/satrect1" 2

			;allows max. 50 msec acquisition time, supervisor
			;may change  to max. 1s at less than 5 % duty cycle
			;and reduced decoupling field
3 d20
  (p1 pl1 ph4):f1
  lo to 3 times l20
  vd			;recovery delay
  (p1 pl1 ph1):f1
# 55 "/opt/topspin3.2/exp/stan/nmr/lists/pp/satrect1"
  go=2 ph31


# 1 "mc_line 59 file /opt/topspin3.2/exp/stan/nmr/lists/pp/satrect1 exp. mc cmd. in line"
  MCWRK  wr #0 if #0 zd ivd 
  lo to LBLF1 times td1
  MCWRK
# 60 "/opt/topspin3.2/exp/stan/nmr/lists/pp/satrect1"
# 60 "/opt/topspin3.2/exp/stan/nmr/lists/pp/satrect1"
HaltAcqu, 1m
exit

ph1= 0 0 2 2 1 1 3 3
ph4= 0
ph31= 0 0 2 2 1 1 3 3

;$id: $
