1 Electronics Status of the MEG Trigger system Status and plans for DAQ MSCB slow control system Status of the MEG Trigger system Status and plans for.

Slides:



Advertisements
Similar presentations
20. Feb. 2002, LTP1 Electronics for the  e  experiment Short introduction and status Trigger electronics DAQ electronics Slow Control Developments useful.
Advertisements

January 28th, 2010Clermont Ferrand, Paul Scherrer Institut DRS Chip Developments Stefan Ritt.
Local Trigger Control Unit prototype
Oscilloscope Watch Teardown. Agenda History and General overview Hardware design: – Block diagram and general overview – Choice of the microcontroller.
A scalable DAQ system using the DRS4 sampling chip H.Friederich 1, G.Davatz 1, U.Hartmann 2, A.Howard 1, H.Meyer 1, D.Murer 1, S.Ritt 2, N.Schlumpf 2 1.
Test of LLRF at SPARC Marco Bellaveglia INFN – LNF Reporting for:
Presents The Silver Family An Integrated Approach to Processors, Data Communication and Head End Integration.
28 August 2002Paul Dauncey1 Readout electronics for the CALICE ECAL and tile HCAL Paul Dauncey Imperial College, University of London, UK For the CALICE-UK.
July 10, 2008 PHENIX RPC review C.Y. Chi 1 RPC Front End Electronics On chamber discriminator  The strips  The CMS discriminator chips  The discriminator.
Large Area, High Speed Photo-detectors Readout Jean-Francois Genat + On behalf and with the help of Herve Grabas +, Samuel Meehan +, Eric Oberla +, Fukun.
Aztec PC Oscilloscope Michael Mason Jed Brown Josh Price Andrew Youngs.
Status of LAV FEE electronics G. Corradi, C. Paglia, D. Tagnani & M. Raggi, T. Spadaro, P. Valente.
July 16/17, 2002 MUEGAMMA review PSI1 Slow Control.
1 DAQ Update. 2 DAQ Status DAQ was running successfully and stably in ’07 beam time Trigger bus scheme has proven to be very flexible – Added additional.
Saverio Minutoli INFN Genova 1 T1 Electronic status Electronic items involved: Anode Front End Card Cathode Front End Card Read-Out Control card Slow Control.
Lecce - 23 Sep The Trigger System of the MEG Experiment Marco Grassi INFN - Pisa On behalf of D. Nicolò F. Morsani S. Galeotti M. Grassi.
Bologna, 10/04/2003 Workshop on LHC Physics with High P t Muon in CMS R.Travaglini – INFN Bologna Status of Trigger Server electronics Trigger boards TB.
Electronics for PS and LHC transformers Grzegorz Kasprowicz Supervisor: David Belohrad AB-BDI-PI Technical student report.
Trigger Supervisor (TS) J. William Gu Data Acquisition Group 1.TS position in the system 2.First prototype TS 3.TS functions 4.TS test status.
Leo Greiner IPHC testing Sensor and infrastructure testing at LBL. Capabilities and Plan.
DLS Digital Controller Tony Dobbing Head of Power Supplies Group.
The Trigger Prototype Board Status Marco Grassi INFN - Pisa On behalf of trigger group D. Nicolò F. Morsani S. Galeotti M. Grassi.
Prototype Test of SPring-8 FADC Module Da-Shung Su Wen-Chen Chang 02/07/2002.
UCN-nEDM DAQ DAQ and Slow Control L.Lee 1 July 3, 2013.
NEDA collaboration meeting at IFIC Valencia, 3rd-5th November 2010 M. Tripon EXOGAM2 project Digital instrumentation of the EXOGAM detector EXOGAM2 - Overview.
Understanding Data Acquisition System for N- XYTER.
Leo Greiner IPHC meeting HFT PIXEL DAQ Prototype Testing.
Data acquisition system for the Baikal-GVD neutrino telescope Denis Kuleshov Valday, February 3, 2015.
K.C.RAVINDRAN,GRAPES-3 EXPERIMENT,OOTY 1 Development of fast electronics for the GRAPES-3 experiment at Ooty K.C. RAVINDRAN On Behalf of GRAPES-3 Collaboration.
Status of the Beam Phase and Intensity Monitor for LHCb Richard Jacobsson Zbigniew Guzik Federico Alessio TFC Team: Motivation Aims Overview of the board.
LNL 1 SLOW CONTROLS FOR CMS DRIFT TUBE CHAMBERS M. Bellato, L. Castellani INFN Sezione di Padova.
Leo Greiner IPHC DAQ Readout for the PIXEL detector for the Heavy Flavor Tracker upgrade at STAR.
Prediction W. Buchmueller (DESY) arXiv:hep-ph/ (1999)
Hall D Online Meeting 28 March 2008 Fast Electronics R. Chris Cuevas Group Leader Jefferson Lab Experimental Nuclear Physics Division System Engineering.
March 6, INST02, Novosibirsk1 Electronics for the  e  experiment at PSI Short introduction Trigger electronics DAQ electronics Slow Control For the.
Features of the new Alibava firmware: 1. Universal for laboratory use (readout of stand-alone detector via USB interface) and for the telescope readout.
Leo Greiner PIXEL Hardware meeting HFT PIXEL detector LVDS Data Path Testing.
The DRS2 Chip: A 4.5 GHz Waveform Digitizing Chip for the MEG Experiment Stefan Ritt Paul Scherrer Institute, Switzerland.
FED RAL: Greg Iles5 March The 96 Channel FED Tester What needs to be tested ? Requirements for 96 channel tester ? Baseline design Functionality.
Alexei SemenovGeneric Digitizer Generic Digitizer 10MHZ 16 bit 6U VME Board.
Acquisition Crate Design BI Technical Board 26 August 2011 Beam Loss Monitoring Section William Vigano’ 26 August
PSI - 11 Feb The Trigger System of the MEG Experiment Marco Grassi INFN - Pisa On behalf of D. Nicolò F. Morsani S. Galeotti.
1 DAQ Update MEG Review Meeting, Feb. 17 th 2010.
Update on final LAV front-end M. Raggi, T. Spadaro, P. Valente & G. Corradi, C. Paglia, D. Tagnani.
Towards a final design of LAV front-end M. Raggi, T. Spadaro, P. Valente & G. Corradi, C. Paglia, D. Tagnani.
OPERA TT MEETING BRUSSELS, April 11, 2003 Status of the OPERA DAQ Status of the OPERA DAQ D.Autiero, J.Marteau T.Descombes  informatics S.Gardien, C.Girerd,
1 Calorimeters LED control LHCb CALO meeting Anatoli Konoplyannikov /ITEP/ Status of the calorimeters LV power supply and ECS control Status of.
PSI - 11 Feb Status of the electronic systems of the MEG Experiment.
1 Electronics Status Trigger and DAQ run successfully in RUN2006 for the first time Trigger communication to DRS boards via trigger bus Trigger firmware.
BPM stripline acquisition in CLEX Sébastien Vilalte.
Status of the PSD upgrade - Status of the PSD cooling and temperature stabilization system - MAPD gain monitoring system - PSD readout upgrade F.Guber,
Pisa - Apr. 28th, The Trigger System Marco Grassi INFN - Pisa.
1 Timing of the calorimeter monitoring signals 1.Introduction 2.LED trigger signal timing * propagation delay of the broadcast calibration command * calibration.
THE WaveDAQ SYSTEM FOR THE MEG II UPGRADE … read out by MIDAS Stefan Ritt, Paul Scherrer Institute, Switzerland 15 July 2015MIDAS Workshop, TRIUMF Paul.
DAQ ELECTRONICS 18 March 2015MEG Collaboration Meeting, Tokyo Stefan Ritt.
Vladimir Zhulanov for BelleII ECL group Budker INP, Novosibirsk INSTR2014, Novosibirsk 2014/02/28 1.
29/05/09A. Salamon – TDAQ WG - CERN1 LKr calorimeter L0 trigger V. Bonaiuto, L. Cesaroni, A. Fucci, A. Salamon, G. Salina, F. Sargeni.
DAQ ACQUISITION FOR THE dE/dX DETECTOR
Magnet Slowcontrol Overview Mu3e DAQ system
PSD Front-End-Electronics A.Ivashkin, V.Marin (INR, Moscow)
DCH FEE 28 chs DCH prototype FEE &
The WaveDAQ System for the MEG II Upgrade
Front-end electronic system for large area photomultipliers readout
Example of DAQ Trigger issues for the SoLID experiment
Commodity Flash ADC-FPGA Based Electronics for an
BESIII EMC electronics
Stefan Ritt Paul Scherrer Institute, Switzerland
RPC Front End Electronics
The Trigger System Marco Grassi INFN - Pisa
RPC Electronics Overall system diagram Current status At detector
Presentation transcript:

