# 1 "/root/.topspin-BladeEpu/local_acqu/ppDirs/L-PROSY.NH_wvm"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "/root/.topspin-BladeEpu/local_acqu/ppDirs/L-PROSY.NH_wvm"
;L-PROSY.NH_wvm
;avance-version
;L-PROSY-NH with WaveMaker 
;
;$CLASS=HighRes
;$DIM=2D
;$TYPE=
;$SUBTYPE=
;$COMMENT=

prosol relations=<triple>

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


# 19 "/root/.topspin-BladeEpu/local_acqu/ppDirs/Avance.incl"
;setrtp0 denotes TimingController


# 50 "/root/.topspin-BladeEpu/local_acqu/ppDirs/Avance.incl"
# 51 "/root/.topspin-BladeEpu/local_acqu/ppDirs/Avance.incl"


# 63 "/root/.topspin-BladeEpu/local_acqu/ppDirs/Avance.incl"
# 89 "/root/.topspin-BladeEpu/local_acqu/ppDirs/Avance.incl"
# 90 "/root/.topspin-BladeEpu/local_acqu/ppDirs/Avance.incl"


# 123 "/root/.topspin-BladeEpu/local_acqu/ppDirs/Avance.incl"
;#define LOWQ
;#define HIGHQ


;#define MIX_UP
;#define MIX_DOWN
# 136 "/root/.topspin-BladeEpu/local_acqu/ppDirs/Avance.incl"
;$Id: Avance4.incl,v 1.11 2016/11/11 13:43:39 ber Exp $
# 14 "/root/.topspin-BladeEpu/local_acqu/ppDirs/L-PROSY.NH_wvm" 2

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

# 26 "/root/.topspin-BladeEpu/local_acqu/ppDirs/Grad.incl"
define list<gradient> EA=<EA>


# 30 "/root/.topspin-BladeEpu/local_acqu/ppDirs/Grad.incl"
;$Id: Grad4.incl,v 1.6 2016/11/11 13:43:39 ber Exp $
# 15 "/root/.topspin-BladeEpu/local_acqu/ppDirs/L-PROSY.NH_wvm" 2

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

# 9 "/root/.topspin-BladeEpu/local_acqu/ppDirs/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/ppDirs/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/ppDirs/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/ppDirs/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/ppDirs/Delay.incl"
;$Id: Delay.incl,v 1.15 2013/08/30 09:42:06 ber Exp $
# 16 "/root/.topspin-BladeEpu/local_acqu/ppDirs/L-PROSY.NH_wvm" 2


"d11=30m"
"d12=20u"
"d21=1s/(cnst4*2)"
# 23 "/root/.topspin-BladeEpu/local_acqu/ppDirs/L-PROSY.NH_wvm"
"in0=inf1"
"d0=in0/2-p21*4/3.1415"

"DELTA1=d21-p16-d16-p43*0.53"
"DELTA2=d8-p16-d16"
"TAU=p1*2/3.1416-(p0-p27)*0.231-de+46u"

;"plw16=plw3*(pow((p21/pcpd3),2))"
# 34 "/root/.topspin-BladeEpu/local_acqu/ppDirs/L-PROSY.NH_wvm"
"acqt0=0"
baseopt_echo

# 1 "mc_line 37 file /root/.topspin-BladeEpu/local_acqu/ppDirs/L-PROSY.NH_wvm exp. def. part of mc cmd. before ze"
; dimension 2D; AQ_mode  (F1) States-TPPI
define delay MCWRK
define delay MCREST
define delay d0orig
"d0orig=d0"
define loopcounter t1loop
"t1loop=0"
define loopcounter ph1loop
"ph1loop=0"
define loopcounter ST1CNT
"ST1CNT = trunc(td1 / 2)"
"MCREST = d11 - d11"
"MCWRK = 0.200000*d11"
# 37 "/root/.topspin-BladeEpu/local_acqu/ppDirs/L-PROSY.NH_wvm"
1 ze
# 1 "mc_line 37 file /root/.topspin-BladeEpu/local_acqu/ppDirs/L-PROSY.NH_wvm exp. def. of mc cmd. after ze"
LBLAV, MCWRK
      "d0=d0orig + t1loop * in0 "
      "phval2 = (ph1loop % 4) * 90"
      MCWRK ip2 + phval2
