pulseprogram 38 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384
  1. # 1 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/RARE.ppg"
  2. ;*******************************************************************
  3. ;
  4. ; Copyright (c) 2019
  5. ; Bruker BioSpin MRI GmbH
  6. ; D-76275 Ettlingen, Germany
  7. ;
  8. ; All Rights Reserved
  9. ;
  10. ; a RARE imaging experiment
  11. ;
  12. ;*******************************************************************
  13. ;
  14. ;
  15. # 1 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/MRI.include" 1
  16. ;****************************************************************
  17. ;
  18. ; $Source$
  19. ;
  20. ; Copyright (c) 2006
  21. ; Bruker BioSpin MRI GmbH
  22. ; D-76275 Ettlingen, Germany
  23. ;
  24. ; All Rights Reserved
  25. ;
  26. ;;****************************************************************
  27. ;MRI.include
  28. # 1 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/Avance.incl" 1
  29. ;Avance3.incl
  30. ; for AV III
  31. ;
  32. ;avance-version (13/06/17)
  33. ;
  34. ;$CLASS=HighRes Incl
  35. ;$COMMENT=
  36. # 169 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/Avance.incl"
  37. ;$Id: Avance3.incl,v 1.9.6.1 2013/06/17 15:32:55 pfre Exp $
  38. # 14 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/MRI.include" 2
  39. define delay aqq
  40. define delay deparx
  41. define delay derxadc
  42. define delay rdepa
  43. # 21 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/MRI.include"
  44. "aqq=dw*td"
  45. "rdepa=de-depa"
  46. "deparx=depa-derx"
  47. "derxadc=derx-deadc"
  48. ; contents of De2.incl - usage for different hardware versions to
  49. ; be checked - intermediate solution to support Jobs
  50. define delay rde1
  51. # 31 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/MRI.include"
  52. "rde1=de-de1"
  53. # 44 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/MRI.include"
  54. ; end of contents of De2.incl
  55. # 65 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/MRI.include"
  56. # 74 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/MRI.include"
  57. # 128 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/MRI.include"
  58. # 129 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/MRI.include"
  59. # 141 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/MRI.include"
  60. # 15 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/RARE.ppg" 2
  61. # 1 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/PrepModulesHead.mod" 1
  62. ;****************************************************************
  63. ;
  64. ; Copyright (c) 2003-2007
  65. ; Bruker BioSpin MRI GmbH
  66. ; D-76275 Ettlingen, Germany
  67. ;
  68. ; $Id$
  69. ;
  70. ; All Rights Reserved
  71. ;
  72. ; Declaration of pulseprogram parameters and subroutines for
  73. ; preparation modules
  74. ;
  75. ; Must be included after MRI.include!
  76. ;
  77. ;****************************************************************
  78. ;**** Fat Suppression ****
  79. # 1 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/FatSupDef.mod" 1
  80. ;****************************************************************
  81. ;
  82. ; Copyright (c) 2018
  83. ; Bruker BioSpin MRI GmbH
  84. ; D-76275 Ettlingen, Germany
  85. ;
  86. ; $Id$
  87. ;
  88. ; All Rights Reserved
  89. ;
  90. ; FatSupDef.mod : Declaration of Fat Suppression Subroutine
  91. ;
  92. ;****************************************************************
  93. if (PVM_FatSupPerform == Yes)
  94. {
  95. define pulse fatSupPul = {$PVM_FatSupRfLength}
  96. define list<frequency> fatSupList = {$PVM_FatSupFL}
  97. define delay fatSupRamp = {$PVM_FatSupRampTime}
  98. define delay fatSupAmp = {$PVM_FatSupAmpEnable}
  99. define delay fatSupWait = {$PVM_FatSupGradWait}
  100. define delay fatSupSpoil = {$PVM_FatSupSpoilDur}
  101. ; convert from ms to s
  102. "fatSupRamp = fatSupRamp / 1000"
  103. "fatSupAmp = fatSupAmp / 1000"
  104. "fatSupWait = fatSupWait / 1000"
  105. "fatSupSpoil = fatSupSpoil / 1000"
  106. }
  107. subroutine FatSup
  108. # 20 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/PrepModulesHead.mod" 2
  109. ;**** Flow Saturation ****
  110. # 1 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/FlowSatDef.mod" 1
  111. ;****************************************************************
  112. ;
  113. ; Copyright (c) 2018
  114. ; Bruker BioSpin MRI GmbH
  115. ; D-76275 Ettlingen, Germany
  116. ;
  117. ; $Id$
  118. ;
  119. ; All Rights Reserved
  120. ;
  121. ; FlowSatDef.mod: Declaration of subroutines for Flow Saturation
  122. ; call
  123. ; subr FlowSat()
  124. ; subr FlowSatInit()
  125. ; subr FlowSatInc()
  126. ;
  127. ;****************************************************************
  128. if(PVM_InFlowSatOnOff == 1)
  129. {
  130. define list<frequency> modlis4 = {$PVM_InFlowSatFL}
  131. define list<grad_scalar> flowSatGrad={$PVM_InFlowSatGrad}
  132. define delay SfD0 = {$PVM_SfD0}
  133. define delay SfD1 = {$PVM_SfD1}
  134. define delay SfD2 = {$PVM_SfD2}
  135. # 28 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/FlowSatDef.mod"
  136. define pulse SfP0 = {$PVM_SfP0}
  137. define loopcounter SfLp0 = {$PVM_SfLp0}
  138. }
  139. subroutine FlowSat
  140. subroutine FlowSatInc
  141. subroutine FlowSatInit
  142. # 24 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/PrepModulesHead.mod" 2
  143. ;**** Inversion Pulse ****
  144. # 1 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/InvPulseDef.mod" 1
  145. ;****************************************************************
  146. ;
  147. ; Copyright (c) 2002-2007
  148. ; Bruker BioSpin MRI GmbH
  149. ; D-76275 Ettlingen, Germany
  150. ;
  151. ; $Id$
  152. ;
  153. ; All Rights Reserved
  154. ;
  155. ; InvPulseDef.mod : Declaration of Inversion Pulse subroutine
  156. ;
  157. ; call
  158. ; subr InvPulse()
  159. ;
  160. ;****************************************************************
  161. ;
  162. ; PVM_InvRFPulseArr :
  163. ;
  164. ; sp22 TPQQ[14].name : PVM_InvRFPulsePropertyArr[0].Filename
  165. ;
  166. ; PVM_IpP0 : PVM_InvRFPulseArr[0].PulseLength
  167. ;
  168. ; PVM_IpD2 : PVM_InvPulseDelay[0]
  169. ; PVM_IpD3 : PVM_InvPulseSpoilTime[0]
  170. ; PVM_IpD1 : CONFIG_amplifier _enable
  171. ; PVM_IpD0 : PVM_RampTime
  172. ;
  173. if(PVM_InvPulseOnOff == 1)
  174. {
  175. define list<frequency> modlis2= {$PVM_InvPulseOffsetHz}
  176. define delay IpD0 = {$PVM_IpD0}
  177. define delay IpD1 = {$PVM_IpD1}
  178. define delay IpD2 = {$PVM_IpD2}
  179. define delay IpD3 = {$PVM_IpD3}
  180. define pulse IpP0 = {$PVM_IpP0}
  181. }
  182. subroutine InvPulse
  183. # 28 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/PrepModulesHead.mod" 2
  184. ;**** Magnetisation Transfer ****
  185. # 1 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/MagTransDef.mod" 1
  186. ;****************************************************************
  187. ; $Source$
  188. ;
  189. ; Copyright (c) 2005-2007
  190. ; Bruker BioSpin MRI GmbH
  191. ; D-76275 Ettlingen, Germany
  192. ;
  193. ; All Rights Reserved
  194. ;
  195. ; MagTransDef.mod: Declaration of subroutine for Magnetization
  196. ; transfer
  197. ; call
  198. ; subr MagTrans()
  199. ;
  200. ; $Id$
  201. ;****************************************************************
  202. ;**** Magnetisation Transfer Module ****
  203. if(PVM_MagTransOnOff)
  204. {
  205. define list<frequency> modlis3 = {$PVM_MagTransFL}
  206. define delay MtD0 = {$PVM_MtD0}
  207. define delay MtD1 = {$PVM_MtD1}
  208. define delay MtD2 = {$PVM_MtD2}
  209. define delay MtD3 = {$PVM_MtD3}
  210. # 28 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/MagTransDef.mod"
  211. define pulse MtP0 = {$PVM_MtP0}
  212. define loopcounter MtLp0 = {$PVM_MtLp0}
  213. }
  214. subroutine MagTrans
  215. # 32 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/PrepModulesHead.mod" 2
  216. ;**** Saturation Transfer ****
  217. # 1 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/SatTransDef.mod" 1
  218. ;****************************************************************
  219. ; $Source$
  220. ;
  221. ; Copyright (c) 2018
  222. ; Bruker BioSpin MRI GmbH
  223. ; D-76275 Ettlingen, Germany
  224. ;
  225. ; All Rights Reserved
  226. ;
  227. ; SatTransDef.mod: Declaration of subroutine for Saturation transfer
  228. ; call
  229. ; subr SatTrans()
  230. ;
  231. ; $Id$
  232. ;****************************************************************
  233. ;**** Saturation Transfer Module ****
  234. ; PVM_SatTransFL: List of offset frequencies to be measured.
  235. ; PVM_SattransNPulses: Number of pulses used in one saturation event
  236. ; PVM_SattransPowerList: List of RF amplitudes for saturation pulses.
  237. ; Two elements long: first element: 0 Watt,
  238. ; used for one reference scan. Subsequent scans
  239. ; use amplitude as specified in UI.
  240. ; StReference: If PVM_SatTransRefScan is On then list StRfPower
  241. ; has two elements (1st is zero for reference scan)
  242. ; If RefScan is Off then lsit has only one element.
  243. ; Nevertheless we increment to avoid another 'if'
  244. # 31 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/SatTransDef.mod"
  245. if(PVM_SatTransOnOff)
  246. {
  247. define list<frequency> modlis5 = {$PVM_SatTransFL}
  248. define list<power> StRfPower = {$PVM_SatTransPowerList}
  249. define delay StD0 = {$PVM_StD0}
  250. define delay StD1 = {$PVM_StD1}
  251. define delay StD2 = {$PVM_StD2}
  252. define delay StD3 = {$PVM_StD3}
  253. define pulse StP0 = {$PVM_StP0}
  254. define loopcounter StNPulses = {$PVM_SatTransNPulses}
  255. define loopcounter StReference
  256. "StReference = 1"
  257. }
  258. subroutine SatTransInit
  259. subroutine SatTransInc
  260. subroutine SatTrans
  261. # 36 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/PrepModulesHead.mod" 2
  262. ;**** Saturation Pulse ****
  263. # 1 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/SatPulseDef.mod" 1
  264. ;****************************************************************
  265. ;
  266. ; Copyright (c) 2002-2003
  267. ; Bruker BioSpin MRI GmbH
  268. ; D-76275 Ettlingen, Germany
  269. ;
  270. ; $Id$
  271. ;
  272. ; All Rights Reserved
  273. ;
  274. ; SatPulseDef.mod : Declaration of Saturation Pulse subroutines
  275. ; call
  276. ; subr SatPulse()
  277. ;
  278. ;****************************************************************
  279. ;
  280. ; PVM_SatRFPulseArr :
  281. ;
  282. ; sp28 DPQQ[12].name : PVM_SatRFPulsePropertyArr[0].Filename
  283. ; sp29 DPQQ[13].name : PVM_SatRFPulsePropertyArr[1].Filename
  284. ; sp30 DPQQ[14].name : PVM_SatRFPulsePropertyArr[2].Filename
  285. ; sp31 DPQQ[15].name : PVM_SatRFPulsePropertyArr[3].Filename
  286. ;
  287. ; PVM_SpP0 : PVM_SatRFPulseArr[0].PulseLength
  288. ; PVM_SpP1 : PVM_SatRFPulseArr[1].PulseLength
  289. ; PVM_SpP2 : PVM_SatRFPulseArr[2].PulseLength
  290. ; PVM_SpP3 : PVM_SatRFPulseArr[3].PulseLength
  291. ;
  292. ; PVM_SpD2 : PVM_SatPulseDelay1[0]
  293. ; PVM_SpD6 : PVM_SatPulseSpoilTime[0]
  294. ; PVM_SpD10 : PVM_SatPulseDelay2[0]
  295. ; PVM_SpD3 : PVM_SatPulseSpoilTime[1]
  296. ; PVM_SpD7 : PVM_SatPulseDelay1[1]
  297. ; PVM_SpD11 : PVM_SatPulseDelay2[1]
  298. ; PVM_SpD4 : PVM_SatPulseDelay1[2]
  299. ; PVM_SpD8 : PVM_SatPulseSpoilTime[2]
  300. ; PVM_SpD12 : PVM_SatPulseDelay2[2]
  301. ; PVM_SpD5 : PVM_SatPulseDelay1[3]
  302. ; PVM_SpD9 : PVM_SatPulseSpoilTime[3]
  303. ; PVM_SpD13 : PVM_SatPulseDelay2[3]
  304. ;
  305. if(PVM_SatPulseOnOff == 1)
  306. {
  307. define list<frequency> modlis7 = {$PVM_SatPulseOffsetHz}
  308. define delay SpD0 = {$PVM_SpD0}
  309. define delay SpD1 = {$PVM_SpD1}
  310. define delay SpD2 = {$PVM_SpD2}
  311. define delay SpD3 = {$PVM_SpD3}
  312. define delay SpD4 = {$PVM_SpD4}
  313. define delay SpD5 = {$PVM_SpD5}
  314. define delay SpD6 = {$PVM_SpD6}
  315. define delay SpD7 = {$PVM_SpD7}
  316. define delay SpD8 = {$PVM_SpD8}
  317. define delay SpD9 = {$PVM_SpD9}
  318. define delay SpD10 = {$PVM_SpD10}
  319. define delay SpD11 = {$PVM_SpD11}
  320. define delay SpD12 = {$PVM_SpD12}
  321. define delay SpD13 = {$PVM_SpD13}
  322. define pulse SpP0 = {$PVM_SpP0}
  323. define pulse SpP1 = {$PVM_SpP1}
  324. define pulse SpP2 = {$PVM_SpP2}
  325. define pulse SpP3 = {$PVM_SpP3}
  326. # 66 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/SatPulseDef.mod"
  327. }
  328. subroutine SatPulse
  329. # 40 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/PrepModulesHead.mod" 2
  330. ;*** FOV Saturation ***
  331. # 1 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/FovSatDef.mod" 1
  332. ;****************************************************************
  333. ;
  334. ; Copyright (c) 2018
  335. ; Bruker BioSpin MRI GmbH
  336. ; D-76275 Ettlingen, Germany
  337. ;
  338. ; $Id$
  339. ;
  340. ; All Rights Reserved
  341. ;
  342. ; FovSat.mod : Declaration of FOV Saturation subroutine
  343. ; call: subr FovSat()
  344. ;
  345. ;****************************************************************
  346. if (PVM_FovSatOnOff == On)
  347. {
  348. define pulse fovSatPul = {$PVM_FovSatRfLength}
  349. define list<frequency> fovSatList = {$PVM_FovSatFL}
  350. define delay fovSatRamp = {$PVM_FovSatRampTime}
  351. define delay fovSatAmp = {$PVM_FovSatAmpEnable}
  352. define delay fovSatWait = {$PVM_FovSatGradWait}
  353. define delay fovSatSpoil = {$PVM_FovSatSpoilDur}
  354. # 27 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/FovSatDef.mod"
  355. ; convert from ms to s
  356. "fovSatRamp = fovSatRamp / 1000"
  357. "fovSatAmp = fovSatAmp / 1000"
  358. "fovSatWait = fovSatWait / 1000"
  359. "fovSatSpoil = fovSatSpoil / 1000"
  360. }
  361. subroutine FovSat
  362. # 55 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/FovSatDef.mod"
  363. ; backwards compatibility
  364. subroutine SatSlices
  365. # 44 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/PrepModulesHead.mod" 2
  366. ;**** Black Blood ****
  367. # 1 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/BlBloodDef.mod" 1
  368. ;****************************************************************
  369. ;
  370. ; Copyright (c) 2007
  371. ; Bruker BioSpin MRI GmbH
  372. ; D-76275 Ettlingen, Germany
  373. ;
  374. ; $Id$
  375. ;
  376. ; All Rights Reserved
  377. ;
  378. ; BlBloodDef.mod : Declaration of Black blood subroutine
  379. ;
  380. ; call
  381. ; subr BlBlood(ph0) : Black blood preparation with RF phaselist
  382. ; ph0
  383. ;
  384. ;****************************************************************
  385. if(PVM_BlBloodOnOff)
  386. {
  387. define list<frequency> modlis8 = {$PVM_BlBloodFL}
  388. define delay BlbD0 = {$PVM_BlbD0}
  389. define delay BlbD1 = {$PVM_BlbD1}
  390. define delay BlbD2 = {$PVM_BlbD2}
  391. define delay BlbD3 = {$PVM_BlbD3}
  392. define pulse BlbP0 = {$PVM_BlbP0}
  393. }
  394. subroutine BlBlood
  395. # 48 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/PrepModulesHead.mod" 2
  396. ;**** Trigger ****
  397. # 1 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/TriggerDef.mod" 1
  398. ;****************************************************************
  399. ;
  400. ; Copyright (c) 1998-2003
  401. ; Bruker BioSpin MRI GmbH
  402. ; D-76275 Ettlingen, Germany
  403. ;
  404. ; All Rights Reserved
  405. ;
  406. ; TriggerDef.mod - Trigger Module
  407. ;
  408. ;****************************************************************
  409. if (PVM_TriggerModule == On)
  410. {
  411. define delay trigDur = {$PVM_TriggerDur}
  412. define delay trigDel = {$PVM_TriggerDelay}
  413. ; convert from ms to s
  414. "trigDur = trigDur / 1000"
  415. "trigDel = trigDel / 1000"
  416. }
  417. subroutine Trigger
  418. subroutine TriggerPhase
  419. subroutine TriggerSlice
  420. # 52 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/PrepModulesHead.mod" 2
  421. ;**** Trigger Out ****
  422. # 1 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/TriggerOutDef.mod" 1
  423. ;****************************************************************
  424. ;
  425. ; Copyright (c) 2003
  426. ; Bruker BioSpin MRI GmbH
  427. ; D-76275 Ettlingen, Germany
  428. ;
  429. ; All Rights Reserved
  430. ; $Id$
  431. ;****************************************************************
  432. if (PVM_TriggerOutOnOff == On)
  433. {
  434. define delay trigOutDur = {$PVM_TriggerOutDur}
  435. define delay trigOutDel = {$PVM_TriggerOutDelay}
  436. ; convert from ms to s
  437. "trigOutDur = trigOutDur / 1000"
  438. "trigOutDel = trigOutDel / 1000"
  439. }
  440. subroutine TriggerOut
  441. subroutine TriggerOutStart
  442. subroutine TriggerOutSlice
  443. subroutine TriggerOutVolume
  444. # 56 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/PrepModulesHead.mod" 2
  445. ;**** Outer Volume Suppression ****
  446. # 1 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/WsOvsDef.mod" 1
  447. ;****************************************************************
  448. ;
  449. ; Copyright (c) 2005-2007
  450. ; Bruker BioSpin MRI GmbH
  451. ; D-76275 Ettlingen, Germany
  452. ;
  453. ; $Id$
  454. ;
  455. ; All Rights Reserved
  456. ;
  457. ; WsOvsDef.mod: Declaration of water suppression and Outer
  458. ; volume suppression subroutines
  459. ;
  460. ; call
  461. ; subr Ovs(ph0) ; execution of OVS with ph0 phaselist
  462. ;
  463. ; subr WsOvs(ph0,ph1) : execution of OVS with ph0 and WS with ph1
  464. ; phaselist
  465. ;****************************************************************
  466. ;**** OuterVolumeSuppression ****
  467. if(PVM_OvsOnOff == 1)
  468. {
  469. define list<frequency> Ovslist={$PVM_OvsFrequencyList}
  470. define delay OvsD0 = {$PVM_OvsD0}
  471. define delay OvsD1 = {$PVM_OvsD1}
  472. define pulse OvsP0 = {$PVM_OvsP0}
  473. }
  474. subroutine Ovs
  475. # 62 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/WsOvsDef.mod"
  476. ;*** WaterSuppression Module with OVS ****
  477. if (PVM_WsMode)
  478. {
  479. define list<frequency> Wslist={$PVM_WsOffsetHz}
  480. define pulse WsP0 = {$PVM_WsP0}
  481. define pulse WsP1 = {$PVM_WsP1}
  482. define pulse WsP2 = {$PVM_WsP2}
  483. define delay WsNp0
  484. "WsNp0 = WsP0"
  485. define delay WsNp1
  486. "WsNp1 = WsP1"
  487. define delay WsNp2
  488. "WsNp2 = WsP2"
  489. define list<delay> ChD1={$PVM_ChppgD1}
  490. define list<delay> ChD2={$PVM_ChppgD2}
  491. define list<delay> VpD1={$PVM_VpppgD1}
  492. define list<delay> VpD2={$PVM_VpppgD2}
  493. # 82 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/WsOvsDef.mod"
  494. }
  495. subroutine WsOvsMain
  496. subroutine WsOvs
  497. subroutine Ws
  498. # 60 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/PrepModulesHead.mod" 2
  499. ;**** Solvent Suppression module ****
  500. # 1 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/WsSatDef.mod" 1
  501. ;******************************************************************
  502. ;
  503. ; Copyright (c) 2002-2007
  504. ; Bruker BioSpin MRI GmbH
  505. ; D-76275 Ettlingen, Germany
  506. ;
  507. ; $Id$
  508. ;
  509. ; All Rights Reserved
  510. ;
  511. ; WsSatDef.mod - Declaration of water suppression and FOV saturation
  512. ; subroutines
  513. ; call
  514. ; subr WsSat(ph0) : execution of WS with ph0 phaselist and
  515. ; FOV saturation (as passed as argument)
  516. ;
  517. ;*******************************************************************
  518. ; Definitions for WsPpgParams are included in WsOvsDef.mod
  519. subroutine WsSatMain
  520. subroutine WsSat
  521. # 64 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/PrepModulesHead.mod" 2
  522. ;**** Selective Inversion Recovery ****
  523. # 1 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/SelSliceIrDef.mod" 1
  524. ;****************************************************************
  525. ;
  526. ; Copyright (c) 2018
  527. ; Bruker BioSpin MRI GmbH
  528. ; D-76275 Ettlingen, Germany
  529. ;
  530. ; $Id$
  531. ;
  532. ; All Rights Reserved
  533. ;
  534. ; SlicelSelIr.mod : declaration of slice Selective Inversion
  535. ; Recovery subroutine
  536. ; call SliceSelIr()
  537. ;
  538. ;
  539. ;****************************************************************
  540. if(PVM_SelIrOnOff)
  541. {
  542. define list<frequency> IrFL = {$PVM_SelIrFL}
  543. define delay IrD0 = {$PVM_SelIrD0} ; PVM_InterInvDelay
  544. define delay IrD1 = {$PVM_SelIrD1} ; PVM_InterInvEndDelay[0]
  545. define delay IrD2 = {$PVM_SelIrD2} ; Spoiler duration
  546. define delay IrD3 = {$PVM_SelIrD3} ; Gatepulse duration
  547. define delay IrD4 = {$PVM_SelIrD4} ; risetime
  548. # 28 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/SelSliceIrDef.mod"
  549. define pulse IrP0 = {$PVM_SelIrP0}
  550. define loopcounter IrL0 = {$PVM_SelIrL0}
  551. define loopcounter IrL1
  552. }
  553. subroutine SliceSelIr
  554. # 68 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/PrepModulesHead.mod" 2
  555. ;**** Tagging ****
  556. # 1 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/TagDef.mod" 1
  557. ;****************************************************************
  558. ;
  559. ; Copyright (c) 2018
  560. ; Bruker BioSpin MRI GmbH
  561. ; D-76275 Ettlingen, Germany
  562. ;
  563. ; $Id$
  564. ;
  565. ; All Rights Reserved
  566. ;
  567. ; TagDef.mod : Declaration of tagging subroutine
  568. ; call
  569. ; subr Tagging()
  570. ;
  571. ;****************************************************************
  572. if(PVM_TaggingOnOff)
  573. {
  574. define list<frequency> taggfreq={$PVM_TaggingFL}
  575. define delay TaggD0 = {$PVM_TaggingD0}
  576. define delay TaggD1 = {$PVM_TaggingD1}
  577. define delay TaggD2 = {$PVM_TaggingD2}
  578. define delay TaggD3 = {$PVM_TaggingD3}
  579. define delay TaggD4 = {$PVM_TaggingD4}
  580. define delay TaggD5 = {$PVM_TaggingD5}
  581. # 28 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/TagDef.mod"
  582. define pulse TaggP0 = {$PVM_TaggingP0}
  583. define loopcounter TaggL0 = {$PVM_TaggingLp0}
  584. }
  585. subroutine Tagging
  586. # 72 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/PrepModulesHead.mod" 2
  587. ;**** Noe ****
  588. # 1 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/NoeDef.mod" 1
  589. ;****************************************************************
  590. ;
  591. ; Copyright (c) 2007
  592. ; Bruker BioSpin MRI GmbH
  593. ; D-76275 Ettlingen, Germany
  594. ;
  595. ; $Id$
  596. ;
  597. ; All Rights Reserved
  598. ;
  599. ; NoeDef.mod: Declaration of Nuclear Overhouser Enhancement
  600. ; subroutine
  601. ; call
  602. ; subr Noe()
  603. ;
  604. ;****************************************************************
  605. if(PVM_NoeOnOff == On)
  606. {
  607. define delay NoeD0 = {$PVM_NoeD0}
  608. define delay NoeD1 = {$PVM_NoeD1}
  609. }
  610. subroutine Noe
  611. # 76 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/PrepModulesHead.mod" 2
  612. ;**** Evolution ****
  613. # 1 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/EvolutionDef.mod" 1
  614. ;****************************************************************
  615. ;
  616. ; Copyright (c) 1998-2003
  617. ; Bruker BioSpin MRI GmbH
  618. ; D-76275 Ettlingen, Germany
  619. ;
  620. ; All Rights Reserved
  621. ;
  622. ; EvolutionDef.mod - Evolution Module
  623. ;
  624. ;****************************************************************
  625. if (PVM_EvolutionOnOff == On)
  626. {
  627. define delay evolDel = {$PVM_EvolutionDelay}
  628. define list<delay> evolTime = {$PVM_EvolutionTime}
  629. }
  630. subroutine Evolution
  631. # 80 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/PrepModulesHead.mod" 2
  632. ;**** Drift Compensation ****
  633. # 1 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/DriftComp.mod" 1
  634. ;==========================================================
  635. ; subroutine for drift compensation
  636. ;==========================================================
  637. if (PVM_DriftCompNavOnOff == On)
  638. {
  639. define list<frequency> txfq = {$PVM_DriftCompNavTxFrq}
  640. define list<frequency> rxfq = {$PVM_DriftCompNavRxFrq}
  641. define pulse DCP0 = {$PVM_DriftCompNavP0}
  642. define delay DCD0 = {$PVM_DriftCompNavD0}
  643. define delay DCD1 = {$PVM_DriftCompNavD1}
  644. define delay DCD2 = {$PVM_DriftCompNavD2}
  645. define delay DCD3 = {$PVM_DriftCompNavD3}
  646. define delay DCD4 = {$PVM_DriftCompNavD4}
  647. define delay DCD5 = {$PVM_DriftCompNavD5}
  648. define delay DCD6
  649. "DCD6 = 10u - de"
  650. define list<phase> dcph = { 0 }
  651. }
  652. subroutine DriftComp
  653. # 84 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/PrepModulesHead.mod" 2
  654. # 16 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/RARE.ppg" 2
  655. # 1 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/Fws.mod" 1
  656. ;****************************************************************
  657. ;
  658. ; Copyright (c) 2002-2015
  659. ; Bruker BioSpin MRI GmbH
  660. ; D-76275 Ettlingen, Germany
  661. ;
  662. ; $Id$
  663. ;
  664. ; All Rights Reserved
  665. ;
  666. ; Fws.mod : Declaration of Fat Water Separation Subroutines
  667. ;
  668. ;****************************************************************
  669. # 16 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/Fws.mod"
  670. define list<frequency> zeroFreq = {0}
  671. define delay FwsD0={$PVM_FwsD0}
  672. define list<delay> vardel1={$PVM_FwsDList1}
  673. define list<delay> vardel2={$PVM_FwsDList2}
  674. subroutine FwsLoop
  675. subroutine FwsDelTE1
  676. subroutine FwsDelTE2a
  677. subroutine FwsDelTE2b
  678. # 17 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/RARE.ppg" 2
  679. preset off
  680. # 21 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/RARE.ppg"
  681. define delay denab
  682. "denab = d3 - de"
  683. define delay d5m40u
  684. "d5m40u = d5 - 40u"
  685. ; no auto increment desired:
  686. define list<frequency> localFq1 = {$ACQ_O1_list}
  687. # 30 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/RARE.ppg"
  688. define loopcounter lc1
  689. "lc1 = ds"
  690. if (ACQ_jobs_size > 1)
  691. {
  692. 3u setrtp1|1 \n 7u setrtp1^1 \n 1m swj1 \n 1m dccorr1 \n 3u setrtp1|1 \n 187u setrtp1^1 \n 1u setrtp1|1 \n 9u setrtp1^1 \n 1m swj2 \n 1m dccorr2 \n 3u setrtp1|1 \n 7u setrtp1^1 \n 1m swj1 \n if (CONFIG_preemp_type == GREAT_60) \n { \n if (CONFIG_instrument_type != Avance_III) \n { \n 500m setnmr0|34|33|32 \n } \n else \n { \n 200u setnmr0|34|33|32 \n } \n } \n if (CONFIG_preemp_type == DPP_with_SW_Blanking) \n {\n 10u ctrlgrad 0 \n 10u grad{(0)|(0)|(0) } \n 200u setnmr0|34|33|32 \n }\n if (CONFIG_preemp_type == DPP) \n { \n 10u groff \n }
  693. } else {
  694. dccorr \n \n if (CONFIG_preemp_type == GREAT_60) \n { \n if (CONFIG_instrument_type != Avance_III) \n { \n 500m setnmr0|34|33|32 \n } \n else \n { \n 200u setnmr0|34|33|32 \n } \n } \n if (CONFIG_preemp_type == DPP_with_SW_Blanking) \n {\n 10u ctrlgrad 0 \n 10u grad{(0)|(0)|(0) } \n 200u setnmr0|34|33|32 \n }\n if (CONFIG_preemp_type == DPP) \n { \n 10u groff \n }
  695. }
  696. # 44 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/RARE.ppg"
  697. grad_zero_for_gs <ACQ_spatial_phase_1, ACQ_spatial_phase_2>
  698. ;pre-setting the ACQ_spatial_phase_1 counter for the dummy scans:
  699. decr, ACQ_spatial_phase_1.dec
  700. lo to decr times l1 ; DS*ACQ_rare_factor
  701. subr FlowSatInit
  702. ;EXEC_begin FlowSatInit FlowSatInit()
  703. # 54 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/FlowSatDef.mod"
  704. if(PVM_InFlowSatOnOff == 1)
  705. {
  706. 0u modlis4.res
  707. 0u flowSatGrad.res
  708. }
  709. ;EXEC_end FlowSatInit
  710. # 51 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/RARE.ppg"
  711. subr SatTransInit
  712. ;EXEC_begin SatTransInit SatTransInit()
  713. # 48 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/SatTransDef.mod"
  714. if(PVM_SatTransOnOff)
  715. {
  716. 0u modlis5.res
  717. 0u StRfPower.res
  718. }
  719. ;EXEC_end SatTransInit
  720. # 52 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/RARE.ppg"
  721. # 54 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/RARE.ppg"
  722. 0u recph ph0
  723. start, 0u ACQ_spatial_phase_1.store
  724. acc, 0u
  725. subr DriftComp
  726. ;EXEC_begin DriftComp DriftComp()
  727. # 23 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/DriftComp.mod"
  728. if(PVM_DriftCompYesNo == Yes)
  729. {
  730. 20u reload B0 ;close to nav acq
  731. if(PVM_DriftCompNavOnOff == On)
  732. {
  733. 10u swj2
  734. 1u setrtp1|1 \n 9u setrtp1^1 ;lasts 10u
  735. 10u rxfq(receive):f1
  736. 5u txfq:f1
  737. DCD0 gatepulse 1
  738. (DCP0 :sp55 dcph):f1
  739. DCD6 ;is 10u-de
  740. (rde1 sync de1 adc2 dcph syrec) (1u 1u dcph:r):f1 (de) ;is de
  741. DCD1 cpdngs18:f1
  742. 169u ;delay for scan shift
  743. 10u eoscnp #1
  744. DCD2 grad_ramp{PVM_DriftCompNavSpoilAmp,PVM_DriftCompNavSpoilAmp,PVM_DriftCompNavSpoilAmp}
  745. DCD3 ;delay after eoscnp #0 requires about 45u
  746. DCD4 swj1 ;requires about 65u
  747. 3u setrtp1|1 \n 7u setrtp1^1 ;lasts 10u
  748. DCD5
  749. DCD2 grad_off
  750. }
  751. }
  752. ;EXEC_end DriftComp
  753. # 57 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/RARE.ppg"
  754. if(PVM_BlBloodOnOff == On)
  755. {
  756. subr TriggerPhase
  757. ;EXEC_begin TriggerPhase TriggerPhase()
  758. # 37 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/TriggerDef.mod"
  759. if (PVM_TriggerMode == per_PhaseStep)
  760. {
  761. ;EXEC_begin Trigger Trigger()
  762. # 23 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/TriggerDef.mod"
  763. if (PVM_TriggerModule == On)
  764. {
  765. trigDur setnmr3|6
  766. trigDur trignl1
  767. trigDur trigpe3
  768. trigDur setnmr3^6
  769. trigDel
  770. }
  771. ;EXEC_end Trigger
  772. }
  773. ;EXEC_end TriggerPhase
  774. # 61 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/RARE.ppg"
  775. }
  776. subr BlBlood
  777. ;EXEC_begin BlBlood BlBlood(phase ph0)
  778. # 30 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/BlBloodDef.mod"
  779. if(PVM_BlBloodOnOff)
  780. {
  781. 10u modlis8:f1
  782. 10u
  783. BlbD3 gatepulse 1
  784. (BlbP0 :sp46 ph0):f1
  785. BlbD2 grad_ramp{0, 0, PVM_BlbGrad}
  786. 0u modlis8.inc
  787. 10u
  788. 10u modlis8:f1
  789. 10u
  790. BlbD3 gatepulse 1
  791. (BlbP0 :sp46 ph0):f1
  792. BlbD2 grad_off
  793. BlbD1 modlis8.inc grad_ramp{0, 0, PVM_BlBloodSpoilAmp}
  794. BlbD0 grad_off
  795. 0u modlis8.inc
  796. }
  797. ;EXEC_end BlBlood
  798. # 63 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/RARE.ppg"
  799. subr TriggerPhase
  800. ;EXEC_begin TriggerPhase TriggerPhase()
  801. # 37 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/TriggerDef.mod"
  802. if (PVM_TriggerMode == per_PhaseStep)
  803. {
  804. ;EXEC_begin Trigger Trigger()
  805. # 23 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/TriggerDef.mod"
  806. if (PVM_TriggerModule == On)
  807. {
  808. trigDur setnmr3|6
  809. trigDur trignl1
  810. trigDur trigpe3
  811. trigDur setnmr3^6
  812. trigDel
  813. }
  814. ;EXEC_end Trigger
  815. }
  816. ;EXEC_end TriggerPhase
  817. # 64 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/RARE.ppg"
  818. subr SliceSelIr
  819. ;EXEC_begin SliceSelIr SliceSelIr()
  820. # 33 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/SelSliceIrDef.mod"
  821. if(PVM_SelIrOnOff == On)
  822. {
  823. "IrL1=IrL0"
  824. 10u IrFL.res
  825. irloop19, 10u IrFL :f1
  826. IrD4 grad_ramp{0, 0, PVM_SelIrGradAmp*100}
  827. IrD3 gatepulse 1
  828. (IrP0:sp42 ph0):f1
  829. IrD4 grad_off
  830. if "IrL1 > 1"
  831. {
  832. IrD0
  833. }
  834. "IrL1 = IrL1 - 1"
  835. 0u IrFL.inc
  836. 0u grad_matrix.inc
  837. lo to irloop19 times IrL0
  838. IrD2 grad_ramp{0, 0, PVM_SelIrSpoilAmp}
  839. IrD4 grad_off
  840. IrD1
  841. 0u IrFL.res
  842. 0u grad_matrix.res
  843. }
  844. ;EXEC_end SliceSelIr
  845. # 65 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/RARE.ppg"
  846. slice, 10u fq8(receive):f1
  847. ;----------------------- preparation modules -----------------------
  848. subr TriggerSlice
  849. ;EXEC_begin TriggerSlice TriggerSlice()
  850. # 45 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/TriggerDef.mod"
  851. if (PVM_TriggerMode == per_Slice)
  852. {
  853. ;EXEC_begin Trigger Trigger()
  854. # 23 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/TriggerDef.mod"
  855. if (PVM_TriggerModule == On)
  856. {
  857. trigDur setnmr3|6
  858. trigDur trignl1
  859. trigDur trigpe3
  860. trigDur setnmr3^6
  861. trigDel
  862. }
  863. ;EXEC_end Trigger
  864. }
  865. ;EXEC_end TriggerSlice
  866. # 70 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/RARE.ppg"
  867. subr FlowSat
  868. ;EXEC_begin FlowSat FlowSat()
  869. # 33 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/FlowSatDef.mod"
  870. if(PVM_InFlowSatOnOff == 1)
  871. {
  872. flow120, SfD0 modlis4:f1 grad_ramp{0, 0, flowSatGrad*100}
  873. SfD1 gatepulse 1
  874. (SfP0 :sp44):f1
  875. SfD2 grad_ramp{0, 0, PVM_InFlowSatSpoilGrad}
  876. SfD0 grad_off
  877. }
  878. ;EXEC_end FlowSat
  879. # 71 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/RARE.ppg"
  880. subr Tagging
  881. ;EXEC_begin Tagging Tagging()
  882. # 32 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/TagDef.mod"
  883. if(PVM_TaggingOnOff)
  884. {
  885. 0u taggfreq.res
  886. if(PVM_TaggingMode == DANTE)
  887. {
  888. 10u taggfreq:f1
  889. TaggD4 grad_ramp{PVM_TaggingGradAmp1, PVM_TaggingGradAmp2,0}
  890. TaggD5 gatepulse 1
  891. (TaggP0: sp45):f1
  892. tag121, TaggD2
  893. TaggD5 gatepulse 1
  894. (TaggP0: sp45):f1
  895. lo to tag121 times TaggL0
  896. TaggD4 grad_off
  897. if(PVM_TaggingDir == Tagging_grid)
  898. {
  899. TaggD1 taggfreq.inc
  900. 10u taggfreq:f1
  901. TaggD5 gatepulse 1
  902. TaggD4 grad_ramp{PVM_TaggingGradAmp3,PVM_TaggingGradAmp4,0}
  903. (TaggP0: sp45):f1
  904. tag222, TaggD2
  905. TaggD5 gatepulse 1
  906. (TaggP0: sp45):f1
  907. lo to tag222 times TaggL0
  908. TaggD4 grad_off
  909. }
  910. }
  911. if(PVM_TaggingMode == SPAMM)
  912. {
  913. 10u taggfreq:f1
  914. TaggD5 gatepulse 1
  915. (TaggP0: sp45):f1
  916. tag323, TaggD2 grad_ramp{PVM_TaggingGradAmp1,PVM_TaggingGradAmp2,0}
  917. TaggD4 grad_off
  918. TaggD5 gatepulse 1
  919. (TaggP0: sp45):f1
  920. lo to tag323 times TaggL0
  921. if(PVM_TaggingDir == Tagging_grid)
  922. {
  923. TaggD1 taggfreq.inc
  924. 10u taggfreq:f1
  925. TaggD5 gatepulse 1
  926. (TaggP0: sp45):f1
  927. tag424, TaggD2 grad_ramp{PVM_TaggingGradAmp3,PVM_TaggingGradAmp4,0}
  928. TaggD4 grad_off
  929. TaggD5 gatepulse 1
  930. (TaggP0: sp45):f1
  931. lo to tag424 times TaggL0
  932. }
  933. }
  934. 10u
  935. TaggD3 grad_ramp{PVM_TaggingSpoilAmp,0,0}
  936. TaggD4 grad_off
  937. TaggD0
  938. }
  939. ;EXEC_end Tagging
  940. # 72 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/RARE.ppg"
  941. subr FovSat
  942. ;EXEC_begin FovSat FovSat()
  943. # 34 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/FovSatDef.mod"
  944. if (PVM_FovSatOnOff == On)
  945. {
  946. 5u PVM_FovSatGrad.res
  947. 5u fovSatList.res
  948. fov25, fovSatRamp grad_ramp<magnet_coord>{PVM_FovSatGrad[]}
  949. 10u fovSatList:f1
  950. fovSatAmp gatepulse 1
  951. (fovSatPul :sp41):f1
  952. fovSatSpoil grad_ramp{0, 0, PVM_FovSatSpoilAmp}
  953. 0u fovSatList.inc
  954. 0u PVM_FovSatGrad.inc
  955. lo to fov25 times PVM_FovSatNSlices
  956. fovSatRamp grad_off
  957. fovSatWait
  958. }
  959. ;EXEC_end FovSat
  960. # 73 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/RARE.ppg"
  961. subr SatTrans
  962. ;EXEC_begin SatTrans SatTrans()
  963. # 73 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/SatTransDef.mod"
  964. if(PVM_SatTransOnOff)
  965. {
  966. 10u StRfPower:f1
  967. pulse26, StD1 modlis5:f1
  968. StD0 gatepulse 1
  969. StP0: sp43(currentpower):f1
  970. lo to pulse26 times StNPulses
  971. StD2 grad_ramp{0, 0, PVM_SatTransSpoil.ampl}
  972. StD3 grad_off
  973. }
  974. ;EXEC_end SatTrans
  975. # 74 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/RARE.ppg"
  976. subr FatSup
  977. ;EXEC_begin FatSup FatSup()
  978. # 32 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/FatSupDef.mod"
  979. if (PVM_FatSupPerform == Yes)
  980. {
  981. 10u fatSupList:f1
  982. fatSupAmp gatepulse 1
  983. (fatSupPul :sp40):f1
  984. fatSupSpoil grad_ramp{0, 0, PVM_FatSupSpoilAmp}
  985. fatSupRamp grad_off
  986. fatSupWait
  987. }
  988. ;EXEC_end FatSup
  989. # 75 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/RARE.ppg"
  990. # 77 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/RARE.ppg"
  991. ;---------------------------- excitation ---------------------------
  992. d9 grad_ramp{g1, 0, g1} ;TR spoiler
  993. d3 grad_ramp{0, 0, g0} localFq1:f1 ;slice on
  994. d8 gatepulse 1
  995. (p0:sp0 ph0):f1 ;exc pulse
  996. d2 grad_ramp{g2, 0, g7} ;read deph
  997. d1 grad_off ;TE-fill 1
  998. subr FwsDelTE1
  999. ;EXEC_begin FwsDelTE1 FwsDelTE1(any localFq1)
  1000. # 33 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/Fws.mod"
  1001. if (PVM_FwsOnOff==On)
  1002. {
  1003. FwsD0 zeroFreq:f1 ;min is 10u
  1004. 10u localFq1:f1
  1005. }
  1006. ;EXEC_end FwsDelTE1
  1007. # 87 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/RARE.ppg"
  1008. # 89 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/RARE.ppg"
  1009. ;--------------------------- refocusing ----------------------------
  1010. echo1, 0u ACQ_spatial_phase_1.restore
  1011. echo, d4 grad_ramp{0, 0, g0}
  1012. d8 gatepulse 1
  1013. (p1:sp1 ph1):f1 ;pi-pulse
  1014. d5 grad_ramp{g8, ACQ_spatial_phase_1*g4, g3-ACQ_spatial_phase_2*g6} ;enc+sli-reph
  1015. d6 grad_off ;TE-fill 2a
  1016. subr FwsDelTE2a
  1017. ;EXEC_begin FwsDelTE2a FwsDelTE2a(any localFq1)
  1018. # 42 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/Fws.mod"
  1019. if (PVM_FwsOnOff==On)
  1020. {
  1021. vardel1 zeroFreq:f1 ;min is 10u
  1022. 10u localFq1:f1
  1023. }
  1024. ;EXEC_end FwsDelTE2a
  1025. # 99 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/RARE.ppg"
  1026. # 101 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/RARE.ppg"
  1027. denab grad_ramp{g5, 0, 0} ;read-on + acq
  1028. (rde1 sync de1 adc1 syrec) (1u 1u ph1:r):f1 (de)
  1029. aqq cpdngs17:f1
  1030. d6 grad_off ;TE-fill 2b
  1031. subr FwsDelTE2b
  1032. ;EXEC_begin FwsDelTE2b FwsDelTE2b(any localFq1)
  1033. # 51 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/Fws.mod"
  1034. if (PVM_FwsOnOff==On)
  1035. {
  1036. vardel2 zeroFreq:f1 ;min is 10u
  1037. 10u localFq1:f1
  1038. }
  1039. ;EXEC_end FwsDelTE2b
  1040. # 108 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/RARE.ppg"
  1041. # 110 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/RARE.ppg"
  1042. d5m40u grad_ramp{g8, -ACQ_spatial_phase_1*g4, g3+ACQ_spatial_phase_2*g6};enc+sli-reph2
  1043. 40u eoscnp #0
  1044. 0u ACQ_spatial_phase_1.inc
  1045. lo to echo times PVM_RareFactor
  1046. # 117 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/RARE.ppg"
  1047. lo to echo1 times PVM_NEchoImages
  1048. ;----------------------------- flipback ----------------------------
  1049. if( PVM_FlipBackOnOff == On)
  1050. {
  1051. d4 grad_ramp{0, 0, g0} ;slice on: d4 = d3-d8
  1052. d8 gatepulse 1 ;slice on
  1053. (p1:sp1 ph1):f1 ;pi-pulse
  1054. # 128 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/RARE.ppg"
  1055. d1 grad_off
  1056. d2 grad_ramp{g2, 0, 0} ;read-dephase
  1057. d3 grad_ramp{0, 0, g0} gatepulse 1 ;slice on
  1058. (p0:sp0 ph3):f1 ;flipback
  1059. }
  1060. d3 grad_off
  1061. ;---------------------------- slice loop ---------------------------
  1062. 0u grad_matrix.inc
  1063. d0 localFq1.inc
  1064. subr FlowSatInc
  1065. ;EXEC_begin FlowSatInc FlowSatInc()
  1066. # 46 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/FlowSatDef.mod"
  1067. if(PVM_InFlowSatOnOff == 1)
  1068. {
  1069. 0u modlis4.inc
  1070. }
  1071. ;EXEC_end FlowSatInc
  1072. # 140 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/RARE.ppg"
  1073. # 142 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/RARE.ppg"
  1074. lo to slice times NSLICES
  1075. d10
  1076. subr FwsLoop
  1077. ;EXEC_begin FwsLoop FwsLoop(any acc)
  1078. # 22 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/Fws.mod"
  1079. if (PVM_FwsOnOff==On)
  1080. {
  1081. 0u vardel1.inc
  1082. 0u vardel2.inc
  1083. lo to acc times PVM_FwsLoop
  1084. }
  1085. ;EXEC_end FwsLoop
  1086. # 145 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/RARE.ppg"
  1087. 0u ipp0
  1088. 0u recph ph0
  1089. 0u ipp3
  1090. # 151 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/RARE.ppg"
  1091. ;-------------------------- averaging loop -------------------------
  1092. lo to acc times NA
  1093. 0u rpp0
  1094. 0u recph ph0
  1095. 0u rpp3
  1096. ;----------------------------- 2d-loop -----------------------------
  1097. "lc1 = lc1 - 1" ; this makes
  1098. if "lc1>=0" goto start ; dummy scans
  1099. lo to start times l2 ; ACQ_size[1]/ACQ_rare_factor
  1100. # 164 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/RARE.ppg"
  1101. ;----------------------------- 3d-loop -----------------------------
  1102. 0u ACQ_spatial_phase_2.inc
  1103. lo to start times l3 ; ACQ_size[2]
  1104. ;---------------------- motion averaging loop ----------------------
  1105. lo to start times NAE
  1106. # 172 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/RARE.ppg"
  1107. ;-------------------------- sattrans loop --------------------------
  1108. subr SatTransInc
  1109. ;EXEC_begin SatTransInc SatTransInc()
  1110. # 58 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/SatTransDef.mod"
  1111. if(PVM_SatTransOnOff)
  1112. {
  1113. 0u modlis5.inc
  1114. if "StReference == 1"
  1115. {
  1116. 0u StRfPower.inc
  1117. "StReference = 0" ;switch off after 1st 'inc'
  1118. }
  1119. }
  1120. ;EXEC_end SatTransInc
  1121. # 173 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/RARE.ppg"
  1122. ;------------------------- repetition loop -------------------------
  1123. subr Evolution
  1124. ;EXEC_begin Evolution Evolution()
  1125. # 19 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/EvolutionDef.mod"
  1126. if (PVM_EvolutionOnOff == On)
  1127. {
  1128. if (PVM_EvolutionMode == Variable_Delay)
  1129. {
  1130. evolTime
  1131. evolTime.inc
  1132. }
  1133. else
  1134. {
  1135. evolDel
  1136. }
  1137. }
  1138. ;EXEC_end Evolution
  1139. # 176 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/RARE.ppg"
  1140. lo to start times NR
  1141. # 180 "/opt/PV-7.0.0/exp/stan/nmr/lists/pp/RARE.ppg"
  1142. if (ACQ_scan_type != Scan_Experiment) \n{ \n goto start \n}
  1143. exit
  1144. ph0 = 0 2
  1145. ph1 = 1
  1146. ph3 = 2 0