naos new analog observation system stephane deghaye ab/co/fc section meeting 22 january 2003

20
nAos new Analog observation system Stephane Deghaye AB/CO/FC section meeting 22 January 2003

Upload: laura-curtis

Post on 05-Jan-2016

219 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: NAos new Analog observation system Stephane Deghaye AB/CO/FC section meeting 22 January 2003

nAos

new Analog observation system

Stephane DeghayeAB/CO/FC section meeting

22 January 2003

Page 2: NAos new Analog observation system Stephane Deghaye AB/CO/FC section meeting 22 January 2003

Overview

The nAos systemThe vscope applicationThe nAos front-endsTelecomFuture

Page 3: NAos new Analog observation system Stephane Deghaye AB/CO/FC section meeting 22 January 2003

The nAos system

LAN

Oracle database

Virtual oscilloscopes

Analog inputs

Analog inputs

Analog inputs

VXI crates

Triggers

Page 4: NAos new Analog observation system Stephane Deghaye AB/CO/FC section meeting 22 January 2003

The vscope application

C / SQL / MOTIF;3rd generation of frame;LOC: 40k;Maintenance cost: ++Feasible in Java ? (performance)

Page 5: NAos new Analog observation system Stephane Deghaye AB/CO/FC section meeting 22 January 2003

The database

38 tables – 12 commons, 13 CPS & 13 SPS.True relational design with PK, FK and constraintsStore information on:– Signal location– Menu hierarchy– Signal setting and global setting– Hardware installed– Events and statistics.

Page 6: NAos new Analog observation system Stephane Deghaye AB/CO/FC section meeting 22 January 2003

The front-ends

Back-plane bus standards;Operating system and system facilities;Application.

Page 7: NAos new Analog observation system Stephane Deghaye AB/CO/FC section meeting 22 January 2003

VXI

Definition of the two outer columns of the P2 to include:– A very stable 10 MHz ECL clock– ECL and analog supply voltages– ECL & TTL trigger lines– An analog summing bus– The module identification bus– The local bus (daisy chain structure)

Deeper than the VME standard (x2).

Page 8: NAos new Analog observation system Stephane Deghaye AB/CO/FC section meeting 22 January 2003

CompactPCI

Synchronous bus PCI @ 33MHz;Wider bandwidth than in the VME (! 64x, …);Shorter back-plane available due to reflection Bridge in the back-plane;Today, fast scopes are only in CPCI.

Page 9: NAos new Analog observation system Stephane Deghaye AB/CO/FC section meeting 22 January 2003

Operating systems

VxWorks on VXI with NI CPU 030;LynxOS on VXI with VME CPU CES;Linux on CPCI with CPCI CPU (x86 based).

Page 10: NAos new Analog observation system Stephane Deghaye AB/CO/FC section meeting 22 January 2003

VxWorks on VXI

RTOS;Mono-user;Everything is bound dynamically to the kernel;Use of the NI resource manager (PnP);License problem.

Page 11: NAos new Analog observation system Stephane Deghaye AB/CO/FC section meeting 22 January 2003

LynxOS on VXI

LynxOS specialists at CERN;Better integration of the nAos crates;Need to write our own RESMAN (A. Gagnaire);Need to use an VME/VXI adapter.

RIO 8062PowerPCVME Controller V

ME

Co

nn

ecto

rs

Glue logic

VX

I Co

nn

ecto

rs

Page 12: NAos new Analog observation system Stephane Deghaye AB/CO/FC section meeting 22 January 2003

nAos FE applic. (VxWorks)

Multi-threads (VxWorks) all data shared;Written in C;One big file with everything + pseudo device driver for each HW module;Use of message queues for inter threads communication;Some nice remote diagnostic features.

Page 13: NAos new Analog observation system Stephane Deghaye AB/CO/FC section meeting 22 January 2003

nAos FE applic. (LynxOS)

Multi tasks + threads for simple tasks (e.g. waiting on a handle);Use POSIX shared memory segment;Modularization of the applic (one file per process, library for HW access and for common functions);Add auto recovery & debugging features.

Page 14: NAos new Analog observation system Stephane Deghaye AB/CO/FC section meeting 22 January 2003

Process View

dtm rtNaoPLS server

NaosServerSERVICE server

NaosBig|BrotherServerSURVEY server

tEndDigitTask

NaosM anagerTask

NaosDispacherTask

NaosTrgTraiMulpxTask

NaosRoutingSignalTask

Scope1CtrlScope1CtrlScope1CtrlScope1Ctrl

Task

tJetonDelay 2 m m

Telegram s

NaosQueueServertoManager

NaosQueueM anagerToRoute

LAN

NaosQueueM anagerToScope[1-8]

NaosQueueW d

NaosQueueM anagerToCount

NaosQueueM sgDispatcher

60

9090 90

91 91

95 95

100

102

Vxi HardwaresScopeŸ HP E1428AMulpxŸ 18x12PFŸ HP E146 A

N N N

L

N L

L

VL

H

VH

Page 15: NAos new Analog observation system Stephane Deghaye AB/CO/FC section meeting 22 January 2003

The nAos Protocol

Messages structure

Group Key ScopeLA ChannnelNo Parameters

• Group: 1 byte, message identifier, response => MSB = 1;

• Key: 1 byte, comb. of the virtual scope no and the channel no;

• ScopeLA: 1 byte, logical address of the scope used;

• ChannelNo: 1 byte, channel no in the scope of LA ‘ScopeLA’

• Parameters: ASCII chars depending of the group, from 0 to …

NB: Several messages can be send at the same time by separating them with a ‘;’

Page 16: NAos new Analog observation system Stephane Deghaye AB/CO/FC section meeting 22 January 2003

The nAos Protocol

Parameters structure

• No parameter. E.g SCOPE_TYPE, WS_COUNTV_UNLOCK;

• Fixed in number and position.

E.g. ADD_SIGNAL (signalID, prio, triggerCrate, triggerId, triggerCode);

• Variable in number and position => tag or tag-value pair.

E.g. SCOPE_ACTION(PROP_TIME, #PROP_TIME, …).

UDP/IP

• Connectionless

• Unreliable

Page 17: NAos new Analog observation system Stephane Deghaye AB/CO/FC section meeting 22 January 2003

Where we want to go…

The nAos needs to be re-written using standard components;The vscope application is now unmaintainable;We can share hardware and software with other groups (SiWG);nAos can be more than just curve visualisation (Contract ?)We need another way to trigger the scopes;

Page 18: NAos new Analog observation system Stephane Deghaye AB/CO/FC section meeting 22 January 2003

Trigger…

True pulse (not a trigger)

Tagging module

Pretrigger (computed)

Pretrigger (computed)

Page 19: NAos new Analog observation system Stephane Deghaye AB/CO/FC section meeting 22 January 2003

The END !

Thank you !

Page 20: NAos new Analog observation system Stephane Deghaye AB/CO/FC section meeting 22 January 2003

Vscope zoom