lbt ao software components a. puglisi, arcetri, 21 th feb 2005 lbt ao software components alfio...
TRANSCRIPT
LBT AO software components
A. Puglisi, Arcetri, 21th Feb 2005
LBT AO software components
Alfio PuglisiLuca Fini
Osservatorio Astrofisico di Arcetri, Florence, Italy
LBT AO software components
A. Puglisi, Arcetri, 21th Feb 2005
● Hardware controllers
● Tested configurations
● Shared memory buffers
● IDL server
● Python scripting
Summary
LBT AO software components
A. Puglisi, Arcetri, 21th Feb 2005
MVxxSTATUSMvxxERRMSGMVxxCURPOSMvxxLOENDMvxxHIENDMVxxSPEEDMvxxHISPEED
MVxxTGTPOSMvxxENABLE..........
RTDB Var Set
User prompt/GUI /
Automatic script N
oti
fy
RS232 over Ethernet
MotorController
Basic method for position control using RTDB variables
Two types of variable: global and private.
Commands are implemented as writes to global variables. Answers as writes to private variables
Mx
LBT AO software components
A. Puglisi, Arcetri, 21th Feb 2005
MV01STATUSMV01ERRMSGMV01CURPOSMV01LOENDMV01HIENDMV01SPEEDMv01HISPEEDMV01TGTPOSMv01ENABLE
MV02STATUSMV02ERRMSGMV02CURPOSMV02LOENDMV02HIENDMV02SPEEDMv02HISPEEDMV02TGTPOSMv02ENABLE
MV03STATUSMV03ERRMSGMV03CURPOSMV03LOENDMV03HIENDMV03SPEEDMv03HISPEEDMV03TGTPOSMv03ENABLE......
RTDB Var Set
User prompt/GUI /
Automatic script
RS232 over Ethernet
Motor #1Controller
RS232 over Ethernet
Motor #2Controller
RS232 over Ethernet
Motor #3Controller
Mx
Mx
Mx
LBT AO software components
A. Puglisi, Arcetri, 21th Feb 2005
MVxxSTATUSMVxxERRMSGMvxxCURPOSMVxxLOENDMvxxHIENDMVxxSPEEDMvxxHISPEED
MVxxTGTPOSMvxxENABLE..........
RTDB Var Set
ApplicationProgram
Noti
fy
MxRS232 over Ethernet
Old steppercontroller
Changing a component transparently
RS232 over Ethernet
New steppercontroller
Mx
LBT AO software components
A. Puglisi, Arcetri, 21th Feb 2005
MVxxSTATUSMVxxERRMSGMvxxCURPOSMvxxLOENDMvxxHIENDMVxxSPEEDMvxxHISPEED
MVxxTGTPOSMvxxENABLE..........
RTDB Var Set
Test program
Noti
fy
RS232 over Ethernet
Steppercontroller
Testing components using variables
AND/OR
Text prompt Mx
LBT AO software components
A. Puglisi, Arcetri, 21th Feb 2005
WFS
RTR
N
E
T
W
O
R
K
Tested configuration: Arcetri WFS lab
MSGLIB
MsgDRTDB
MS
GLIB
MSGLIB
MS
GLIB
CO
MM
IBRTRctrlMSGLIBMSGLIB
GUI
CO
MM
LIBWFS
ctrl
MSGLIB
MSGLIB
ChUIM
SG
LIBIDL
process
● Many different interfaces in parallel
● No arbitration, since it is a test environment
Ethernet/RS232converter
Shar
ed m
emor
y
LBT AO software components
A. Puglisi, Arcetri, 21th Feb 2005
Shared memory buffers
Ansynchronous buffers
Synchronous (FIFO mode)
Producer
Shared memory
Consumer #1 Consumer #2 Consumer #3
Producer
Shared memory
Consumer
1 2 3 4 5
1 4 5
1 2 3 4 5
1 2 3 4 53 3
LBT AO software components
A. Puglisi, Arcetri, 21th Feb 2005
X linear stage
WFS
N
E
T
W
O
R
K
Tested configuration: Linear stages test in Potsdam
MsgDRTDB
MSGLIB
MS
GLIB
MSGLIB
MS
GLIB Ethernet/RS232
converter
LAPTOP COMPUTER (!)
GUI
MSGLIB
Stagesctrl
MSGLIB CO
MM
LIB
Stagesctrl
MSGLIB CO
MM
LIB
Stagesctrl
MSGLIB CO
MM
LIB
Y linear stage
Z linear stage
LBT AO software components
A. Puglisi, Arcetri, 21th Feb 2005
N
E
T
W
O
R
K
Tested configuration: Arcetri P45 lab
COMMLIB
Mirrorctrl
MSGLIB
MSGLIB
MsgDRTDB
MS
GLIB
MSGLIB
MS
GLIB
MSGLIB
IDLprocess
P45 prototype
MSGLIB
IDLprocess
Shared memory Shared memory
Command path
Fast data path
Ethernet line
LBT AO software components
A. Puglisi, Arcetri, 21th Feb 2005
N
E
T
W
O
R
K
P45 / LBT672 control with IDL server
N E
T W
O R
KN
E T
W O
R K
MSGLIB
MS
GLIB
MSGLIB
MS
GLIB
MSGLIB
GUIinterface
MSGLIB
textprompt
CO
MM
IB
Mirrorctrl
MSGLIB
Command path
Answer path IDLserverMSGLIB
IDL
Stdin/out
MsgDRTDB
LBT AO software components
A. Puglisi, Arcetri, 21th Feb 2005
Pythonclasses
MS
GL
IB
MSGLIB
MsgDRTDB
MS
GLIB
MSGLIB
MS
GLIB
Text command prompt
Graphic interface
Python scripts
Python scripting interface
C W
rapp
er
To
cont
roll
erpr
ogra
ms
TCSinterface
TCS
LBT AO software components
A. Puglisi, Arcetri, 21th Feb 2005
What about CPU usage?
● Loop closed● Realtime display active● Mirror commands monitor● Command line interface● Various graphic interfaces
Only the graphic interfaces use a significant amount of processing power