<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

<template name="acqScan" element="pages" type="acquisition" >
  <group size="900 280"
    label="Scan"
    bg="transparent"
    border="None"
    side="Top"
    justify="Left"
    tab="yes"
    enable="no"
    reference="acqScan"
    useref="no"
    subtype="Untitled"
    expanded="yes"
    >
    <group loc="5 0" size="210 230"
      style="Heading1"
      label="Scan Parameters"
      bg="transparent"
      border="Etched"
      side="Top"
      justify="Left"
      tab="no"
      enable="no"
      reference="trstuff"
      useref="no"
      subtype="Major"
      expanded="yes"
      >
      <menu loc="5 165" size="55 20"
        style="PlainText"
        label="menu"
        vq="np"
        vc="np=$VALUE*2 sw=sw go('check')"
        set="$VALUE=np/2"
        bg="VJBackground"
        editable="No"
        >
        <mlabel 
          label="64"
          chval="64"
          />
        <mlabel 
          label="128"
          chval="128"
          />
        <mlabel 
          label="256"
          chval="256"
          />
        <mlabel 
          label="512"
          chval="512"
          />
      </menu>
      <label loc="5 60" size="90 20"
        style="PlainText"
        label="Averages"
        justify="Left"
        />
      <entry loc="100 120" size="60 20"
        style="PlainText"
        vq="nseg"
        vc="nseg=$VALUE go('check')"
        set="$VALUE=nseg"
        digits="0"
        disable="Grayed out"
        />
      <entry loc="100 100" size="60 20"
        style="PlainText"
        vq="images"
        vc="images=$VALUE im2D('prep') go('check')"
        set="$VALUE=images"
        digits="0"
        disable="Grayed out"
        />
      <entry loc="100 80" size="60 20"
        style="PlainText"
        vq="ss"
        vc="ss=$VALUE go('check')"
        set="$VALUE=ss"
        digits="0"
        disable="Grayed out"
        />
      <entry loc="100 60" size="60 20"
        style="PlainText"
        vq="nt"
        vc="nt=$VALUE go('check')"
        set="$VALUE=nt"
        disable="Grayed out"
        />
      <entry loc="100 40" size="60 20"
        style="PlainText"
        vq="te minte"
        vc="te=$VALUE/1000 go('check')"
        set="$VALUE=te*1000.0"
        show="$VALUE = (minte='n')"
        digits="2"
        disable="Grayed out"
        />
      <entry loc="100 20" size="60 20"
        style="PlainText"
        vq="tr "
        vc="tr=$VALUE/1000.0 go('check')"
        set="$VALUE=tr*1000.0"
        digits="1"
        disable="Grayed out"
        />
      <label loc="160 40" size="25 20"
        style="PlainText"
        label="ms"
        justify="Left"
        />
      <label loc="160 20" size="25 20"
        style="PlainText"
        label="ms"
        justify="Left"
        />
      <menu loc="95 205" size="100 20"
        style="PlainText"
        label="menu"
        vq="ky_order"
        vc="ky_order='$VALUE' go('check')"
        set="$VALUE=ky_order"
        bg="VJBackground"
        editable="No"
        >
        <mlabel 
          label="linear"
          chval="l"
          />
        <mlabel 
          label="centric"
          chval="c"
          />
        <mlabel 
          label="rev linear"
          chval="lr"
          />
        <mlabel 
          label="rev centric"
          chval="cr"
          />
      </menu>
      <label loc="5 205" size="90 20"
        style="PlainText"
        label="k-space order"
        justify="Left"
        />
      <textmessage loc="65 185" size="40 20"
        style="PlainText"
        label=" "
        vq="nv"
        set="if nv&lt;&gt;64 and nv&lt;&gt;128 and nv&lt;&gt;256 and nv&lt;&gt;512 and nv&lt;&gt;1024 then $VALUE=nv else $VALUE='' endif"
        />
      <textmessage loc="5 185" size="40 20"
        style="PlainText"
        label=" "
        vq="np"
        set="if np&lt;&gt;128 and np&lt;&gt;256 and np&lt;&gt;512 and np&lt;&gt;1024 and np&lt;&gt;2048 then $VALUE=np/2 else $VALUE='' endif"
        />
      <menu loc="125 165" size="55 20"
        style="PlainText"
        label="menu"
        vq="fract_ky nv"
        vc="fract_ky=$VALUE go('check') nfmod=(nv/2 + fract_ky)"
        set="$VALUE=fract_ky"
        bg="VJBackground"
        editable="No"
        >
        <mlabel 
          label="0"
          chval="0"
          />
        <mlabel 
          label="2"
          chval="2"
          />
        <mlabel 
          label="4"
          chval="4"
          />
        <mlabel 
          label="8"
          chval="8"
          />
        <mlabel 
          label="16"
          chval="16"
          />
        <mlabel 
          label="24"
          chval="24"
          />
        <mlabel 
          label="32"
          chval="32"
          />
        <mlabel 
          label="64"
          chval="64"
          />
        <mlabel 
          label="96"
          chval="96"
          />
        <mlabel 
          label="128"
          chval="128"
          />
      </menu>
      <menu loc="65 165" size="55 20"
        style="PlainText"
        label="menu"
        vq="nv"
        vc="nv=$VALUE fract_ky=nv/2 prep go('check')"
        set="$VALUE=nv"
        bg="VJBackground"
        editable="No"
        >
        <mlabel 
          label="32"
          chval="32"
          />
        <mlabel 
          label="64"
          chval="64"
          />
        <mlabel 
          label="128"
          chval="128"
          />
        <mlabel 
          label="256"
          chval="256"
          />
        <mlabel 
          label="512"
          chval="512"
          />
      </menu>
      <label loc="5 145" size="120 20"
        style="PlainText"
        label="Data Matrix (ROxPE)"
        justify="Left"
        />
      <label loc="5 120" size="90 20"
        style="PlainText"
        label="Shots"
        justify="Left"
        />
      <label loc="5 100" size="90 20"
        style="PlainText"
        label="Repetitions"
        justify="Left"
        />
      <label loc="5 80" size="90 20"
        style="PlainText"
        label="Dummy Scans"
        justify="Left"
        />
      <label loc="5 40" size="30 20"
        style="PlainText"
        label="TE"
        justify="Left"
        />
      <label loc="5 20" size="30 20"
        style="PlainText"
        label="TR"
        justify="Left"
        />
      <label loc="125 145" size="80 20"
        style="PlainText"
        label="Fract k-space"
        justify="Left"
        />
      <check loc="50 40" size="50 20"
        style="PlainText"
        label="Min"
        vq="minte"
        vc="minte='y' go('check') prep go('check')"
        vc2="minte='n' go('check')"
        set="$VALUE=(minte='y')"
        />
      <check loc="50 20" size="50 20"
        style="PlainText"
        label="Min"
        vq="tr mintr"
        vc="mintr='y' go('check')"
        vc2="mintr='n' go('check')"
        set="$VALUE=(mintr='y')"
        />
    </group>
    <group loc="220 0" size="210 230"
      style="Heading1"
      label="Scan Options"
      bg="transparent"
      border="Etched"
      side="Top"
      justify="Left"
      tab="no"
      enable="no"
      reference="ScanOptions"
      useref="no"
      subtype="Major"
      expanded="yes"
      >
      <check loc="5 140" size="115 20"
        style="PlainText"
        label="External Trigger"
        vq="ticks"
        vc="exists('nsblock','parameter'):$ex if ($ex=0) then create('nsblock','integer') endif ticks = 1 go('check')"
        vc2="exists('nsblock','parameter'):$ex if ($ex=0) then create('nsblock','integer') endif ticks = 0 nsblock=1 go('check')"
        set="$VALUE=(ticks&gt;0)"
        />
      <check loc="5 20" size="100 20"
        style="PlainText"
        label="Spin Echo"
        vq="spinecho"
        vc="spinecho='y' go('check')"
        vc2="spinecho='n' go('check')"
        set="$VALUE=(spinecho='y')"
        show="exists('spinecho','parameter'):$ex if ($ex=0) then $VALUE=-1 else $VALUE = 1 endif"
        />
      <check loc="5 40" size="130 20"
        style="PlainText"
        label="Ramp Sampling"
        vq="rampsamp"
        vc="rampsamp='y' go('check')"
        vc2="rampsamp='n' go('check')"
        set="$VALUE=(rampsamp='y')"
        />
      <check loc="5 60" size="100 20"
        style="PlainText"
        label="Navigator"
        vq="navigator"
        vc="navigator=y go('check')"
        vc2="navigator=n go('check')"
        set="$VALUE=(navigator='y')"
        />
      <toggle loc="155 80" size="45 20"
        style="PlainText"
        label="More"
        vq="showOptions"
        vc="showOptions=1"
        vc2="showOptions=0"
        set="$VALUE=(showOptions=1)"
        radiobutton="no"
        subtype="no"
        />
      <check loc="5 80" size="135 20"
        style="PlainText"
        label="Inversion Recovery"
        vq="ir"
        vc="ir='y' ti=ti go('check')"
        vc2="ir='n' unarray('ti') go('check')"
        set="$VALUE=(ir='y')"
        />
      <toggle loc="155 100" size="45 20"
        style="PlainText"
        label="More"
        vq="showOptions"
        vc="showOptions=3"
        vc2="showOptions=0"
        set="$VALUE=(showOptions=3)"
        radiobutton="no"
        subtype="no"
        />
      <check loc="5 100" size="110 20"
        style="PlainText"
        label="Fatsat"
        vq="fsat Prescan_FatOffset"
        vc="fsat='y'  fsatfrq=fsatfrq pfsat=pfsat if (autooffset='y') then fsatfrq=Prescan_FatOffset endif go('check')"
        vc2="fsat='n' unarray('fsatfrq','pfsat')   go('check')"
        set="$VALUE=(fsat='y')"
        />
      <group loc="5 120" size="205 20"
        vq="diff"
        show="exists('diff','parameter'):$e $VALUE=$e"
        bg="transparent"
        border="None"
        tab="no"
        enable="no"
        useref="no"
        subtype="Untitled"
        >
        <toggle loc="150 0" size="45 20"
          style="PlainText"
          label="More"
          vq="showOptions"
          vc="showOptions=6"
          vc2="showOptions=0"
          set="$VALUE=(showOptions=6)"
          radiobutton="no"
          subtype="no"
          />
        <check loc="0 0" size="135 20"
          style="PlainText"
          label="Diffusion"
          vq="diff"
          vc="diff='y' showOptions=6 go('check')"
          vc2="diff='n' showOptions=0 go('check')"
          set="$VALUE=(diff='y')"
          />
      </group>
    </group>
    <group loc="650 0" size="210 230"
      style="Heading1"
      label="Sat Bands"
      vq="sat showOptions"
      show="if (showOptions=4) then $VALUE=1 else $VALUE=0 endif"
      bg="transparent"
      border="Etched"
      side="Top"
      justify="Left"
      tab="no"
      enable="no"
      reference="Satbands"
      useref="yes"
      subtype="Major"
      expanded="no"
      >
    </group>
    <group loc="435 0" size="210 230"
      style="Heading1"
      label="FOV &amp; Slice Plan"
      vq="lro"
      bg="transparent"
      border="Etched"
      side="Top"
      justify="Left"
      tab="no"
      enable="no"
      reference="FOVPlan2D"
      useref="yes"
      subtype="Major"
      expanded="no"
      >
    </group>
    <group loc="650 0" size="210 230"
      style="Heading1"
      label="Inversion Recovery"
      vq="ir showOptions"
      show="if (showOptions=1) then $VALUE=1 else $VALUE=0 endif"
      bg="transparent"
      border="Etched"
      side="Top"
      justify="Left"
      tab="no"
      enable="no"
      reference="InversionRecovery"
      useref="yes"
      subtype="Major"
      expanded="no"
      >
    </group>
    <group loc="650 0" size="210 230"
      style="Heading1"
      label="Magnetization Transfer"
      vq="mt showOptions"
      show="if (showOptions=2) then $VALUE=1 else $VALUE=0 endif"
      bg="transparent"
      border="Etched"
      side="Top"
      justify="Left"
      tab="no"
      enable="no"
      reference="MagTransfer"
      useref="yes"
      subtype="Major"
      expanded="no"
      >
    </group>
    <group loc="650 0" size="210 230"
      style="Heading1"
      label="Slice Plan"
      vq="iplanType showOptions"
      show="if (showOptions=5) then $VALUE=1 else $VALUE=0 endif"
      bg="transparent"
      border="Etched"
      side="Top"
      justify="Left"
      tab="no"
      enable="no"
      reference="MoreFOVPlan2D"
      useref="yes"
      subtype="Major"
      expanded="no"
      >
    </group>
    <group loc="650 0" size="210 230"
      style="Heading1"
      label="Fat Saturation"
      vq="fsat showOptions"
      show="if (showOptions=3) then $VALUE=1 else $VALUE=0 endif"
      bg="transparent"
      border="Etched"
      side="Top"
      justify="Left"
      tab="no"
      enable="no"
      reference="FatSaturation"
      useref="yes"
      subtype="Major"
      expanded="no"
      >
    </group>
    <group loc="650 0" size="210 230"
      style="Heading1"
      label="Diffusion"
      vq="diff showOptions"
      show="if (showOptions=6) then $VALUE=1 else $VALUE=0 endif"
      bg="transparent"
      border="Etched"
      side="Top"
      justify="Left"
      tab="no"
      enable="no"
      reference="Diffusion"
      useref="no"
      subtype="Major"
      expanded="yes"
      >
      <group loc="5 190" size="205 20"
        bg="transparent"
        border="None"
        tab="no"
        enable="no"
        useref="no"
        subtype="Untitled"
        >
        <textmessage loc="95 0" size="60 20"
          style="PlainText"
          vq="max_bval gdiff diff bvalue"
          set="arraymax('bvalue'):$VALUE $VALUE = $VALUE*(diff='y')"
          show="$VALUE = (diff='y')"
          digits="2"
          statpar="max_bval"
          />
        <label loc="155 0" size="50 20"
          style="PlainText"
          label="s/mm2"
          justify="Left"
          />
        <label loc="0 0" size="95 20"
          style="Label1"
          label="Max b-value"
          justify="Left"
          />
      </group>
      <group loc="5 170" size="205 20"
        bg="transparent"
        border="None"
        tab="no"
        enable="no"
        useref="no"
        subtype="Untitled"
        >
        <entry loc="95 0" size="60 20"
          style="PlainText"
          vq="gdiff diff tdelta tDELTA max_bval"
          vc="target_bval($VALUE)"
          set="$VALUE = max_bval"
          show="if (diff='y') then $VALUE = 1 else $VALUE = -1 endif"
          digits="2"
          />
        <label loc="155 0" size="50 20"
          style="PlainText"
          label="s/mm2"
          justify="Left"
          />
        <label loc="0 0" size="95 20"
          style="Label1"
          label="Target b-value"
          justify="Left"
          />
      </group>
      <menu loc="85 40" size="120 20"
        style="PlainText"
        label="menu"
        vq="diff diffscheme"
        vc="diffscheme='$VALUE' {'$VALUE'} go('check')"
        set="$VALUE = diffscheme "
        show="if (diff='y') then $VALUE = 1 else $VALUE = -1 endif"
        bg="VJBackground"
        editable="No"
        >
        <mlabel 
          label="Off"
          chval="zero_gf"
          />
        <mlabel 
          label="Readout"
          chval="diffRO"
          />
        <mlabel 
          label="Phase"
          chval="diffPE"
          />
        <mlabel 
          label="Slice"
          chval="diffSL"
          />
        <mlabel 
          label="All"
          chval="diff111"
          />
        <mlabel 
          label="Trace"
          chval="diffTR"
          />
        <mlabel 
          label="Dual"
          chval="dual_1"
          />
        <mlabel 
          label="Dual(2)"
          chval="dual"
          />
      </menu>
      <entry loc="125 140" size="60 20"
        style="PlainText"
        vq="dsl diff"
        vc="dsl = $VALUE bvalue"
        set="$VALUE = dsl"
        show="if (diff='y') then $VALUE = 1 else $VALUE = -1 endif"
        digits="2"
        disable="Grayed out"
        />
      <entry loc="65 140" size="60 20"
        style="PlainText"
        vq="dpe diff"
        vc="dpe = $VALUE bvalue"
        set="$VALUE = dpe"
        show="if (diff='y') then $VALUE = 1 else $VALUE = -1 endif"
        digits="2"
        disable="Grayed out"
        />
      <entry loc="5 140" size="60 20"
        style="PlainText"
        vq="dro diff"
        vc="dro = $VALUE bvalue"
        set="$VALUE = dro"
        show="if (diff='y') then $VALUE = 1 else $VALUE = -1 endif"
        digits="2"
        disable="Grayed out"
        />
      <label loc="145 100" size="30 20"
        style="PlainText"
        label="ms"
        justify="Left"
        />
      <label loc="145 80" size="30 20"
        style="PlainText"
        label="ms"
        justify="Left"
        />
      <label loc="145 60" size="40 20"
        style="PlainText"
        label="G/cm"
        justify="Left"
        />
      <entry loc="85 100" size="60 20"
        style="PlainText"
        vq="tDELTA diff"
        vc="tDELTA = $VALUE/1000 go('check')"
        set="$VALUE = tDELTA*1000"
        show="if (diff='y') then $VALUE = 1 else $VALUE = -1 endif"
        digits="2"
        disable="Grayed out"
        />
      <entry loc="85 80" size="60 20"
        style="PlainText"
        vq="tdelta diff"
        vc="tdelta = $VALUE/1000 go('check')"
        set="$VALUE = tdelta*1000"
        show="if (diff='y') then $VALUE = 1 else $VALUE = -1 endif"
        digits="2"
        disable="Grayed out"
        />
      <entry loc="85 60" size="60 20"
        style="PlainText"
        vq="gdiff diff"
        vc="gdiff = $VALUE go('check')"
        set="$VALUE = gdiff"
        show="if (diff='y') then $VALUE = 1 else $VALUE = -1 endif"
        digits="2"
        disable="Grayed out"
        />
      <label loc="5 120" size="110 20"
        style="Label1"
        label="Scaling (ro, pe, sl)"
        justify="Left"
        />
      <label loc="5 100" size="80 20"
        style="Label1"
        label="Separation"
        justify="Left"
        />
      <label loc="5 80" size="80 20"
        style="Label1"
        label="Duration"
        justify="Left"
        />
      <label loc="5 60" size="80 20"
        style="Label1"
        label="Amplitude"
        justify="Left"
        />
      <label loc="5 40" size="80 20"
        style="Label1"
        label="Scheme"
        justify="Left"
        />
      <check loc="5 20" size="95 20"
        style="PlainText"
        label="Diffusion"
        vq="diff"
        vc="diff='y' dro=dro dpe=dpe dsl=dsl go('check')"
        vc2="diff='n' unarray('dro','dpe','dsl') go('check')"
        set="$VALUE=(diff='y')"
        />
    </group>
    <group loc="5 235" size="855 40"
      bg="transparent"
      border="None"
      side="Top"
      justify="Left"
      tab="no"
      enable="no"
      reference="InfoGroup"
      useref="yes"
      subtype="Untitled"
      expanded="no"
      >
    </group>
  </group>
</template>
