# 1 "/root/.topspin-BladeEpu/local_acqu/MP110F2B/12/lists/pp/hsqcbietgpjcsp_ps.2_neo"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "/root/.topspin-BladeEpu/local_acqu/MP110F2B/12/lists/pp/hsqcbietgpjcsp_ps.2_neo"
;hsqcbietgpjcsp.2
;avance-version (11/08/10)
;HSQC
;2D H-1/X correlation via double inept transfer
;for determination of 1J CH via splitting in F1
;phase sensitive using Echo/Antiecho-TPPI gradient selection
;with decoupling during acquisition
;using trim pulses in inept transfer
;using shaped pulses for inversion and refocussing on f2 - channel
;using G_BIRD(r) to remove long range couplings in t1
;with J scaling in t1
;
;(J. Furrer, M. John, H. Kessler & B. Luy
;   J. Biomol. NMR. 37, 231-243 (2007))
;
;$CLASS=HighRes
;$DIM=2D
;$TYPE=
;$SUBTYPE=
;$COMMENT=


# 1 "/root/.topspin-BladeEpu/local_acqu/MP110F2B/12/lists/pp/Avance.incl" 1
;Avance4.incl
;   for AV 4
;
;avance-version (16/08/18)
;
;$CLASS=Common Incl
;$COMMENT=


# 19 "/root/.topspin-BladeEpu/local_acqu/MP110F2B/12/lists/pp/Avance.incl"
;setrtp0 denotes TimingController


# 50 "/root/.topspin-BladeEpu/local_acqu/MP110F2B/12/lists/pp/Avance.incl"
# 51 "/root/.topspin-BladeEpu/local_acqu/MP110F2B/12/lists/pp/Avance.incl"


# 63 "/root/.topspin-BladeEpu/local_acqu/MP110F2B/12/lists/pp/Avance.incl"
# 89 "/root/.topspin-BladeEpu/local_acqu/MP110F2B/12/lists/pp/Avance.incl"
# 90 "/root/.topspin-BladeEpu/local_acqu/MP110F2B/12/lists/pp/Avance.incl"


# 123 "/root/.topspin-BladeEpu/local_acqu/MP110F2B/12/lists/pp/Avance.incl"
;#define LOWQ
;#define HIGHQ


;#define MIX_UP
;#define MIX_DOWN
# 136 "/root/.topspin-BladeEpu/local_acqu/MP110F2B/12/lists/pp/Avance.incl"
;$Id:$
# 24 "/root/.topspin-BladeEpu/local_acqu/MP110F2B/12/lists/pp/hsqcbietgpjcsp_ps.2_neo" 2

# 1 "/root/.topspin-BladeEpu/local_acqu/MP110F2B/12/lists/pp/Grad.incl" 1
;Grad4.incl  -  include file for Gradient Spectroscopy
;   for AV 4
;
;avance-version (16/05/23)
;
;$CLASS=Common Incl
;$COMMENT=

# 26 "/root/.topspin-BladeEpu/local_acqu/MP110F2B/12/lists/pp/Grad.incl"
define list<gradient> EA=<EA>


# 30 "/root/.topspin-BladeEpu/local_acqu/MP110F2B/12/lists/pp/Grad.incl"
;$Id:$
# 25 "/root/.topspin-BladeEpu/local_acqu/MP110F2B/12/lists/pp/hsqcbietgpjcsp_ps.2_neo" 2

# 1 "/root/.topspin-BladeEpu/local_acqu/MP110F2B/12/lists/pp/Delay.incl" 1
;Delay.incl  -  include file for commonly used delays
;
;version (13/08/07)
;
;$CLASS=Common Incl
;$COMMENT=

# 9 "/root/.topspin-BladeEpu/local_acqu/MP110F2B/12/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 "/root/.topspin-BladeEpu/local_acqu/MP110F2B/12/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 "/root/.topspin-BladeEpu/local_acqu/MP110F2B/12/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 "/root/.topspin-BladeEpu/local_acqu/MP110F2B/12/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 "/root/.topspin-BladeEpu/local_acqu/MP110F2B/12/lists/pp/Delay.incl"
;$Id:$
# 26 "/root/.topspin-BladeEpu/local_acqu/MP110F2B/12/lists/pp/hsqcbietgpjcsp_ps.2_neo" 2

