# 1 "/opt/topspin3.2/exp/stan/nmr/lists/pp/user/hsqc15N.tsri"
;hsqc15N.tsri
;v. 1.2.0
;rh 0812 @ tsri

;S. Mori et al, JMR B108, 94-98 (1995)

;carrier positions [ppm]: 1H 4.7, 13C 110, 15N 118
# 9 "/opt/topspin3.2/exp/stan/nmr/lists/pp/user/hsqc15N.tsri"
;ZGOPTNS: -Ddec13C for 13C decoupling

;pl1   : power for 1H
;pl2   : power for 13C
;pl3   : power for 15N
;pl13  : power for 15N waltz16 decoupling

;p1    : 90 degree hard pulse 1H
;p3    : 90 degree hard pulse 13C
;p4    : 180 degree hard pulse 13C (225d for 5/600)
;p5    : 90 degree hard pulse 15N
;pcpd3 : 90 deg cpd-pulse 15N (waltz16,160u)
# 22 "/opt/topspin3.2/exp/stan/nmr/lists/pp/user/hsqc15N.tsri"
;cpdprg3: waltz16

;p21   : 500u (Gradient in first INEPT)
;p22   : 500u (Gradient for z-filter)
;p23   : 1m   (Gradient for second INEPT)

;gpz1  : 19%
;gpz2  : 30%
;gpz3  : 65%
# 32 "/opt/topspin3.2/exp/stan/nmr/lists/pp/user/hsqc15N.tsri"
;gpnam1: SINE.32
;gpnam2: SINE.32
;gpnam3: SINE.32

;d1    : relaxation delay
;d2    : INEPT delay (~2.7m)
;d5    : delay for 3-9-19=1/(Hz between nulls)

;in0   : 1/(2 SW) (Hz)
# 42 "/opt/topspin3.2/exp/stan/nmr/lists/pp/user/hsqc15N.tsri"
;cnst4 : p4/p3 ratio (~2.5 for <700 Mhz)

# 1 "/opt/topspin3.2/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/exp/stan/nmr/lists/pp/Avance.incl"
;$Id: Avance3.incl,v 1.9.8.3 2013/08/30 09:44:49 ber Exp $
# 44 "/opt/topspin3.2/exp/stan/nmr/lists/pp/user/hsqc15N.tsri" 2

# 1 "/opt/topspin3.2/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/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/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/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/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/exp/stan/nmr/lists/pp/Delay.incl"
;$Id: Delay.incl,v 1.13.8.2 2013/08/30 09:44:49 ber Exp $
# 45 "/opt/topspin3.2/exp/stan/nmr/lists/pp/user/hsqc15N.tsri" 2


;#define 1
# 53 "/opt/topspin3.2/exp/stan/nmr/lists/pp/user/hsqc15N.tsri"
"in0=inf1/2"

"p2=p1*2"
"p4=p3*cnst4"
"p6=p5*2"

# 60 "/opt/topspin3.2/exp/stan/nmr/lists/pp/user/hsqc15N.tsri"
"d0=in0/2-p5*2/3.14159-(p3+p4/2 + 1.5u)"


# 65 "/opt/topspin3.2/exp/stan/nmr/lists/pp/user/hsqc15N.tsri"
"d25=d5/2-p5"

"TAU1=d2-p21-210u"                     
"TAU2=d2-(p23+210u+p1*2.3846+d5*2.5)"   

# 1 "mc_line 70 file /opt/topspin3.2/exp/stan/nmr/lists/pp/user/hsqc15N.tsri exp. def. part of mc cmd. before ze"
define delay MCWRK
define delay MCREST
define loopcounter ST1CNT
"ST1CNT = td1 / 2"
"MCREST = 1m - 1m"
"MCWRK = 0.333333*1m"

    dccorr
# 70 "/opt/topspin3.2/exp/stan/nmr/lists/pp/user/hsqc15N.tsri"
1 10u ze
# 1 "mc_line 70 file /opt/topspin3.2/exp/stan/nmr/lists/pp/user/hsqc15N.tsri exp. def. of mc cmd. after ze"
# 71 "/opt/topspin3.2/exp/stan/nmr/lists/pp/user/hsqc15N.tsri"
# 1 "mc_line 71 file /opt/topspin3.2/exp/stan/nmr/lists/pp/user/hsqc15N.tsri exp. start label for mc cmd."
2 MCWRK 
LBLSTS1, MCWRK 
LBLF1, MCWRK
  MCREST
# 72 "/opt/topspin3.2/exp/stan/nmr/lists/pp/user/hsqc15N.tsri"
  10u do:f3
  d1 
  10u pl1:f1 
  10u pl2:f2
  10u pl3:f3 
  10u setnmr3|0
;----------------------------------------first INEPT
  (p1 ph20):f1
  10u p21:gp1 200u
  TAU1	       
  (center(p2 ph21):f1 (p6 ph20):f3) 
  10u p21:gp1 200u
  TAU1
  (p1 ph21):f1
  10u p22:gp2 200u
;----------------------------------------15N evolution
 (p5 ph1):f3 
  d0 
# 91 "/opt/topspin3.2/exp/stan/nmr/lists/pp/user/hsqc15N.tsri"
  (refalign (p2 ph23):f1 center (p3 ph23 1.5u p4 ph20 1.5u p3 ph23):f2)


# 95 "/opt/topspin3.2/exp/stan/nmr/lists/pp/user/hsqc15N.tsri"
  d0 
  (p5 ph20):f3
  10u p22:gp2 200u
;----------------------------------------second INEPT
  (p1 ph22):f1 
  10u p23:gp3 200u
  TAU2
  (p1*0.2308 ph21 d5 p1*0.6923 ph21 d5 p1*1.4615 ph21):f1 
  (d25 p6 ph1 d25):f3
  (p1*1.4615 ph23 d5 p1*0.6923 ph23 d5 p1*0.2308 ph23):f1 
  10u p23:gp3 200u
  TAU2 pl13:f3 setnmr3^0
;----------------------------------------acquisition
  go=2 ph31 cpd3:f3
# 1 "mc_line 109 file /opt/topspin3.2/exp/stan/nmr/lists/pp/user/hsqc15N.tsri exp. mc cmd. in line"
  MCWRK  do:f3 wr #0 if #0 zd ip1
  lo to LBLSTS1 times 2
  MCWRK id0
  lo to LBLF1 times ST1CNT
  MCWRK
# 110 "/opt/topspin3.2/exp/stan/nmr/lists/pp/user/hsqc15N.tsri"
10u do:f1
10u do:f2
10u do:f3
10u setnmr3^0
exit

ph1 =0 2

ph20=0
ph21=1
ph22=2
ph23=3
# 123 "/opt/topspin3.2/exp/stan/nmr/lists/pp/user/hsqc15N.tsri"
ph31=2 0

;rh 0705 (v. 1.0.0)
;rh 0206 (v. 1.1.0) 15N evolution element was modified 
;rh 0812 (v. 1.2.0) added comments, made it topspin 3.1 compatible.
