lbt ao software components a. puglisi, arcetri, 21 th feb 2005 lbt ao software components alfio...

13
LBT AO software components A. Puglisi, Arcetri, 21 th Feb LBT AO software components Alfio Puglisi Luca Fini Osservatorio Astrofisico di Arcetri, Florence, Italy

Upload: cheyenne-joe

Post on 01-Apr-2015

216 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: LBT AO software components A. Puglisi, Arcetri, 21 th Feb 2005 LBT AO software components Alfio Puglisi Luca Fini Osservatorio Astrofisico di Arcetri,

LBT AO software components

A. Puglisi, Arcetri, 21th Feb 2005

LBT AO software components

Alfio PuglisiLuca Fini

Osservatorio Astrofisico di Arcetri, Florence, Italy

Page 2: LBT AO software components A. Puglisi, Arcetri, 21 th Feb 2005 LBT AO software components Alfio Puglisi Luca Fini Osservatorio Astrofisico di Arcetri,

LBT AO software components

A. Puglisi, Arcetri, 21th Feb 2005

● Hardware controllers

● Tested configurations

● Shared memory buffers

● IDL server

● Python scripting

Summary

Page 3: LBT AO software components A. Puglisi, Arcetri, 21 th Feb 2005 LBT AO software components Alfio Puglisi Luca Fini Osservatorio Astrofisico di Arcetri,

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

Page 4: LBT AO software components A. Puglisi, Arcetri, 21 th Feb 2005 LBT AO software components Alfio Puglisi Luca Fini Osservatorio Astrofisico di Arcetri,

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

Page 5: LBT AO software components A. Puglisi, Arcetri, 21 th Feb 2005 LBT AO software components Alfio Puglisi Luca Fini Osservatorio Astrofisico di Arcetri,

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

Page 6: LBT AO software components A. Puglisi, Arcetri, 21 th Feb 2005 LBT AO software components Alfio Puglisi Luca Fini Osservatorio Astrofisico di Arcetri,

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

Page 7: LBT AO software components A. Puglisi, Arcetri, 21 th Feb 2005 LBT AO software components Alfio Puglisi Luca Fini Osservatorio Astrofisico di Arcetri,

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

Page 8: LBT AO software components A. Puglisi, Arcetri, 21 th Feb 2005 LBT AO software components Alfio Puglisi Luca Fini Osservatorio Astrofisico di Arcetri,

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

Page 9: LBT AO software components A. Puglisi, Arcetri, 21 th Feb 2005 LBT AO software components Alfio Puglisi Luca Fini Osservatorio Astrofisico di Arcetri,

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

Page 10: LBT AO software components A. Puglisi, Arcetri, 21 th Feb 2005 LBT AO software components Alfio Puglisi Luca Fini Osservatorio Astrofisico di Arcetri,

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

Page 11: LBT AO software components A. Puglisi, Arcetri, 21 th Feb 2005 LBT AO software components Alfio Puglisi Luca Fini Osservatorio Astrofisico di Arcetri,

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

Page 12: LBT AO software components A. Puglisi, Arcetri, 21 th Feb 2005 LBT AO software components Alfio Puglisi Luca Fini Osservatorio Astrofisico di Arcetri,

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

Page 13: LBT AO software components A. Puglisi, Arcetri, 21 th Feb 2005 LBT AO software components Alfio Puglisi Luca Fini Osservatorio Astrofisico di Arcetri,

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