# 1 "/nmrdata/nmrlib/pp/C_SOFAST_BIP"
;IBS_C_SOFAST
;avance-version (13/02/28)
;BB SOFAST HMQC2
;2D H-1/X correlation via heteronuclear zero and double quantum
;   coherence
;phase sensitive
;with decoupling during acquisition
;
;P.Schanda and B. Brutscher, J. Am. Chem. Soc. 127, 8014 (2005)
;
;$CLASS=IBS
;$DIM=2D
;$TYPE=
;$SUBTYPE=
;$COMMENT=

prosol relations=<IBS>

# 1 "/opt/topspin3.5pl7/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.5pl7/exp/stan/nmr/lists/pp/Avance.incl"
;$Id: Avance3.incl,v 1.10.2.2 2013/08/30 09:43:33 ber Exp $
# 19 "/nmrdata/nmrlib/pp/C_SOFAST_BIP" 2

# 1 "/opt/topspin3.5pl7/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.5pl7/exp/stan/nmr/lists/pp/Grad.incl"
define list<gradient> EA=<EA>


# 31 "/opt/topspin3.5pl7/exp/stan/nmr/lists/pp/Grad.incl"
;$Id: Grad2.incl,v 1.14 2012/01/31 17:49:21 ber Exp $
# 20 "/nmrdata/nmrlib/pp/C_SOFAST_BIP" 2

# 1 "/opt/topspin3.5pl7/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.5pl7/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.5pl7/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.5pl7/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.5pl7/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.5pl7/exp/stan/nmr/lists/pp/Delay.incl"
;$Id: Delay.incl,v 1.14.2.1 2013/08/30 09:43:33 ber Exp $
# 21 "/nmrdata/nmrlib/pp/C_SOFAST_BIP" 2


define delay dCH
# 25 "/nmrdata/nmrlib/pp/C_SOFAST_BIP"
"d11=30m"
"d12=20u"
"dCH=1s/(cnst4*2)"


# 33 "/nmrdata/nmrlib/pp/C_SOFAST_BIP"
"p41=7.2/(cnst2*bf1/1000000)" 
"spw25=plw1*(pow((cnst3/90.0)*(p1/p41)/0.125,2))" 
"spoff25=bf1*(cnst1/1000000)-o1"  
;"spoal25=0.5"

;"p42=4.875/(cnst2*bf1/1000000)" 
;"spw26=plw1*(pow((p1*2/p42)/0.0798,2))"   
;"spoff26=bf1*(cnst1/1000000)-o1" 
;"spoal26=0.5"

"p44 =p1*8.0"    
"spoff30=0.0" 
"spw30=plw1"  
# 49 "/nmrdata/nmrlib/pp/C_SOFAST_BIP"
"DELTA1=dCH-p16-d16-p41*0.52"
"DELTA2=p41*0.52-de-4u"


"in0=inf1/2"
"d0=inf1/4-p3*0.66-p44*0.5"
# 57 "/nmrdata/nmrlib/pp/C_SOFAST_BIP"
"acqt0=0"
baseopt_echo

# 1 "mc_line 60 file /nmrdata/nmrlib/pp/C_SOFAST_BIP 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 = td1 / 2"
"MCREST = d1 - d1"
"MCWRK = 0.200000*d1"

    dccorr
# 60 "/nmrdata/nmrlib/pp/C_SOFAST_BIP"
1 ze 
# 1 "mc_line 60 file /nmrdata/nmrlib/pp/C_SOFAST_BIP exp. def. of mc cmd. after ze"
LBLAV, MCWRK
      "d0=d0orig + t1loop * in0 "
      "phval3 = (ph1loop % 4) * 90"
      MCWRK ip3 + phval3
# 61 "/nmrdata/nmrlib/pp/C_SOFAST_BIP"
  d11 pl12:f2
# 1 "mc_line 62 file /nmrdata/nmrlib/pp/C_SOFAST_BIP exp. start label for mc cmd."
2 MCWRK  * 2 do:f2
LBLF1, MCWRK  * 2
LBLST1, MCWRK 
  MCREST
# 63 "/nmrdata/nmrlib/pp/C_SOFAST_BIP"
3 d12 pl2:f2
  50u setnmr3|0 setnmr0|34|32|33 ctrlgrad 0

  p16:gp2
  d16
