Using the Data Merge Software This takes data recived from the ADC modules and combines it into a single time-ordered data stream. (1) Look at the MIDAS icons on the top task bar. The second icon from the right hand end is Merge. Click on this. The command /MIDAS/Merger/IDS/IDSMerger is run. This starts a terminal window and you will get output like this Tidy up master64: no process killed link64: no process killed merge64.EB: no process killed Starting Merge Server startup complete MERGE Server: Message Initialisation failed. MERGE Server: Message logger not contacted. MERGE Server: MIDAS MERGE Server Build Jul 8 2014 MERGE Server: Using default startup MERGE Server: Configuration: SHM key=11000 MERGE Server: File mapped object /SHM_11000 of size 402732 created MERGE Server: Shared memory ID is 3 MERGE Server: Memory mapping 402732 bytes MERGE Server: Shared memory segment located at address 0x7ff7dfa81000. MERGE Server: Configuration file used - /MIDAS/Merger/IDS/GS_configuration MERGE Server: Merge task /MIDAS/Merger/merge64.EB MERGE Server: 4 data link tasks configured MERGE Server: Data link /MIDAS/Merger/link64 11011 MERGE Server: Data link /MIDAS/Merger/link64 11012 MERGE Server: Data link /MIDAS/Merger/link64 11013 MERGE Server: Data link /MIDAS/Merger/link64 11014 MERGE Server: Message reporting level = 0x100fff8 MERGE Server: Message logging level = 0xfff8 MERGE Server: MERGE Server Options = 0x0 MERGE Server: Data buffer size = 64KB MERGE Server: File mapped object /SHM_11001 of size 134217728 created MERGE Server: Shared memory ID is 3 MERGE Server: Memory mapping 134217728 bytes MERGE Server: Shared memory segment located at address 0x7ff7d7a81000. Creating NetVars #2 Output buffer length = 65504; format option = 4; transfer option = 3 NetVars created and initialised MRGE Stats created and initialised MRGE Statistics/Rates thread created MRGE Statistics thread starting MERGE Server: Link task 0 has pid 19855 MERGE Server: Link task 1 has pid 19856 MERGE Server: Link task 2 has pid 19857 MERGE Server: Link task 3 has pid 19858 MERGE Server: Merge task has pid 19859 MERGE Data Link (19855): Message Initialisation failed. MERGE Data Link (19855): Message logger not contacted. MERGE Data Link (19855): MIDAS MERGE Data Link Build Jul 30 2014 MERGE Data Link (19855): Started with args 0 11000 11011 MERGE Data Link (19855): Configuration: index = 0, SHM key=11000, TCP port = 11011 MERGE Data Link (19855): File mapped object /SHM_11000 accessed MERGE Data Link (19855): Shared memory ID is 3 MERGE Data Link (19855): Memory mapping 402732 bytes MERGE Data Link (19855): Shared memory segment located at address 0x7f28e9e47000. MERGE Data Link (19855): File mapped object /SHM_11001 accessed MERGE Data Link (19855): Shared memory ID is 3 MERGE Data Link (19855): Memory mapping 134217728 bytes MERGE Data Link (19855): Shared memory segment located at address 0x7f28e1e47000. MERGE Data Link (19856): Message Initialisation failed. MERGE Data Link (19856): Message logger not contacted. MERGE Data Link (19856): MIDAS MERGE Data Link Build Jul 30 2014 MERGE Data Link (19856): Started with args 1 11000 11012 MERGE Data Link (19856): Configuration: index = 1, SHM key=11000, TCP port = 11012 MERGE Data Link (19856): File mapped object /SHM_11000 accessed MERGE Data Link (19856): Shared memory ID is 3 MERGE Data Link (19856): Memory mapping 402732 bytes MERGE Data Link (19856): Shared memory segment located at address 0x7fab97b6e000. MERGE Data Link (19856): File mapped object /SHM_11001 accessed MERGE Data Link (19856): Shared memory ID is 3 MERGE Data Link (19856): Memory mapping 134217728 bytes MERGE Data Link (19856): Shared memory segment located at address 0x7fab8fb6e000. MERGE Data Link (19857): Message Initialisation failed. MERGE Data Link (19857): Message logger not contacted. MERGE Data Link (19857): MIDAS MERGE Data Link Build Jul 30 2014 MERGE Data Link (19857): Started with args 2 11000 11013 MERGE Data Link (19857): Configuration: index = 2, SHM key=11000, TCP port = 11013 MERGE Data Link (19857): File mapped object /SHM_11000 accessed MERGE Data Link (19857): Shared memory ID is 3 MERGE Data Link (19857): Memory mapping 402732 bytes MERGE Data Link (19857): Shared memory segment located at address 0x7f37acbdb000. MERGE Data Link (19857): File mapped object /SHM_11001 accessed MERGE Data Link (19857): Shared memory ID is 3 MERGE Data Link (19857): Memory mapping 134217728 bytes MERGE Data Link (19857): Shared memory segment located at address 0x7f37a4bdb000. MERGE Data Link (19858): Message Initialisation failed. MERGE Data Link (19858): Message logger not contacted. MERGE Data Link (19858): MIDAS MERGE Data Link Build Jul 30 2014 MERGE Data Link (19858): Started with args 3 11000 11014 MERGE Data Link (19858): Configuration: index = 3, SHM key=11000, TCP port = 11014 MERGE Data Link (19858): File mapped object /SHM_11000 accessed MERGE Data Link (19858): Shared memory ID is 3 MERGE Data Link (19858): Memory mapping 402732 bytes MERGE Data Link (19858): Shared memory segment located at address 0x7f870cb92000. MERGE Data Link (19858): File mapped object /SHM_11001 accessed MERGE Data Link (19858): Shared memory ID is 3 MERGE Data Link (19858): Memory mapping 134217728 bytes MERGE Data Link (19858): Shared memory segment located at address 0x7f8704b92000. MERGE Program (19859): Message Initialisation failed. MERGE Program (19859): Message logger not contacted. MERGE Program (19859): MIDAS MERGE Program (64-bit) Build Jul 8 2014 MERGE Program (19859): Started with args 11000 MERGE Program (19859): Configuration: SHM key=11000 MERGE Program (19859): File mapped object /SHM_11000 accessed MERGE Program (19859): Shared memory ID is 3 MERGE Program (19859): Memory mapping 402732 bytes MERGE Program (19859): Shared memory segment located at address 0x7fa1ad640000. MERGE Program (19859): File mapped object /SHM_11001 accessed MERGE Program (19859): Shared memory ID is 3 MERGE Program (19859): Memory mapping 134217728 bytes MERGE Program (19859): Shared memory segment located at address 0x7fa1a5640000. Creating NetVars #2 Output buffer length = 65504; format option = 4; transfer option = 3 NetVars created and initialised MRGE Stats created and initialised MERGE Data Link (19856): Starting the network interface MERGE Data Link (19856): TCP socket receive buffer was 87380 - now 249856 MERGE Data Link (19856): TCP socket send buffer was 16384 - now 249856 MERGE Data Link (19856): MERGE Data Link using TCP port 11012. MERGE Data Link (19856): Entering server loop MERGE Data Link (19856): listening on port 11012 MRGE Stats created and initialised MERGE Data Link (19857): Starting the network interface MERGE Data Link (19857): TCP socket receive buffer was 87380 - now 249856 MERGE Data Link (19857): TCP socket send buffer was 16384 - now 249856 MERGE Data Link (19857): MERGE Data Link using TCP port 11013. MERGE Data Link (19857): Entering server loop MERGE Data Link (19857): listening on port 11013 MRGE Stats created and initialised MERGE Data Link (19855): Starting the network interface MERGE Data Link (19855): TCP socket receive buffer was 87380 - now 249856 MERGE Data Link (19855): TCP socket send buffer was 16384 - now 249856 MERGE Data Link (19855): MERGE Data Link using TCP port 11011. MERGE Data Link (19855): Entering server loop MERGE Data Link (19855): listening on port 11011 MRGE Stats created and initialised MERGE Program Release V3/x86_64 (Jul 8 2014, 10:57:50) starting Merge: Histogramming not using threads MRGE Stats created and initialised MERGE Data Link (19858): Starting the network interface MERGE Data Link (19858): TCP socket receive buffer was 87380 - now 249856 MERGE Data Link (19858): TCP socket send buffer was 16384 - now 249856 MERGE Data Link (19858): MERGE Data Link using TCP port 11014. MERGE Data Link (19858): Entering server loop MERGE Data Link (19858): listening on port 11014 Merge: debugging initialised: off. Merge: opening buffer for Merge_EventBuffer, size 0x800 Merge: returning merge memory at virtual 0x158c840 Event Buffer virtual address: 0x158c840 Merge: initialising for 3 asps: 0 1 2 Merge: opening buffer for asp0_Data, size 0x3c0000 Merge: returning merge memory at virtual 0x7fa1a41b5010 ASP Data buffer 0 (asp0), length 3932160 (0x3c0000) bytes mapped at: 0x7fa1a41b5010 - 0x7fa1a457500f Merge: opening buffer for asp1_Data, size 0x3c0000 Merge: returning merge memory at virtual 0x7fa1a3df4010 ASP Data buffer 1 (asp1), length 3932160 (0x3c0000) bytes mapped at: 0x7fa1a3df4010 - 0x7fa1a41b400f Merge: opening buffer for asp2_Data, size 0x3c0000 Merge: returning merge memory at virtual 0x7fa1a3a33010 ASP Data buffer 2 (asp2), length 3932160 (0x3c0000) bytes mapped at: 0x7fa1a3a33010 - 0x7fa1a3df300f Queue 0 (asp0) starts at 0x7fa1a41b5010 Queue 1 (asp1) starts at 0x7fa1a3df4010 Queue 2 (asp2) starts at 0x7fa1a3a33010 Merge: GREATWordOrder set to 1 Merge: OutputTrace set to 1 Merge: Histogramming using threads MERGE Merge setup complete Data Acquisition using tape server localhost on port 10305 Initialising communication with tape server Setting Transfer Block Size 65536 Setting Transfer Mode 3 Setting Overlap Mode 0 Setting nice 0 TCP transfer library version 3.12 TCP socket send buffer was 16384 - now 249856 TCP socket receive buffer was 87380 - now 249856 TCP socket created OK - now connecting to localhost port 10305 Transfer Error - : Connection refused connect() failed: MERGE now ready to be initialised and started (2) Look at the MIDAS icons on the top task bar. The third icon from the right hand end is "TclHttpd for Merge/TapeServer". Click on this. The command /MIDAS/TclHttpd/Linux64/TclHttpd-server is run. This starts a terminal window and you will get output like this ........ (3) Look at the MIDAS icons on the top task bar. The second icon from the left is "MIDAS for Merge". Click on this. A terminal window is created and the command /MIDAS/bin_Linux64/MIDAS64-session Merge /MIDAS/experiments/Merge runs. A GUI window is created labelled "Merge Base Frame" NOTE: You will already have completed this step when starting the Data Storage Server (Tape Server) See ScreenH This contains a menu item "Merge". Click on this. The control window for the Merge Server starts There is 1 data link for each ADC module. The GUI is configured for 8 links but only 4 are configured for the Merge. Links 4 => 7 are coloured grey and are inactive. Link 4 is not currently in use and is coloured red. Links 0 => 3 are in use and are coloured green when connected to an ADC source and receiving data and golden when not connected or not receiving data. By clicking on the link you can change its state between in use and not in use. To SETUP the Merge software click on the button "Configure & Setup". You can then Go or Stop. It is reasonable to leave the program permanently in the GO state. The "Merge Program Pause State" can switch between Off (received data is processed and merged) or On (received data is discarded). The "Merge Data Transfer State" can switch between Off (merged data is discarded) and On (merged data is forwarded to the Storage Server). When actively collecting data for storage on disc set Pause State = Off and Transfer State = On.