data = smrun(scan, [
filename]
)
data = smrun(filename) (will assume scan = smscan)
Run a scan, optionally saving the result to a file. See the page documenting the scan structure for help in designing scans.
Fixme -- write an example
Set constant channels
Call configfn; scan=configfn(i).fn(scan,configfn(i).args{:});
Main loop
-
For loops needing update (outer first)
- Set values and/or program ramps
- call prefn
- wait
- trigger ramped channels if needed
-
end
-
For loops needing readout (inner first)
- read data
- call postfn
- apply procfn
- display data
- save data if needed
- call datafn
-
end end
Save data.