1 Electronics Status of the MEG Trigger system Status and plans for DAQ MSCB slow control system Status of the MEG Trigger system Status and plans for DAQ MSCB slow control system

2 The Trigger System of the MEG Experiment On behalf of M. Grassi D. Nicolò F. Morsani S. Galeotti S. Giurgola

3 Expected Trigger Rate Accidental background and Rejection obtained by applying cuts on the following variables photon energy photon direction hit on the positron counter time correlation positron-photon direction match The rate depends on R  R e +  R  2

4 The trigger implementation Digital approach –Flash analog-to-digital converters (FADC) –Field programmable gate array (FPGA) Final system  Only 2 different board types  Arranged in a tree structure on 3 layers  Connected with fast LVDS buses  Remote configuration/debugging capability Prototype board Check of:  the FADC-FPGA compatibility  chosen algorithms  synchronous operation  data transmission

5 The board type 0 PMT inputs LVDS transm. LVDS receiv. FADC FPGA configuration EPROMS Differential drivers package error solved with a patch board control signals.

6 Prototype system configuration Diff. driver Fadc Proc. Algor. LVDS Rx LVDS Tx Proc. Algor. Circ. buff Circ. buff Circ. buff Circ. buff Diff. driver Fadc Proc. Algor. LVDS Rx LVDS Tx Proc. Algor. Circ. buff Circ. buff Circ. buff Circ. buff 16 PMT input output LVDS in final Board 1 Board 0 Last BVR conclusions The prototype system met all requirements It is available to trigger the LP in future beam tests