# 1 "/root/.topspin-BladeEpu/local_acqu/MP110F2B/12/lists/pp/De.incl" 1
;De4.incl
;   for AV4
;
;avance-version (15/08/13)
;
;$CLASS=Common Incl
;$COMMENT=

# 18 "/root/.topspin-BladeEpu/local_acqu/MP110F2B/12/lists/pp/De.incl"
;for multi receive


# 27 "/root/.topspin-BladeEpu/local_acqu/MP110F2B/12/lists/pp/De.incl"
;$Id:$
# 27 "/root/.topspin-BladeEpu/local_acqu/MP110F2B/12/lists/pp/hsqcbietgpjcsp_ps.2_neo" 2


"p2=p1*2"
"d2=1s/(cnst2*2)"
"d4=1s/(cnst2*4)"
"d11=30m" 
# 34 "/root/.topspin-BladeEpu/local_acqu/MP110F2B/12/lists/pp/hsqcbietgpjcsp_ps.2_neo"
"p29=300u"


"d0=3u"
"d20=3u"
# 40 "/root/.topspin-BladeEpu/local_acqu/MP110F2B/12/lists/pp/hsqcbietgpjcsp_ps.2_neo"
"in0=inf1/2"

"in20=in0*cnst16"

# 45 "/root/.topspin-BladeEpu/local_acqu/MP110F2B/12/lists/pp/hsqcbietgpjcsp_ps.2_neo"
"d62=aq/l0"
"d63=d62/2"


"l1=l0-1"
# 52 "/root/.topspin-BladeEpu/local_acqu/MP110F2B/12/lists/pp/hsqcbietgpjcsp_ps.2_neo"
"DELTA=p16+d16+d0*2+p2-p3*4/PI"
"DELTA1=d4-p16-d16-larger(p2,p14)/2-de-8u"
"DELTA2=d4-larger(p2,p14)/2"
"DELTA3=d2-p16-d16-larger(p2,p39)/2"
"DELTA4=d4-larger(p2,p14)/2-p1*2/PI" 
"DELTA5=d2-larger(p2,p14)/2"

"TAU=p39"

# 62 "/root/.topspin-BladeEpu/local_acqu/MP110F2B/12/lists/pp/hsqcbietgpjcsp_ps.2_neo"
"acqt0=0"
baseopt_echo


# 1 "mc_line 66 file /root/.topspin-BladeEpu/local_acqu/MP110F2B/12/lists/pp/hsqcbietgpjcsp_ps.2_neo exp. def. part of mc cmd. before ze"
; dimension 2D; AQ_mode  (F1) Echo-Antiecho
define delay MCWRK
define delay MCREST
define delay d0orig
"d0orig=d0"
define delay d20orig
"d20orig=d20"
define loopcounter t1loop
"t1loop=0"
define loopcounter ph1loop
"ph1loop=0"
define loopcounter F1CNT
"F1CNT = min( 2 , td1)"
define loopcounter ST1CNT
"ST1CNT = max( 1 , trunc(td1 / 2))"
"MCREST = d11 - d11"
"MCWRK = 0.076923*d11"
# 66 "/root/.topspin-BladeEpu/local_acqu/MP110F2B/12/lists/pp/hsqcbietgpjcsp_ps.2_neo"
1 ze
# 1 "mc_line 66 file /root/.topspin-BladeEpu/local_acqu/MP110F2B/12/lists/pp/hsqcbietgpjcsp_ps.2_neo exp. def. of mc cmd. after ze"
LBLAV, MCWRK
      "d0=d0orig + t1loop * in0 "
      "d20=d20orig + t1loop * in20 "
      "phval3 = (t1loop * 180)%360"
      MCWRK ip3 + phval3
      "phval6 = (t1loop * 180)%360"
      MCWRK ip6 + phval6
      "phval31 = (t1loop * 180)%360"
      MCWRK ip31 + phval31
      MCWRK
      "phval0 = ph1loop * 1"
      MCWRK setgrad EA
