Versions Compared

Key

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

...

getSystem() function
Within a matlab script you can use the getSystem function to determine the accelerator system defined in the current working environment. This is useful for writing scripts that can be used for multiple accelerator systems, with conditional actions depending on accelerator.

Wiki Markup
\[system,accelerator\] = getSystem();

Return values are:

FACET

...

system = SYS1, accelerator = FACET

LCLS

...

system = SYS0, accelerator = LCLS

NLCTA

...

system = SYS4, accelerator = NLCTA

CVS
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. For much more info see the Programmer's Guide.

...