...
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(); Wiki Markup
Return values are:
FACET | system = SYS1, accelerator = FACET |
LCLS | system = SYS0, accelerator = LCLS |
NLCTA | system = SYS4, accelerator = NLCTA |
...
Example display of Matlab support AO PVs:
CODE Examples to be added
V. BSA: Beam Synchronous Acquisition
- Buffered Data Acquisition example script:
- log into facet-srv01 as fphysics
- have a look at Mike Zelazny's script:
/usr/local/facet/tools/matlab/toolbox/EPICS_SLC_buffAcq_Example.m
EPICS PV visibility
- On the FACET network, PVs hosted by all FACET IOCs are available.
- In addition, LCLS PVs are available read-only via a PV gateway, which is configured in the default FACET epics setup. For more information see: https://confluence.slac.stanford.edu/display/ACCSOFT/LCLS+and+FACET+production+PV+gateways
#top
...
V. BSA: Beam Synchronous Acquisition - CURRENTLY UNDER CONSTRUCTION FOR FACET
For a complete overview, detailed instructions and examples please see the "MATLAB Programmer's For a complete overview, detailed instructions and examples please see the "MATLAB Programmer's Guide for FACET physicists", attached to this Confluence page.
A LCLS event system has been setup to read devices synchronous with beam crossing, such as BPMS and toroids. FACET beam synchronous acquisition will interface with both EPICS and the VMS-based SCP. Implementation of this interface is currently in process. The BSA system will be usable from within Matlab. Note that this is not implemented for image data collection, which is described in a separate section of the Programmer's Guide.
more coming...
...
VI. AIDA: Accelerator Integrated Data Access - CURRENTLY UNDER CONSTRUCTION FOR FACET
http://www.slac.stanford.edu/grp/cd/soft/aida/
...
To obtain control system names and values, AIDA is accessible from the linux command line, via aidaWeb https://seal.slac.stanford.edu/aidaweb, through matlab and other language interfaces.
list of data sources
...
- see Individual Service Data Users Guides on \[ [http://www.slac.stanford.edu/grp/cd/soft/aida/ ] \]
command line tools
...
- aidalist: \[ [http://www.slac.stanford.edu/grp/cd/soft/aida/aida_ug.html#What] \ ]unmigrated-wiki-markup
- aidaget, aidaset: \ [[https://confluence.slac.stanford.edu/display/ACCSOFT/AIDA+Command-line+tools] \]
matlab
...
- ]
matlab
- using aida in matlab programs: \ [[http://www.slac.stanford.edu/grp/cd/soft/aida/aida_matlab.html ] \
SLC Buffered Data Service
web interface
...
- AidaWeb: \ [[https://confluence/display/ACCSOFT/AidaWeb+Help] \ ]
...
VII. FAQs
Q: How do I log onto the channel access network?
A: While shared accounts are used, the command is:
ssh fphysics@facet-srv01
If that hangs, then ssh into mcclogin first:
ssh mcclogin
...