# 67 "/root/.topspin-BladeEpu/local_acqu/MP110F2B/12/lists/pp/hsqcbietgpjcsp_ps.2_neo"
  d11 pl12:f2
# 1 "mc_line 68 file /root/.topspin-BladeEpu/local_acqu/MP110F2B/12/lists/pp/hsqcbietgpjcsp_ps.2_neo exp. start label for mc cmd."
2 MCWRK  * 6 do:f2
LBLF1, MCWRK  * 6
LBLST1, MCWRK 
  MCREST
# 69 "/root/.topspin-BladeEpu/local_acqu/MP110F2B/12/lists/pp/hsqcbietgpjcsp_ps.2_neo"
  4u setrtp0^0 ctrlgrad 4047
  d1 pl1:f1
  50u setrtp0|0 ctrlgrad 0 
3 (p1 ph1)
  DELTA2
  4u
  (center (p2 ph1) (p14:sp3 ph6):f2 )
  4u
  DELTA2 pl2:f2
  p28 ph1
  4u
  (p1 ph8)
  
  (p3 ph3):f2
  d20 
  (p1 ph1)
  p16:gp3
  d16
  DELTA3
  (center (p2 ph1) (p39:sp4 ph1):f2 )
  DELTA3
  p16:gp3
  d16
  (p1 ph1)
  d20 
  d0
  (p2 ph1)
  d0
  p16:gp1*EA
  d16
  (p39:sp4 ph4):f2
  DELTA pl2:f2
  (p3 ph4):f2
# 103 "/root/.topspin-BladeEpu/local_acqu/MP110F2B/12/lists/pp/hsqcbietgpjcsp_ps.2_neo"
  (p1 ph1)
  DELTA4
  (center (p2 ph1) (p14:sp3 ph1):f2 )
  4u
  p16:gp2
  d16
  DELTA1 pl12:f2
  4u 
  4u cpd2:f2
  (de adc ph31 syrec) (1u 1u ph30:r):f1
  0.1u setrtp1|0
  
  0.1u setrtp1|26
  0.05u setrtp1^1
  d63
  0.05u setrtp1|1
  0.1u setrtp1^26

  10u do:f2
  p29:gp4
  d16
  TAU
  (p1 ph1)
  DELTA5
  4u
  (center (p2 ph2) (p39:sp4 ph1):f2 )
  4u
  DELTA5
  (p1 ph7)
  (p39:sp4 ph1):f2
  p29:gp4
  d16 pl12:f2
  20u
  p29:gp5
  d16
  4u
  (p2 ph1)
  4u
  p29:gp5
  d16
  10u cpd2:f2

4 0.1u setrtp1|26
  0.05u setrtp1^1
  d62
  0.05u setrtp1|1
  0.1u setrtp1^26
# 151 "/root/.topspin-BladeEpu/local_acqu/MP110F2B/12/lists/pp/hsqcbietgpjcsp_ps.2_neo"
  10u do:f2
  p29:gp4
  d16
  TAU
  (p1 ph1)
  DELTA5
  4u
  (center (p2 ph2) (p39:sp4 ph1):f2 )
  4u
  DELTA5
  (p1 ph7)
  (p39:sp4 ph1):f2
  p29:gp4
  d16 pl12:f2
  20u
  p29:gp5
  d16
  4u
  (p2 ph1)
  4u
  p29:gp5
  d16
  10u cpd2:f2

  lo to 4 times l1

  0.1u setrtp1|26
  0.05u setrtp1^1
  d62*2
  0.05u setrtp1|1
  0.1u setrtp1^26
# 183 "/root/.topspin-BladeEpu/local_acqu/MP110F2B/12/lists/pp/hsqcbietgpjcsp_ps.2_neo"
  rcyc=2

