Versions Compared

Key

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

...

For a complete overview, detailed instructions and examples please see the "MATLAB Programmer's Guide for FACET physicists"

Here are a few excerpts:

Environment setup
After you log onto a Linux machine using the fphysics account, you'll need to customize the environment for matlab. Once Mike Z. has set up your user directory under fphysics as described in II. above, add these commands to your /home/fphysics/userid/ENVS file, and they will be automatically invoked every time you log in. Note: All strings are case-sensitive.

...

  • matlab scripts developed by the FACET software engineering group are here:
    /usr/local/facet/tools/matlab/src

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.

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.

...