7 Trigger system structure LXe inner face (312 PMT) boards 20 x 48 Type boards boards 10 x 48 Type LXe lateral faces (208 PMT) (120x2 PMT) (40x2 PMT) 1 board or 6 boards 12 x 48 Type Timing counters (160 PMT) or (80 PMT) 2 or 1 boards 4 x 48 1 board 4 x 48 2 x 48 2VME 6U 1VME 9U Located on the platform Type2

8 Type 1 Diff. driver Fadc LVDS Tx Opt. Proces. Algor. Circ. buff Circ. buff Circ. buff LVDS Tx Proc. Algor. 16 PMT Type 2 LVDS Tx Opt. Proces. Algor. Circ. buff Circ. buff Circ. buff LVDS Tx Proc. Algor. 10 type1 LVDS Rx

9 Software items – New package ISE 6.2 –Verilog/schematic implementation –Block transfer in A32D16 format (VME library to be modified) Hardware items – JTAG programming/debugging through VME by modifying the Type0 –Analog receivers and with DACs for pedestal –FPGA selected: VirtexII PRO On Type 1 XC2VP20-5-FF1152 On Type 2 XC2VP40-5-FF1152 – Other components are fixed: FADC LVDS Tx and Rx Clock distributor Analog input by 3M coaxial connectors LVDS connection by 3M cables –Ancillary logic components and scheme

10 FPGA VIRTEX II - PRO easily at 100MHz 60% of IO 40% of CLB 2 PowerPC (not used)

11 Analog receiver AD5300AD8138 Differential driver DAC pedestal control

12 Analog receiver 16 channels on a type1 board 1 unit wide

13 DC/DC converter 1.5 Volts 3.3 Volts

14 ANCILLARY: TREE TRIGGER ANCILLARY #0 START STOP SYNC CLK INT ANCILLARY #1 CLK EXT ANCILLARY #8 CLK EXT … START, STOP, SYNC, CLK ……………………………… (… 16) VME STOP

15 ANCILLARY: BLOCKS 4 x SILICON DELAYS: START, STOP, SYNC, CLK INPUTS & CLK GEN CLK - START - STOP - SYNC TTL2LVDS 4 x 8(16)-LVDS-FANOUT VME INTERFACE

16 ANCILLARY: INPUTS & CLOCK GEN 10MHz CLK GENINT/EXT SELECT INPUT CONNECTOR LVDS-to-TTL

17 ANCILLARY: SILICON DELAY

