...
- 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 cvs commit your changes, and then use the cvs2prod command.
In the same directory where you are developing and testing script newScript.m, enter this:
cvs2prod newScript.m
basic flow for working with matlab scripts and CVS
- if you haven't already, cvs checkout the matlab toolbox directory into your working area (/home/fphysics/fred)
cd /home/fphysics/fred (if you're fred!)
cvs co matlab/toolbox - cd into the toolbox directory
cd matlab/toolbox - to get the latest CVS-ed copies of a script, use cvs update:
cvs update myScript.m
or to get the latest CVS-ed copies of all the scripts:
cvs update - work on a new script, or an existing script
- test thoroughly until your work is ready for primetime
- cvs add any new scripts you've created
cvs add myScript.m - cvs commit scripts that you have changed
cvs commit myScript.m - release new/changed scripts to the production directory (/usr/local/facet/tools/matlab/toolbox)
cvs2prod myScript.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>
...