# 1 "/opt/topspin3.2_pl6/exp/stan/nmr/lists/pp/user/hmqcgpph19.x"
;hmqcgpph19.x
;written by Youlin Xia


;$CLASS=HighRes
;$DIM=3D
;$TYPE=
;$SUBTYPE=
;$COMMENT=
# 11 "/opt/topspin3.2_pl6/exp/stan/nmr/lists/pp/user/hmqcgpph19.x"
prosol relations=<triple>

# 1 "/opt/topspin3.2_pl6/exp/stan/nmr/lists/pp/Avance.incl" 1
;Avance3.incl
;   for AV III
;
;avance-version (13/06/17)
;
;$CLASS=HighRes Incl
;$COMMENT=

# 169 "/opt/topspin3.2_pl6/exp/stan/nmr/lists/pp/Avance.incl"
;$Id: Avance3.incl,v 1.9.8.3 2013/08/30 09:44:49 ber Exp $
# 13 "/opt/topspin3.2_pl6/exp/stan/nmr/lists/pp/user/hmqcgpph19.x" 2

# 1 "/opt/topspin3.2_pl6/exp/stan/nmr/lists/pp/Delay.incl" 1
;Delay.incl  -  include file for commonly used delays
;
;version (13/08/07)
;
;$CLASS=HighRes Incl
;$COMMENT=

# 9 "/opt/topspin3.2_pl6/exp/stan/nmr/lists/pp/Delay.incl"
;general delays

define delay DELTA
define delay DELTA1
define delay DELTA2
define delay DELTA3
define delay DELTA4
define delay DELTA5
define delay DELTA6
define delay DELTA7
define delay DELTA8
define delay DELTA9
define delay DELTA10
define delay DELTA11
define delay DELTA12
define delay DELTA13
define delay DELTA14
define delay DELTA15
define delay DELTA16

define delay TAU
define delay TAU1
define delay TAU2
define delay TAU3
define delay TAU4
define delay TAU5
define delay TAU6
define delay TAU7
define delay TAU8
define delay TAU9
# 40 "/opt/topspin3.2_pl6/exp/stan/nmr/lists/pp/Delay.incl"
define delay INCR1
define delay INCR2
define delay INCR3
define delay INCR4
define delay INCR5
define delay INCR6


;delays for centering pulses
# 50 "/opt/topspin3.2_pl6/exp/stan/nmr/lists/pp/Delay.incl"
define delay CEN_HN1
define delay CEN_HN2
define delay CEN_HN3
define delay CEN_HC1
define delay CEN_HC2
define delay CEN_HC3
define delay CEN_HC4
define delay CEN_HP1
define delay CEN_HP2
define delay CEN_CN1
define delay CEN_CN2
define delay CEN_CN3
define delay CEN_CN4
define delay CEN_CP1
define delay CEN_CP2


;loop counters
# 69 "/opt/topspin3.2_pl6/exp/stan/nmr/lists/pp/Delay.incl"
define loopcounter COUNTER
define loopcounter SCALEF
define loopcounter FACTOR1
define loopcounter FACTOR2
define loopcounter FACTOR3
define loopcounter FACTOR4
define loopcounter FACTOR5
define loopcounter FACTOR6


# 80 "/opt/topspin3.2_pl6/exp/stan/nmr/lists/pp/Delay.incl"
;$Id: Delay.incl,v 1.13.8.2 2013/08/30 09:44:49 ber Exp $
# 14 "/opt/topspin3.2_pl6/exp/stan/nmr/lists/pp/user/hmqcgpph19.x" 2

# 1 "/opt/topspin3.2_pl6/exp/stan/nmr/lists/pp/Grad.incl" 1
;Grad2.incl  -  include file for Gradient Spectroscopy
;   for TCU3
;
;avance-version (07/01/17)
;
;$CLASS=HighRes Incl
;$COMMENT=

# 27 "/opt/topspin3.2_pl6/exp/stan/nmr/lists/pp/Grad.incl"
define list<gradient> EA=<EA>


# 31 "/opt/topspin3.2_pl6/exp/stan/nmr/lists/pp/Grad.incl"
;$Id: Grad2.incl,v 1.13.8.1 2012/01/31 17:56:17 ber Exp $
# 15 "/opt/topspin3.2_pl6/exp/stan/nmr/lists/pp/user/hmqcgpph19.x" 2


"p4=p3*2"
"d11=30m"
"d13=4u"
"d14=3.7m"   ;for 13C
# 24 "/opt/topspin3.2_pl6/exp/stan/nmr/lists/pp/user/hmqcgpph19.x"
"d0=0u"
"in0 =inf1/2"


"DELTA8=p1*2.385*2+d19*10" 	;length of 3919 
"DELTA1=d14-p16-DELTA8/2+p3*2+d0" 	 
   
# 1 "mc_line 34 file /opt/topspin3.2_pl6/exp/stan/nmr/lists/pp/user/hmqcgpph19.x exp. def. part of mc cmd. before ze"
define delay MCWRK
define delay MCREST
define loopcounter ST1CNT
"ST1CNT = td1 / 2"
"MCREST = d11 - d11"
"MCWRK = 0.333333*d11"

    dccorr