18 ANCILLARY: LVDS FANOUT

19 Full System Test Milestone AssemblyDesignManufactoring Prototype Board Final Prototype Trigger Full System Prototype Board Final Prototype part. inst. full. inst.

20 summary Components selected Algorithms implemented PCB design ready to start

21 Status and plans for DAQ

22 Domino Chip Principles DLL Phase and Frequency Stabilization External Common Reference Clock V speed 8 inputs shift register Trigger Signal Sampling Low-jitter clock domino wave FAD C MUX 16-bit DAC uC Freq. Cntr

23 Timing reference signal 20 MHz clock PMT hit Domino stops after trigger latency

24 Recovery of Timing Domino speed stability of : 400ps uncertainty for full window 25ps uncertainty for timing relative to edge Domino speed stability of : 400ps uncertainty for full window 25ps uncertainty for timing relative to edge 50 ns  1) Trigger publishes phase  of trigger signal f relative to clock in multiples of 10 ns 2) Each DAQ card determines and fits “Time-Zero-Edge” in clock signal and uses this as t=0 3) Measure pulse width of clock to derive domino speed 4) Timing of all PMT pulses is expressed relative to t=0 point

25 Current readout mode First implemented in DRS2 Sampled charge does not leave chip Current readout less sensitive to cross- talk etc. First implemented in DRS2 Sampled charge does not leave chip Current readout less sensitive to cross- talk etc. write read C... R I V out V in

26 DRS2 Chip DRS2 design –Up to 4.5 GHz sampling speed –8+2 channels, 1024 bins deep each –Readout speed up to 100 MHz (?) –Submitted to UMC in Nov. 18 th, 58 chips received in Jan. 15 th, packaging 3 weeks DRS2 chip arrived in Feb. 04 –50 packaged chips (400 channels) –1.5 GHz – 4.5 GHz sampling speed –Current mode readout works –Jitter estimation: 40ps Plans –VME prototype board by Aug. ‘04 DRS2 design –Up to 4.5 GHz sampling speed –8+2 channels, 1024 bins deep each –Readout speed up to 100 MHz (?) –Submitted to UMC in Nov. 18 th, 58 chips received in Jan. 15 th, packaging 3 weeks DRS2 chip arrived in Feb. 04 –50 packaged chips (400 channels) –1.5 GHz – 4.5 GHz sampling speed –Current mode readout works –Jitter estimation: 40ps Plans –VME prototype board by Aug. ‘04

27 DRS2 chip

28 DRS2 tests

29 Sampling Speed Measurement Obtained last week with USB- Mezzanine board Usable sampling range 0.6 GHz – 4 GHz Obtained last week with USB- Mezzanine board Usable sampling range 0.6 GHz – 4 GHz

30 Jitter estimation Oscilloscope triggered with Domino pulse Show 250 turns later 11ns/250 = 44ps Should be improved with better board design Oscilloscope triggered with Domino pulse Show 250 turns later 11ns/250 = 44ps Should be improved with better board design

31 Analog readout 4 pulses, 12ns wide, ~1ns rise time digitized at 2.5 GHz Readout at 40 MHz Reproduced rise time: 1.2ns Tests with FADC will follow 4 pulses, 12ns wide, ~1ns rise time digitized at 2.5 GHz Readout at 40 MHz Reproduced rise time: 1.2ns Tests with FADC will follow

32 VME boards with Mezzanine Cards R. Paoletti INFN Pisa MAGIC collaboration PSI GVME board

33 PSI GVME Board

34 VME Transition Boards PMT/DC signals through front-panel connectors to CMC cards with DRS Low-jitter clock through front-panel ch. #17 Trigger, reset, etc through transition board Read feedback to trigger thorough transition board PMT/DC signals through front-panel connectors to CMC cards with DRS Low-jitter clock through front-panel ch. #17 Trigger, reset, etc through transition board Read feedback to trigger thorough transition board PMTs Clock

35 DAQ System PMT Active Splitter ~11m ~3m area monitor ~3m DRS Board (32chn) + CPU DCPre-Amp DRS Board (32chn) + CPU ~7m SIS VME crates optical fiber (~20m) Trigger Gigabit Ethernet Front-End PCs On-line farm Rack – PC (Linux) storage Fitted data: 10 Hz waveform data -> 1.2 MB/sec 90 Hz ADC / TDC data -> 0.9 MB/sec Raw data: 2880 channels 100 Hz 50% / 10% / 10% occupancy 2kB / waveform -> 5 x 25 MB/sec. 3+1 VME crates trigger ready backpressure