# 38 "/root/.topspin-BladeEpu/local_acqu/ppDirs/L-PROSY.NH_wvm"
  d11 pl12:f2 pl16:f3
# 1 "mc_line 39 file /root/.topspin-BladeEpu/local_acqu/ppDirs/L-PROSY.NH_wvm exp. start label for mc cmd."
2 MCWRK  * 2
LBLF1, MCWRK  * 2
LBLST1, MCWRK
  MCREST
# 40 "/root/.topspin-BladeEpu/local_acqu/ppDirs/L-PROSY.NH_wvm"

  4u do:f2 do:f3
# 45 "/root/.topspin-BladeEpu/local_acqu/ppDirs/L-PROSY.NH_wvm"
  4u setrtp0^0 ctrlgrad 4047
  d1
3 d12 pl3:f3
  50u setrtp0|0 ctrlgrad 0

  p16:gp0
  d16

4  (p43:sp28 ph1):f1
  p19:gp1
  d16
# 57 "/root/.topspin-BladeEpu/local_acqu/ppDirs/L-PROSY.NH_wvm"
  (center (p42:sp26 ph5):f1 (DELTA1 p21 ph2 d0 p21 ph6 DELTA1):f3 )
  p19:gp1
  d16

  (p43:sp29 ph5):f1
 DELTA2
  p16:gp2
  d16
  lo to 4 times l1

  (p11:sp1 ph3:r):f1
  4u pl1:f1
  p1 ph4
  50u pl18:f1
# 72 "/root/.topspin-BladeEpu/local_acqu/ppDirs/L-PROSY.NH_wvm"
  p16:gp3
  d16
  (p27*0.231 ph4 d19*2 p27*0.692 ph4 d19*2 p27*1.462 ph4 d19*2 p27*1.462 ph3 d19*2 p27*0.692 ph3 d19*2 p0*0.231 ph3 TAU)
  p16:gp3
  d16 pl12:f2
  4u pl16:f3

  4u ctrlgrad 4047 

  go=2 ph31 cpd3:f3 cpd2:f2
# 1 "mc_line 82 file /root/.topspin-BladeEpu/local_acqu/ppDirs/L-PROSY.NH_wvm exp. mc cmd. in line"
  MCWRK  do:f2 do:f3 wr #0 if #0 zd 

  "ph1loop+=1"
      "d0=d0orig + t1loop * in0 "
      "phval2 = (ph1loop % 4) * 90"
      MCWRK ip2 + phval2
  lo to LBLF1 times 2
  MCWRK 

  "t1loop+=1"
      "d0=d0orig + t1loop * in0 "
      "phval2 = (ph1loop % 4) * 90"
      MCWRK ip2 + phval2
  lo to LBLST1 times ST1CNT
  MCWRK 
  "t1loop=0"
  "ph1loop=0"
  MCWRK rf #0
  lo to LBLAV times tdav
# 88 "/root/.topspin-BladeEpu/local_acqu/ppDirs/L-PROSY.NH_wvm"
  4u setrtp0^0 ctrlgrad 4047
exit
# 91 "/root/.topspin-BladeEpu/local_acqu/ppDirs/L-PROSY.NH_wvm"
ph0=0 
ph1=0 
ph2=0 2
ph3=2 2 0 0
ph4=0 0 2 2
ph5=0
ph6=0 0 2 2
;ph31=2 0 0 2
ph31=2 0 2 0 

