DAQ software progress Tao Wu DAQUK Tao Wu

  • Slides: 17
Download presentation
DAQ software progress Tao Wu DAQ-UK Tao Wu

DAQ software progress Tao Wu DAQ-UK Tao Wu

What’s new? Task Lists n LDA - ODR - DIF device server disentanglement n

What’s new? Task Lists n LDA - ODR - DIF device server disentanglement n n (LDA device server has been separated since last meeting, no further changes. ) State machine (Not yet) Data handling (Valeria ongoing) Error/alarm handling (xerror server OK, Alarm handling is developing, testing) To investigate: l Clock device server (Valeria ongoing) DAQ-UK Tao Wu 2

Error handling n Purposes? User/shifter can detect l What type of errors (warnings); l

Error handling n Purposes? User/shifter can detect l What type of errors (warnings); l its severity level n How about the implementation? l Error handling is done by the serverlib; l Serverlibs provide error handling with Facility/Device n Xerror is a client GUI l What Xerror client GUI looks like? DAQ-UK Tao Wu 3

Error Monitor Xview GUI Smiling no error DAQ-UK Link to server is broken Tao

Error Monitor Xview GUI Smiling no error DAQ-UK Link to server is broken Tao Wu 4

Device server offline Sad: new error DAQ-UK Tao Wu 5

Device server offline Sad: new error DAQ-UK Tao Wu 5

New errors & pending errors New errors have to be acknowledged by client Pending

New errors & pending errors New errors have to be acknowledged by client Pending errors : if the error is still pending after its first appearance DAQ-UK Tao Wu 6

Back to online & acknowledged Acknowledged, NO errors DAQ-UK Tao Wu 7

Back to online & acknowledged Acknowledged, NO errors DAQ-UK Tao Wu 7

History Log file & its codes #include "eq_errors. h" #include "eq_sts_codes. h" #include "eq_fct_errors.

History Log file & its codes #include "eq_errors. h" #include "eq_sts_codes. h" #include "eq_fct_errors. h" //. . system online. . . . Log files on the local disk if ( g_sts_. online() ) { tds. status = sts_ok; set_error( (int) no_error ); set_error( (int) no_error, char* err_str ); } else { // device offline set_error( (int) went_offline ); set_error( (int) went_offline, err_str ); write_error((int) went_offline, err_str); } DAQ-UK Tao Wu 8

29 error types enum { no_error, not_available, ill_function, ill_type, ill_device_no, ill_parameter, offline, warning, frame_error,

29 error types enum { no_error, not_available, ill_function, ill_type, ill_device_no, ill_parameter, offline, warning, frame_error, RE_error, parity_error, not_responding , device_error, went_offline, went_online, sys_restart, book_error, line_error, ill_system, read_error, write_error, device_autom, state_error, veto_error, overload_error, open_error, ordering_error, not_open_error, remote_error, scope_out_of_range }; We should customise some error types for our DAQ system. DAQ-UK Tao Wu 9

xerror : how to drive xerror_list. conf # device_list: # facility object : case

xerror : how to drive xerror_list. conf # device_list: # facility object : case insensitive / ttf watchdog test. doocs odr TEST. DOOCS SINGENERATOR / # for xerror GUI display $DRT/Linux/obj/clients/ttf/xerror -d $DRT/source/clients/ttf/xerror -f xerror_list. conf -t ODR. ERROR_INFO & # -d : directory path to conf file # -f : name of conf file # -t : title of icon # -u : change update rate from default (90 s) # -h : this help option DAQ-UK Tao Wu 10

Weakness and drawbacks n One type of error is logged only for the first

Weakness and drawbacks n One type of error is logged only for the first appearance, following errors with the same type are hidden, but repetitively counted; n No central logging, no order sortable; n Possible big log files; DAQ-UK Tao Wu 11

Need Improvements n Central error logging server with Web Services; n Build-in error handling

Need Improvements n Central error logging server with Web Services; n Build-in error handling for sub-devices in the device server codes; n error class creates a thread to send the error message to the central error logging server with a certain severity level Java Servlets and Applets ! DAQ-UK Tao Wu 12

Central Error/Info server DAQ-UK Tao Wu 13

Central Error/Info server DAQ-UK Tao Wu 13

Package dependencies of Alarm Handling n - xmllib 2 and xmlwrapper 0. 5. 0

Package dependencies of Alarm Handling n - xmllib 2 and xmlwrapper 0. 5. 0 (C++); OK n - Apache/Tomcat 5. 5 or 6. x; n - CLucene-0. 9. 21 b for search engine; n - javaws >1. 6+, java webstart; n - JNI java native interface; n - JMS java messaging server >1. 3. 1; n - j. DOOCS java lib for DOOCS; existing OK OK JDK JSE JEE n - TINE protocol (? ); Installation & testing: NOT so easy ! DAQ-UK Tao Wu 14

Java Servlets & Applets DAQ-UK Tao Wu 15

Java Servlets & Applets DAQ-UK Tao Wu 15

Alarm tool (from FLASH) Device Tree Device instances Property error Messages Java display DAQ-UK

Alarm tool (from FLASH) Device Tree Device instances Property error Messages Java display DAQ-UK Tao Wu 16

Summary n Xerror clients Xview GUI is tested; n Error/Info server is under development;

Summary n Xerror clients Xview GUI is tested; n Error/Info server is under development; n Alarm server needs help & some learning; n We expect some help from DESY experts. DAQ-UK Tao Wu 17