36 Rack Layout Splitter Trigger DRS Interface ? Clock distribution (front) Trigger Board ready Fast clear Event counter (transition cards) DCCalo+TC

37 HV Splitter Trigger DAQ Calo+TC DAQ DC

38 Electronics in B-Field Fringing field measured at πE5 [Gauss] B. Allongue (PH-ESS Group, Cern) Wiener PL500 Power Supply works up to 300 Gauss (900 with water cooling) Fan works up to Gauss Ordered “normal” crate for tests Need air ducts with external A/C if problems arise B. Allongue (PH-ESS Group, Cern) Wiener PL500 Power Supply works up to 300 Gauss (900 with water cooling) Fan works up to Gauss Ordered “normal” crate for tests Need air ducts with external A/C if problems arise

39 Waveform analysis Zero suppression in FPGA Single hit –ADC/TDC derived in FPGA Multiple hit –Waveform compressed in FPGA (2x12 bit -> 3 Byte) –Waveform fitted / compressed in PC cluster Store ADC/TDC only for “calibration” events Store (lossless) compressed waveforms for MEG candidates Zero suppression in FPGA Single hit –ADC/TDC derived in FPGA Multiple hit –Waveform compressed in FPGA (2x12 bit -> 3 Byte) –Waveform fitted / compressed in PC cluster Store ADC/TDC only for “calibration” events Store (lossless) compressed waveforms for MEG candidates Original Waveform Difference Of Samples Threshold in DOS Region for pedestal evaluation integration area ADC1/TDC1 ADC2/TDC2 T

40 Differential DRS channels write V in write V in + V in - Differential Driver cross-talk signals cancel Measured for 1ns rise-time: 6% neighbor 2% next nb Measured for 1ns rise-time: 6% neighbor 2% next nb

41 DRS3 DRS2 can probably initially be used for DAQ (have 400 channels, can produce 400 more) DRS2 limitations –Only two channels are fully differential (others show larger crosstalk) –Some tests remain to be done … New DRS3 design –All channels differential –Additional shielding between channels (ground bond wires) –Reduced readout time (5x) minimized dead time –Internal cascading allows for n x 1024 sampling bins DRS2 can probably initially be used for DAQ (have 400 channels, can produce 400 more) DRS2 limitations –Only two channels are fully differential (others show larger crosstalk) –Some tests remain to be done … New DRS3 design –All channels differential –Additional shielding between channels (ground bond wires) –Reduced readout time (5x) minimized dead time –Internal cascading allows for n x 1024 sampling bins

42 Plans DRS2 VME prototype board Aug. 04 Measure all parameters (cross-talk, resolution, stability) Produce VME boards and equip with DRS2 chip (400 chn chn ?), install as much as possible in are in summer 2005 Design DRS3 in parallel Mass production of DRS3 in fall 2005 Replace installed DRS2 with DRS3 DRS2 VME prototype board Aug. 04 Measure all parameters (cross-talk, resolution, stability) Produce VME boards and equip with DRS2 chip (400 chn chn ?), install as much as possible in are in summer 2005 Design DRS3 in parallel Mass production of DRS3 in fall 2005 Replace installed DRS2 with DRS3

43 DRS (DAQ) Test Milestone AssemblyDesignManufactoring DRS2 DRS2 test board DRS3 VME boards 400 chn Mass Production 3000 chn DRS1 2 nd Prototype Tests Boards & ChipTest DRS1 DRS2 Full System installation Optional DRS2 production 400 chn

44 Slow Control System Unified control system for –Cryogenics (temperature, pressure, valves, etc.) –Environment (temperatures, crates) –Drift chamber gas system (pressure, mass flow, temperature) –High Voltage (Calo+TC+DC, ~1000 chn.) System must be fail-safe Unified control system for –Cryogenics (temperature, pressure, valves, etc.) –Environment (temperatures, crates) –Drift chamber gas system (pressure, mass flow, temperature) –High Voltage (Calo+TC+DC, ~1000 chn.) System must be fail-safe

