-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path19F_offresR1p.cw
187 lines (164 loc) · 4.13 KB
/
19F_offresR1p.cw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
/*
|
| Off-resonance 19F R1rho as pseudo-3D
|
| with different SL lenghts read in via VPLIST
| and different SL offsets read in via FQ1LIST
|
| VPLIST: spin lock lengths
| FQ1LIST: offsets in Hz
|
| adiabatic_flg: use adiabatic passage to SL angle
|
| Pseudo-3D
| Jan Overbeck
| 2020
|
*/
/*--------------------------------
; Parameters to set
; -------------------------------*/
;p11: adiabatic pulse length, 4ms
;spnam4: adiabatic ramp = tanhtan90
;sp4: adiabatic ramp power, = pl25
;pl25: spin lock power, = sp4
;p32: spin lock lenght Tex
;VPLIST: list of spin lock lengths
;FQ1LIST: list of spin lock offsets !bf hz!
#include <Avance.incl>
#include <Grad.incl>
define list<pulse> plength = <$VPLIST>
define list<frequency> fqlist = <$FQ1LIST>
"p2=p1*2"
"d11=30m"
"l2=0"
"l3=0"
"cnst28=fqlist"
#ifndef adiabatic_flg
;"p3 = p1*pow(10,(10*log10(plw1) - 10*log10(plw25))/20)" ;90 degree SL pulse
"p6 = ((cnst28)/((1/(p3*4))))" ; spin lock offset / spin lock power
;"p6 = (0/((1/(p3*4))))" ; spin lock offset / spin lock power
"p7 = atan(p6)" ; arc tan from this ratio = angle in rad
"p8 = p7*360/(2*PI)" ; angle in degree
"p4 = p1*(1-p8/90)" ; new pulse length
#endif
aqseq 312
1 ze
/*--------------------------------
; calculate hard pulse for offset
; dependent tip angle theta
; -------------------------------*/
2 30m
"p32=plength[l2]"
"cnst28=fqlist"
"p6 = ((cnst28)/((1/(p3*4))))" ; spin lock offset / spin lock power
"p7 = atan(p6)" ; arc tan from this ratio = angle in rad
"p8 = p7*360/(2*PI)" ; angle in degree
"p4 = p1*(1-p8/90)" ; new pulse length
; --------------------------------
/* ---------------------------------
; relaxation delay (d1)
; --------------------------------*/
d1
/* ---------------------------------
; heating compensation
; --------------------------------*/
"p31=p30-p32*pow(10,(pl30 - list1)/10)"
if "p31 > 0.0"
{
1u fq=cnst30(bf ppm):f1
1u pl30:f1
(p31 ph1):f1
}
/* ---------------------------------
; transfer to theta and SL
; --------------------------------*/
/* cycle above&below plane */
1u fq=cnst29(bf ppm):f1
1u pl1:f1
p1 ph7
p1 ph8
if "p32 == 0.0"
{
30m
#ifdef adiabatic_flg
1u fq=fqlist:f1
1u pl25:f1
(p11:sp4(currentpower) ph1):f1
#else
1u fq=cnst29(bf ppm):f1
1u pl1:f1
p4 ph4
#endif
}
else {
30m
#ifdef adiabatic_flg
1u fq=fqlist:f1
1u pl25:f1
(p11:sp4(currentpower) ph6):f1
#else
1u fq=cnst29(bf ppm):f1
1u pl1:f1
p4 ph4
#endif
1u fq=fqlist:f1
1u pl25:f1
(p32 ph6):f1 ; <-- this is the Spin Lock
}
; ----------------------------------
/* ---------------------------------
; transfer back to z
; --------------------------------*/
#ifdef adiabatic_flg
1u fq=fqlist:f1
1u pl25:f1
(p11:sp5(currentpower) ph6):f1
#else
1u fq=cnst29(bf ppm):f1
1u pl1:f1
p4 ph5
#endif
; ----------------------------------
/* cycle above&below plane BACK */
1u fq=cnst29(bf ppm):f1
1u pl1:f1
p1 ph7
p1 ph8
/* ---------------------------------
; anti-ringing
; --------------------------------*/
1u pl1:f1
1u fq=cnst29(bf ppm):f1
p1 ph1
d13
p1 ph2
d13
p1 ph3
; ----------------------------------
; 4u BLKGRAD
go=2 ph31
30m mc #0 to 2
F1QF(calclc(l2,1))
F2QF(calclist(fqlist,1))
exit
ph1=0
ph2=2 2 0 0
ph3=0 0 0 0 2 2 2 2 1 1 1 1 3 3 3 3
ph4=1 3
ph5=3 1
ph6=0 2
ph7=0
ph8=0 2
ph31=0 0 2 2 2 2 0 0 1 1 3 3 3 3 1 1
;pl1 : f1 channel - power level for pulse (default)
;p1 : f1 channel - 90 degree high power pulse
;p2 : f1 channel - 180 degree high power pulse
;p3 : f1 channel - 90 degree pulse at spin lock power
;d1 : relaxation delay; 1-5 * T1
;d11: delay for disk I/O [30 msec]
;ns: 16 * n
;ds: > 128
;p30: maximum SL length used for highest power (for T compensation)
;pl30: maximum SL power (for T compensation)
;cnst30: offset of SL in ppm (for T compensation) [250 ppm]