;p0 : f1 channel -  90 degree pulse at pl18
;                      use for fine adjustment
;pl3 : f3 channel - power level for pulse (default)
;pl26: f3 channel - power level for CPD/BB decoupling (low power)
;p27: f1 channel -  90 degree pulse at pl18
;sp26: f1 channel - shaped pulse 180 degree (Reburp.1000)
;sp28: f1 channel - shaped pulse  90 degree (PC-5 pulse)
;sp29: f1 channel - shaped pulse  90 degree (PC-5 pulse)
;                   for time reversed pulse

;p16: homospoil/gradient pulse                       [1 msec]
;p21: f3 channel -  90 degree high power pulse
;p42: f1 channel - 180 degree shaped pulse for refocussing
;                      Reburp.1000               (1.4 ms at 600.13 MHz)
;p43: f1 channel -  90 degree shaped pulse for excitation
;                      pc-5 (1.4 ms at 600.13 MHz)
# 118 "/root/.topspin-BladeEpu/local_acqu/ppDirs/L-PROSY.NH_wvm"
;d0 : incremented delay (2D) = in0/2-p21*4/3.1415
;d1 : relaxation delay
;d8 : NOE mixing time
;d11: delay for disk I/O                             [30 msec]
;d12: delay for power switching                      [20 usec]
;d16: delay for homospoil/gradient recovery
;d19: delay for binomial water suppression (1-2*DW)
;     d19 = (1/(2*d)), d = distance of next null (in Hz)
;d21 : 1/(2J)NH
;l1  : number of L-PROSY loops
;cnst4: = J(NH)
;cnst43: compensation of chemical shift evolution during p43 [0.69]
;           Eburp2.1000: 0.69
;cnst52: scaling factor for p42 to compensate for transition region [1.436]
;           Reburp.1000: 1.426
;cnst53: scaling factor for p43 to compensate for transition region [1]
;           Eburp2.1000: 1.000
;cnst54: H(N) chemical shift (offset, in ppm)
;cnst55: H(N) bandwidth (in ppm)
;inf1: 1/SW(N) = 2 * DW(N)
;in0: 1/ SW(N) = 2 * DW(N)
;nd0: 1
;ns: 2 * n
;ds: 16
;aq: <= 50 msec
;td1: number of experiments
;FnMODE: States-TPPI, TPPI, States or QSEC
;cpd3: decoupling according to sequence defined by cpdprg3: garp4.p62
;pcpd3: f3 channel - 90 degree pulse for decoupling sequence
;          use pulse of >= 350 usec

; ~~~~~~~~~~~~~~~~ WaveMaker Shapes ~~~~~~~~~~~~~~~~~
;sp26:wvm: reburp(cnst55 ppm, cnst54 ppm)
;sp28:wvm: pc5(cnst55 ppm, cnst54 ppm)
;sp29:wvm: pc5(cnst55 ppm, cnst54 ppm; TR=1)
;sp1:wvm:sinc90: sinc90(1 ms)
;sp31(pl12, p63):wvm:wudec:f2 cawurst-20(160 ppm, 1.4 ms; L2H, Q=3)
;sp15(pl16, p62):wvm:wudecN:f3 cawurst-20(40 ppm, 2.0 ms; Q=3)

;for z-only gradients:
;gpz0: 45%
;gpz1: 11%
;gpz2:  70%
;gpz3:  31%
# 163 "/root/.topspin-BladeEpu/local_acqu/ppDirs/L-PROSY.NH_wvm"
;use gradient files:
;gpnam0: SMSQ10.100
;gpnam1: SMSQ10.100
;gpnam2: SMSQ10.100
;gpnam3: SMSQ10.100

                                          ;preprocessor-flags-start
;CALC_SP: for calculation of all bandselective Proton pulses based on cnst54 and cnst55
;             option -DCALC_SP (eda: ZGOPTNS)
;1: for 13C/15N labeled sample
;             option -DLABEL_CN (eda: ZGOPTNS)

                                          ;preprocessor-flags-end
# 178 "/root/.topspin-BladeEpu/local_acqu/ppDirs/L-PROSY.NH_wvm"
;Processing

;PHC0(F1): 90
;PHC1(F1): -180
;FCOR(F1): 1