45 Slow Control HV PC RS Temperature, pressure, … GPIB Valves ??? 15° C heater PLC 12: : : : : : : : MIDAS DAQ Ethernet Terminal Server

46 Slow Control Bus HV Temperature, pressure, …Valves heater MIDAS DAQ

47 CAN, Profibus, LON available Node with ADC >100$ Interoperatibility not guaranteed Protocol overhead Local CPU? User programmable? How to integrate in HV? (CAEN use CAENET) CAN, Profibus, LON available Node with ADC >100$ Interoperatibility not guaranteed Protocol overhead Local CPU? User programmable? How to integrate in HV? (CAEN use CAENET) Field Bus Solutions

48 Hardware Overview 8051-compatible  C with –ADC 12-bit –DAC 12-bit –Flash EEPROM –Timers –Watchdog –Temperature sensor –UARTs –Up to 100MHz clock speed External signal conditioning if needed Serial communication 8051-compatible  C with –ADC 12-bit –DAC 12-bit –Flash EEPROM –Timers –Watchdog –Temperature sensor –UARTs –Up to 100MHz clock speed External signal conditioning if needed Serial communication

49 RS-485 bus Similar to RS-232 but –Up to 256 (1/8 load) units can be connected to a single segment, use repeater for more –Address space for nodes –single line, half duplex –differential twisted pair –Segment length up to km (20 m tested) –MSCB system: 115kbit –Single Master – Multiple Slaves (like USB) –Power through bus (10-wire flat ribbon) –PC USB interface Similar to RS-232 but –Up to 256 (1/8 load) units can be connected to a single segment, use repeater for more –Address space for nodes –single line, half duplex –differential twisted pair –Segment length up to km (20 m tested) –MSCB system: 115kbit –Single Master – Multiple Slaves (like USB) –Power through bus (10-wire flat ribbon) –PC USB interface

50 Generic node SCS-200 C8051Fxxx Micro controllers with 8x12 bit ADC, 2x12 bit DAC, digital IO, 8051  C and 32kB Flash Memory RS-485 bus over flat ribbon cable Powered through bus Costs ~CHF 50 Piggy back board for signal conditioning cards 32 kB for real time C programs C8051Fxxx Micro controllers with 8x12 bit ADC, 2x12 bit DAC, digital IO, 8051  C and 32kB Flash Memory RS-485 bus over flat ribbon cable Powered through bus Costs ~CHF 50 Piggy back board for signal conditioning cards 32 kB for real time C programs

51 2 Versions Generic node with signal conditioning RS232 node with protocol translator PC connection to parallel port (USB planned) Integration on sensors, in crates BUS Oriented Crate Oriented 19” crate with custom backplane Generic node as piggy-back Cards for analog IO / digital IO / °C / 220V Used in 3 experiments at PSI Can be mixed

52 SCS Nodes SCS 210:RS232 I/O SCS 300:Centronics I/O (14 bit digital) SCS 310:GPIB (IEEE-488) I/O SCS 400:8 chn. Thermocouple + 4 chn. digital output (PWM), temp. regulation in SW SCS 500:8 chn. differential analog input 0…10V, 0…1V, 0…100mV, 0…10mV -10…10V, -1…1V, -100mV…100mV 0…100mA, 0…10mA, 0…1mA 15V power, Lemo or screw terminal SCS 600:8 chn. digital output 0…30V, 1A LEDs and buttons on front panel 220V “power box” SCS 700:8 chn. PT100/PT1000, 8 bit digital output SCS 800:8 chn. capacitance meter SCS 900:8 chn. 24-bit ADC -10V…10V 8 chn. 16-bit DAC -10V…10V SCS 210:RS232 I/O SCS 300:Centronics I/O (14 bit digital) SCS 310:GPIB (IEEE-488) I/O SCS 400:8 chn. Thermocouple + 4 chn. digital output (PWM), temp. regulation in SW SCS 500:8 chn. differential analog input 0…10V, 0…1V, 0…100mV, 0…10mV -10…10V, -1…1V, -100mV…100mV 0…100mA, 0…10mA, 0…1mA 15V power, Lemo or screw terminal SCS 600:8 chn. digital output 0…30V, 1A LEDs and buttons on front panel 220V “power box” SCS 700:8 chn. PT100/PT1000, 8 bit digital output SCS 800:8 chn. capacitance meter SCS 900:8 chn. 24-bit ADC -10V…10V 8 chn. 16-bit DAC -10V…10V

