"cqreset - reset parameters for a chemistry study"

prescan[1]='Complete'  "status for findz0"
prescan[2]='Complete'  "status for gmapshim"
prescan[3]='n'         "autoprocess"
prescan[4]='n'         "status for protune"
prescan[5]=''          "used in prescan to store actionid"
prescan[6]='n'         "used to reshim after tune"
prescan[7]='off'       "status of a protocol in a chained study queue (sqmode='go'/auto='y')"
prescan[8]='nnn'       "when email"
prescan[9]='off'       "save all prescan fids/save only last prescan fid"
prescan[10]=''         "scout macro"

sqmode='pause'         "stop, pause, next, go"
"sqsaveid='null'"

if atune='y' then if wtune<>'n' then
  prescan[4]='y'
endif endif

if $#>0.5 then if $1='prescan' then
  return  "only reset prescans"
endif endif

//if appmode<>'lc' then
//  seqfil='info' should also reset parameters w/rt? previous parameter values persist?
//endif
exists('studytime','parameter'):$e
if $e>0.5 then setvalue('studytime',0) endif
exists('Gmap','parameter'):$e
if $e<0.5 then create('Gmap','string') endif
Gmap='lk'
name=''
ident=''
study=''
protocols=''
scans=''
samplename=''
notebook=''
page=''
wexp=''
ctext
