Skip to content

Latest commit

 

History

History
42 lines (31 loc) · 919 Bytes

smrun.md

File metadata and controls

42 lines (31 loc) · 919 Bytes

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.

Examples

Fixme -- write an example

See Also


Pseudocode for smrun

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.