# 1 "mc_line 185 file /root/.topspin-BladeEpu/local_acqu/MP110F2B/12/lists/pp/hsqcbietgpjcsp_ps.2_neo exp. mc cmd. in line"
  MCWRK  do:f2 wr #0 if #0 zd 

  "ph1loop+=1 * (1 - kronecker_delta(1 , td1) )"
      "d0=d0orig + t1loop * in0 "
      "d20=d20orig + t1loop * in20 "
      "phval3 = (t1loop * 180)%360"
      MCWRK ip3 + phval3
      "phval6 = (t1loop * 180)%360"
      MCWRK ip6 + phval6
      "phval31 = (t1loop * 180)%360"
      MCWRK ip31 + phval31
      MCWRK
      "phval0 = ph1loop * 1"
      MCWRK setgrad EA
  lo to LBLF1 times F1CNT
  MCWRK 

  "t1loop+=1 * (1 - kronecker_delta(1 , td1) )"
      "d0=d0orig + t1loop * in0 "
      "d20=d20orig + t1loop * in20 "
      "phval3 = (t1loop * 180)%360"
      MCWRK ip3 + phval3
      "phval6 = (t1loop * 180)%360"
      MCWRK ip6 + phval6
      "phval31 = (t1loop * 180)%360"
      MCWRK ip31 + phval31
      MCWRK
      "phval0 = ph1loop * 1"
      MCWRK setgrad EA
  lo to LBLST1 times ST1CNT
  MCWRK 
  "t1loop=0"
  "ph1loop=0"
  MCWRK rf #0
  lo to LBLAV times tdav
# 187 "/root/.topspin-BladeEpu/local_acqu/MP110F2B/12/lists/pp/hsqcbietgpjcsp_ps.2_neo"

4u setrtp0^0 ctrlgrad 4047
exit
   
# 192 "/root/.topspin-BladeEpu/local_acqu/MP110F2B/12/lists/pp/hsqcbietgpjcsp_ps.2_neo"
ph1=0 
ph2=1
ph3=0 2
ph4=0 0 0 0 2 2 2 2
ph6=0
ph7=2
ph8=1 1 3 3
ph30=0
ph31=0 2 2 0 2 0 0 2


;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
;sp3: f2 channel - shaped pulse 180 degree
;sp4: f2 channel - shaped pulse (180degree refocussing)
;p1 : f1 channel -  90 degree high power pulse
;p2 : f1 channel - 180 degree high power pulse
;p3 : f2 channel -  90 degree high power pulse
;p14: f2 channel - 180 degree shaped pulse for inversion
;p16: homospoil/gradient pulse
;p28: f1 channel - trim pulse
;p39: f2 channel - 180 degree shaped pulse for refocussing
;                      Bip720,100,10.1 (160us at 600.13 MHz)
;d0 : incremented delay (2D)                         [3 usec]
;d1 : relaxation delay; 1-5 * T1
;d2 : 1/(2J)XH
;d4 : 1/(4J)XH
;d11: delay for disk I/O                             [30 msec]
;d16: delay for homospoil/gradient recovery
;d2 : incremented delay (2D)                         [3 usec]
;cnst2: = J(XH)
;cnst16: = J(scale) factor
;inf1: 1/SW(X) = 2 * DW(X)
;in0: 1/(2 * SW(X)) = DW(X)
;nd0: 2
;in20: = in0*cnst16
;NS: 1 * n
;DS: >= 16
;td1: number of experiments
;FnMODE: echo-antiecho
;cpd2: decoupling according to sequence defined by cpdprg2
;pcpd2: f2 channel - 90 degree pulse for decoupling sequence
# 237 "/root/.topspin-BladeEpu/local_acqu/MP110F2B/12/lists/pp/hsqcbietgpjcsp_ps.2_neo"
;for z-only gradients:
;gpz1: 80%
;gpz2: 20.1% for C-13
;gpz3: 11%
;gpz4: 3%
;gpz5: 5%

;use gradient files:   
;gpnam1: SMSQ10.100
;gpnam2: SMSQ10.100
;gpnam3: SMSQ10.100
;gpnam4: SMSQ10.50
;gpnam5: SMSQ10.50

# 253 "/root/.topspin-BladeEpu/local_acqu/MP110F2B/12/lists/pp/hsqcbietgpjcsp_ps.2_neo"
;$Id: hsqcbietgpjcsp.2,v 1.1.2.2 2011/09/09 10:45:25 ber Exp $
