Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • For instructions and examples see the Programmer's Guide.
  • All shared matlab scripts are stored in the version control system, CVS. LCLS and FACET matlab scripts share their CVS repository, so there are many LCLS-specific scripts to be found in the toolbox and src directories, alongside the FACET and so-called "accelerator-agnostic" versions.
  • Please note: to release a matlab script to production (i.e. to copy the completed and tested version into /usr/local/facet/tools/matlab/toolbox) you need to use the cvs2prod command.
    In the same directory where you are developing and testing script newScript.m, enter this:
    cvs2prod newScript.m

Matlab support PVs
A set of Matlab support PVs for FACET are available from the matlab support soft IOCs, with the naming convention
SIOC:SYS1:ML0x:<type><n>

  • x is the IOC number, from 1 - 3
  • type indicates PV type
  • n is a 3-digit number

To view the PVs:

  • bring up facethome
  • click the “Matlab GUIs…” button
  • click the “Matlab PVs…” button (bottom center)
  • click the button for the PV type you’re interested in (e.g. “Matlab Calculation PVs…”)
  • in the dropdown list, select the range of PVs to view

To use the PVs:

  • Use the edm displays above to find PV(s) that are not used already
  • Optionally, edit in the edm display
  • Use PV name(s) in your matlab program

Example display of Matlab support CALC PVs:
Image Added

...

V. BSA: Beam Synchronous Acquisition

...