For this example no configuration files need to be set. The ENS server needs to be running. The installation should be done if you followed the installation link.

export PATH=$PATH:/unix/lc/bartsch/doocs/Linux/obj/daq/bm/

bm_writer 2 1 1 ( event type 1 (NORMAL event see event.hh) with 2server blocks , with frequency 1Hz)

Sleep time: 100000 usec

Master? (0/1) 1 (must be master as the first processconnected to BM)

Thread: 0 started ( one thread writes one serverblock)

Thread: 1 started

Please, enter number of events: 100

Events: 10 Time: 1.0402e+06 Rate:9.61354

Dumping client and event slots (Press 1)1

.... here you can see what is going on in BM structures

program bm_reader should be started when bm_writer asks for number of events.

bm_reader

registered as:1 in slot: 2 for event type: 1 ( here program subscribes for event type 1 for all server blocks)

registered as:1 in slot: 3 for event type: 2

registered as:1 in slot: 4 for event type: 3

registered as:1 in slot: 5 for event type: 4

registered as:1 in slot: 6 for event type: 5

registered as:1 in slot: 7 for event type: 6

registered as:1 in slot: 8 for event type: 7

registered as:1 in slot: 9 for event type: 8

Setting the event handler

Event handler must be set

.......


After you enter the number of events for bm_writer you'll see that bm_reader gets events.

-- ValeriaBartsch - 20 Feb 2008

Edit | Attach | Watch | Print version | History: r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r1 - 2008-02-20 - ValeriaBartsch
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    CALICE All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright &© 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback