Download presentation
Presentation is loading. Please wait.
1
MATLAB LCLS Control Interface
Sergei Chevtsov,
2
PDF Guide http://lcls-dev/tiki-index.php?page=Matlab_Programmers_Guide
Sergei Chevtsov,
3
Contents Overview LabCA AIDA Beyond Sergei Chevtsov,
4
Contents Overview LabCA AIDA Beyond Sergei Chevtsov,
5
(32 bit Linux, prod network)
Overview EPICS SLC Matlab (32 bit Linux, prod network) Sergei Chevtsov,
6
(32 bit Linux, prod network)
Overview EPICS SLC Presentation scope Matlab (32 bit Linux, prod network) Sergei Chevtsov,
7
Overview PVs Model Matlab (32 bit Linux) Sergei Chevtsov,
8
Overview PVs Model LabCA AIDA Matlab (32 bit Linux)
Sergei Chevtsov,
9
Contents Overview LabCA AIDA Beyond Sergei Chevtsov,
10
LabCA PVs Model LabCA AIDA Matlab (32 bit Linux)
Sergei Chevtsov,
11
LabCA Matlab functions Names begin with “lca” Most commonly used:
lcaGet lcaPut lcaSetMonitor/lcaNewMonitorValue Sergei Chevtsov,
12
lcaGet [value, timestamp] = lcaGet(pv) Gets PV value, e.g.
>> lcaGet('MIKE:BEAM') ans = 'ON' Sergei Chevtsov,
13
lcaPut lcaPut(pv, value) Sets PV value, e.g.
>> lcaPut('MIKE:BEAM', 'OFF') Sergei Chevtsov,
14
Why monitors? PVs Sergei Chevtsov,
15
Why monitors? PVs for i=1:n get; Repeated data retrieval
Sergei Chevtsov,
16
Why monitors? PVs …but no new data yet network overload for i=1:n get;
complex algorithms for i=1:n get; Sergei Chevtsov,
17
Why monitors? PVs for i=1:n Wait until new data, waitAndGet;
then retrieve it Sergei Chevtsov,
18
lcaSetMonitor lcaSetMonitor(pv) Sets PV monitor, e.g.
>> lcaSetMonitor('MIKE:BEAM') Sergei Chevtsov,
19
lcaNewMonitorValue flag = lcaNewMonitorValue(pv)
Returns whether a new PV value available, e.g. >> lcaNewMonitorValue('MIKE:BEAM') ans = 1 Sergei Chevtsov,
20
Contents Overview LabCA AIDA Beyond Sergei Chevtsov,
21
AIDA PVs Model LabCA AIDA Matlab (32 bit Linux)
Sergei Chevtsov,
22
AIDA Matlab functions Names begin with “aida” Most commonly used:
aidalist aidaget Sergei Chevtsov,
23
aidalist aidalist(device, attribute)
Lists attributes of the specified device (use % as wildcard), e.g. >> aidalist('QUAD:LI01:221', 'Z%') password: QUAD:LI01: Z QUAD:LI01: ZTIM ans = Sergei Chevtsov,
24
aidaget aidaget(‘<device>//<attribute>’)
Gets value of the specified device attribute e.g. >> aidaget('QUAD:LI01:221//ZTIM') ans = e+12 Sergei Chevtsov,
25
Contents Overview LabCA AIDA Beyond Sergei Chevtsov,
26
Beyond We give you the wheel, you build the vehicle.
Sergei Chevtsov,
27
Resources: time, money etc.
Beyond Resources: time, money etc. Sergei Chevtsov,
28
Beyond Sergei Chevtsov,
29
Beyond Sergei Chevtsov,
30
The end Thank you Sergei Chevtsov,
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.