# 69 "/nmrdata/nmrlib/pp/C_SOFAST_BIP"
  (p41:sp25 ph1):f1
  p16:gp1
  d16
  DELTA1
  (p3 ph3):f2 
  d0
  (p44:sp30 ph2):f1
  d0
  (p3 ph4):f2 
  DELTA1
  DELTA2
  p16:gp1
  d16 pl12:f2
  (p44:sp30 ph2):f1
  4u setnmr3^0 setnmr0^34^32^33 ctrlgrad 7
  go=2 ph31 cpd2:f2 
# 1 "mc_line 85 file /nmrdata/nmrlib/pp/C_SOFAST_BIP exp. mc cmd. in line"
  MCWRK  do:f2 wr #0 if #0 zd 

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

  "t1loop+=1"
      "d0=d0orig + t1loop * in0 "
      "phval3 = (ph1loop % 4) * 90"
      MCWRK ip3 + phval3
  lo to LBLST1 times ST1CNT
  MCWRK 
  "t1loop=0"
  "ph1loop=0"
  MCWRK rf #0
  lo to LBLAV times tdav
# 87 "/nmrdata/nmrlib/pp/C_SOFAST_BIP"
exit 
  

ph1=0 0 2 2
ph2=0 
ph3=0 2
ph4=0 0 0 0 2 2 2 2
ph31=0 2 2 0 2 0 0 2

# 97 "/nmrdata/nmrlib/pp/C_SOFAST_BIP"
;pl3 : f2 channel - power level for pulse (default)
;pl6: f2 channel - power level for CPD/BB decoupling (low power)
;PLW12: F2 channel-power level for CPD/BB decoupling


;sp23: f1 channel - shaped pulse 120 degree 
;                   (Pc9_4_120.1000)
;sp24: f1 channel - shaped pulse 180 degree (Rsnob.1000)
;p8 : f2 channel - 180 degree shaped pulse for inversion (adiabatic)
;p16: homospoil/gradient pulse                       [1 msec]
;p3: 13C -  90 degree high power pulse
;p61: 13C decoupling pulse,> 100us
;d0 : incremented delay (2D) = in0/2-p21*4/3.1415
;d1 : relaxation delay
;d11: delay for disk I/O                             [30 msec]
;d12: delay for power switching                      [20 usec]
;d16: delay for homospoil/gradient recovery
;dNH : 1/(2J)CH
;cnst4: = J(CH)
;cnst50: GammaB2/2PI
;cnst51: Decoupled BW with  GARP4
;cnst52: Decoupled BW with  WALTZ65
;cnst1: H(C) excitation frequency (in ppm)
;cnst2: H(C) excitation band width (in ppm)
;cnst3:  PC9 flip angle
;cnst41: Power change for PC9 pulse (dB)
;cnst42: Power change for REBURP pulse (dB)
;sp26: Reburp.1000
;sp25: Pc9_4_90.1000
# 127 "/nmrdata/nmrlib/pp/C_SOFAST_BIP"
;inf1: 1/SW(C) = 2 * DW(C)
;in0: 1/ SW(C) = 2 * DW(C)
;nd0: 1
;ns: 2 * n
;ds: 16
;aq: <= 50 msec
;td1: number of experiments
;FnMODE: States-TPPI, TPPI, States or QSEC
;cpd2: decoupling according to sequence defined by cpdprg3: garp4.p61
;pcpd2: f3 channel - 90 degree pulse for decoupling sequence
;          use pulse of >= 350 usec


;use gradient ratio:	gp 1 : gp 2
;			  11 :    7
# 144 "/nmrdata/nmrlib/pp/C_SOFAST_BIP"
;for z-only gradients:
;gpz1: 11%
;gpz2:  7%

;use gradient files:   
;gpnam1: SMSQ10.100
;gpnam2: SMSQ10.100

# 153 "/nmrdata/nmrlib/pp/C_SOFAST_BIP"
                                          ;preprocessor-flags-start
;LABEL_CN: for C-13 and N-15 labeled samples start experiment with
;             option -DLABEL_CN (eda: ZGOPTNS)
                                          ;preprocessor-flags-end


;Processing
# 161 "/nmrdata/nmrlib/pp/C_SOFAST_BIP"
;PHC0(F1): 90
;PHC1(F1): -180
;FCOR(F1): 1


# 167 "/nmrdata/nmrlib/pp/C_SOFAST_BIP"
;$Id: sfhmqcf3gpph,v 1.10.6.2 2013/03/08 15:13:06 ber Exp $