53 Software overview mscb.dll msc.exe Command line interface VI LabView Application VI LPTUSB PC SCS 250 SCS xxx Framework User code RS485 SCS 300

54 Remote access mscb.dll msc.exe Command line interface LPTUSB PC RS485 mscb.dll msc.exe Command line interface VI LabView Application VI PC TCP/IP Speed (commands/sec, 115kBaud): ~1500 local ~900 remote Speed (commands/sec, 115kBaud): ~1500 local ~900 remote SCS 250

55 Protocol Asynchronous 345 kBaud / 115kBaud 16-bit addressing (65536 nodes) CRC-code for error detection Optional acknowledge Concept of channels and configuration parameters (256 each per node) Optimized protocol: kB Asynchronous 345 kBaud / 115kBaud 16-bit addressing (65536 nodes) CRC-code for error detection Optional acknowledge Concept of channels and configuration parameters (256 each per node) Optimized protocol: kB commandchannelvalueCRC write data node param1 param2 param3 channel1 channel2 channel3 ADC port commandLSBMSBCRC address command 1 Byte commandCRC acknowledge

56 Node communication msc.exe LabView

57 Labview control of Large Prototype

58 How to make it fail-safe? Robust protocol –CRC code –Automatic reconnect UPS –SC crates on battery (~30 min.) –Use Laptop for control PC Redundancy –Operate two completely independent nets –Switch between nets on failure Robust protocol –CRC code –Automatic reconnect UPS –SC crates on battery (~30 min.) –Use Laptop for control PC Redundancy –Operate two completely independent nets –Switch between nets on failure

59 Redundancy Temperature, pressure, …Valves uC Switch box Control PC1 Control PC2 If uC fails, use other system If PC fails, use other system (PC-PC watchdog) For critical valves, use two (parallel or serial) Avoid single point of failure ! Test failures If uC fails, use other system If PC fails, use other system (PC-PC watchdog) For critical valves, use two (parallel or serial) Avoid single point of failure ! Test failures System 1 System 2 Ethernet

60 New HV Design V in V out 12 times 3000V V ADC 24 - bit Micro Controller DAC 16 - bit Microcontroller optically decoupled from HV side Higher ADC+DAC resolutions 10 mV accuracy Stable operation in lab (weeks) Newer test results will be presented in review Microcontroller optically decoupled from HV side Higher ADC+DAC resolutions 10 mV accuracy Stable operation in lab (weeks) Newer test results will be presented in review

61 Integration of Slow Control into DAQ Run parameters will be written to MySQL database Calibration parameters recalculated after every run and stored in DB More frequent database update possible Use of MIDAS history system (widely established since many years) Display through Web interface Gif images generated dynamically in memory Command line query with mhist Write speed: 2000 events/s Query over one month in ~10sec Display through Web interface Gif images generated dynamically in memory Command line query with mhist Write speed: 2000 events/s Query over one month in ~10sec Combines Slow Control, monitoring and calibration data

62 Summary Midas Slow Control Bus 256 nodes, nodes with one level of repeaters Bus length ~500m opto-isolated Boards for voltage, current, temperature, Digital IO, 220V Readout speed: 700 channels / 115kBaud C library, command-line utility, Midas driver, LabView driver Nodes are “self-documenting” Configuration parameters in EEPROM on node Node CPU can operate autonomously for interlock and regulation (PID) tasks (C programmable, floating point library) Nodes can be reprogrammed over network nodes, nodes with one level of repeaters Bus length ~500m opto-isolated Boards for voltage, current, temperature, Digital IO, 220V Readout speed: 700 channels / 115kBaud C library, command-line utility, Midas driver, LabView driver Nodes are “self-documenting” Configuration parameters in EEPROM on node Node CPU can operate autonomously for interlock and regulation (PID) tasks (C programmable, floating point library) Nodes can be reprogrammed over network

63 Conclusions Trigger system is on schedule DRS2 chip works Partial electronics installation until mid-2005 planned Slow control system works (as tested in ~10 installations at PSI and TRIUMF) Trigger system is on schedule DRS2 chip works Partial electronics installation until mid-2005 planned Slow control system works (as tested in ~10 installations at PSI and TRIUMF)