# 34 "/opt/topspin3.2_pl6/exp/stan/nmr/lists/pp/user/hmqcgpph19.x"
# 34 "/opt/topspin3.2_pl6/exp/stan/nmr/lists/pp/user/hmqcgpph19.x"
1 d11 ze
# 1 "mc_line 34 file /opt/topspin3.2_pl6/exp/stan/nmr/lists/pp/user/hmqcgpph19.x exp. def. of mc cmd. after ze"
# 35 "/opt/topspin3.2_pl6/exp/stan/nmr/lists/pp/user/hmqcgpph19.x"
# 1 "mc_line 35 file /opt/topspin3.2_pl6/exp/stan/nmr/lists/pp/user/hmqcgpph19.x exp. start label for mc cmd."
2 MCWRK  do:f2
LBLSTS1, MCWRK 
LBLF1, MCWRK 
  MCREST
# 36 "/opt/topspin3.2_pl6/exp/stan/nmr/lists/pp/user/hmqcgpph19.x"
3 d1 pl1:f1 pl2:f2
  10u setnmr3|0 setnmr0|34|32|33 ctrlgrad 0

  "d21 = d0*2 - p3*0.637*2"
  "d36 = p3*2+d21"
 
  
  if "d21 < 0" goto lab2	        
     if "d36< DELTA8" goto lab4     
     "d38 = d14-p16" 
     goto lab5			        
lab4,			;case 3
      "d38 = d14-p16-DELTA8/2+d36/2"
      goto lab5
 
lab2,				;first increment
      "d21 = 0"	
      "d38 = DELTA1"	     

# 58 "/opt/topspin3.2_pl6/exp/stan/nmr/lists/pp/user/hmqcgpph19.x"
lab5,
  p16:gp1*0.8
  200u
  (p3 ph1):f2
  p16:gp1
  200u

  
  p1 ph1    		     
  4u
  p16:gp2       	     
  d38			     

  (center (p1*0.231 ph7 d19*2 p1*0.692 ph7 d19*2 p1*1.462 ph7 d19*2 p1*1.462 ph8 d19*2 p1*0.692 ph8 d19*2 p1*0.231 ph8):f1 (p3 ph5 d21 p3 ph6):f2)
# 73 "/opt/topspin3.2_pl6/exp/stan/nmr/lists/pp/user/hmqcgpph19.x"
  p16:gp2       	     
  d38			     
  4u  pl12:f2 setnmr3^0 setnmr0^34^32^33 ctrlgrad 7 
    
  go=2 ph31 cpd2:f2
# 1 "mc_line 78 file /opt/topspin3.2_pl6/exp/stan/nmr/lists/pp/user/hmqcgpph19.x exp. mc cmd. in line"
  MCWRK  do:f2 wr #0 if #0 zd ip5
  lo to LBLSTS1 times 2
  MCWRK id0
  lo to LBLF1 times ST1CNT
  MCWRK
# 80 "/opt/topspin3.2_pl6/exp/stan/nmr/lists/pp/user/hmqcgpph19.x"
exit


# 84 "/opt/topspin3.2_pl6/exp/stan/nmr/lists/pp/user/hmqcgpph19.x"
ph1 =0
ph2 =1
ph5 =0 2
ph6 =0 0 2 2
ph7 =0
ph8 =2

ph31=0 2 2 0

# 94 "/opt/topspin3.2_pl6/exp/stan/nmr/lists/pp/user/hmqcgpph19.x"
;pl1 : f1 channel - power level for pulse (default)
;pl2 : f2 channel - power level for pulse (default)
;pl12: f2 channel - power level for CPD/BB decoupling
;p1 : f1 channel -  90 degree high power pulse
;p2 : f1 channel - 180 degree high power pulse
;p3 : f2 channel -  90 degree high power pulse
;p4 : f2 channel - 180 degree high power pulse
;p16: homospoil/gradient pulse                         [1 msec]
;d0 : incremented delay (F1 in 3D)                     [3 usec]
;d1 : relaxation delay; 1-5 * T1
;d2 : 1/((2J)XH)
;d11: delay for disk I/O                               [30 msec]
;d13: short delay                                      [4 usec]
;d16: delay for homospoil/gradient recovery
;d19: delay for binomial water suppression
;     d19 = (1/(2*d)), d = distance of next null (in Hz)
;d21: run time delay given by the pulse sequence
;d36: run time delay given by the pulse sequence
;d38: run time delay given by the pulse sequence
;d39: run time delay given by the pulse sequence
;inf1: 1/SW(H) = 2 * DW(H)
;in0: 1/(2 * SW(H)) = DW(H)
;NS: 2 * n
;DS: 4*m
;td1: number of experiments in F1
;FnMODE: States-TPPI (or TPPI) in F1
;cpd2: decoupling according to sequence defined by cpdprg2
;pcpd2: f2 channel - 90 degree pulse for decoupling sequence


;for z-only gradients:
;gpz1: 20%
;gpz2: 60%
# 128 "/opt/topspin3.2_pl6/exp/stan/nmr/lists/pp/user/hmqcgpph19.x"
;use gradient files:   
;gpnam1: SINE.100
;gpnam2: SINE.100
