1 / 30

MATLAB LCLS Control Interface

MATLAB LCLS Control Interface. Sergei Chevtsov, 02-07-2007. PDF Guide. http://lcls-dev/tiki-index.php?page=Matlab_Programmers_Guide. Sergei Chevtsov, 02-07-2007. Contents. Overview LabCA AIDA Beyond. Sergei Chevtsov, 02-07-2007. Contents. Overview LabCA AIDA Beyond.

sstackhouse
Download Presentation

MATLAB LCLS Control Interface

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. MATLABLCLS Control Interface Sergei Chevtsov, 02-07-2007

  2. PDF Guide http://lcls-dev/tiki-index.php?page=Matlab_Programmers_Guide Sergei Chevtsov, 02-07-2007

  3. Contents • Overview • LabCA • AIDA • Beyond Sergei Chevtsov, 02-07-2007

  4. Contents • Overview • LabCA • AIDA • Beyond Sergei Chevtsov, 02-07-2007

  5. Overview EPICS SLC Matlab (32 bit Linux, prod network) Sergei Chevtsov, 02-07-2007

  6. Overview EPICS SLC Presentation scope Matlab (32 bit Linux, prod network) Sergei Chevtsov, 02-07-2007

  7. Overview PVs Model Matlab (32 bit Linux) Sergei Chevtsov, 02-07-2007

  8. Overview PVs Model LabCA AIDA Matlab (32 bit Linux) Sergei Chevtsov, 02-07-2007

  9. Contents • Overview • LabCA • AIDA • Beyond Sergei Chevtsov, 02-07-2007

  10. LabCA PVs Model LabCA AIDA Matlab (32 bit Linux) Sergei Chevtsov, 02-07-2007

  11. LabCA • Matlab functions • Names begin with “lca” Most commonly used: • lcaGet • lcaPut • lcaSetMonitor/lcaNewMonitorValue Sergei Chevtsov, 02-07-2007

  12. lcaGet [value, timestamp] = lcaGet(pv) Gets PV value, e.g. >> lcaGet('MIKE:BEAM') ans = 'ON' Sergei Chevtsov, 02-07-2007

  13. lcaPut lcaPut(pv, value) Sets PV value, e.g. >> lcaPut('MIKE:BEAM', 'OFF') Sergei Chevtsov, 02-07-2007

  14. Why monitors? PVs Sergei Chevtsov, 02-07-2007

  15. Why monitors? PVs for i=1:n get; Repeated data retrieval Sergei Chevtsov, 02-07-2007

  16. Why monitors? PVs • …but no new data yet • network overload • complex algorithms for i=1:n get; Sergei Chevtsov, 02-07-2007

  17. Why monitors? PVs for i=1:n waitAndGet; Wait until new data, then retrieve it Sergei Chevtsov, 02-07-2007

  18. lcaSetMonitor lcaSetMonitor(pv) Sets PV monitor, e.g. >> lcaSetMonitor('MIKE:BEAM') Sergei Chevtsov, 02-07-2007

  19. lcaNewMonitorValue flag = lcaNewMonitorValue(pv) Returns whether a new PV value available, e.g. >> lcaNewMonitorValue('MIKE:BEAM') ans = 1 Sergei Chevtsov, 02-07-2007

  20. Contents • Overview • LabCA • AIDA • Beyond Sergei Chevtsov, 02-07-2007

  21. AIDA PVs Model LabCA AIDA Matlab (32 bit Linux) Sergei Chevtsov, 02-07-2007

  22. AIDA • Matlab functions • Names begin with “aida” Most commonly used: • aidalist • aidaget Sergei Chevtsov, 02-07-2007

  23. aidalist aidalist(device, attribute) Lists attributes of the specified device (use % as wildcard), e.g. >> aidalist('QUAD:LI01:221', 'Z%') chevtsov@flora's password: QUAD:LI01:221 Z QUAD:LI01:221 ZTIM ans = 0 Sergei Chevtsov, 02-07-2007

  24. aidaget aidaget(‘<device>//<attribute>’) Gets value of the specified device attribute e.g. >> aidaget('QUAD:LI01:221//ZTIM') ans = -2.8622e+12 Sergei Chevtsov, 02-07-2007

  25. Contents • Overview • LabCA • AIDA • Beyond Sergei Chevtsov, 02-07-2007

  26. Beyond We give you the wheel, you build the vehicle. Sergei Chevtsov, 02-07-2007

  27. Beyond Resources: time, money etc. Sergei Chevtsov, 02-07-2007

  28. Beyond Sergei Chevtsov, 02-07-2007

  29. Beyond Sergei Chevtsov, 02-07-2007

  30. The end Thank you  Sergei Chevtsov, 02-07-2007

More Related