Commit Graph

234 Commits

Author SHA1 Message Date
babic_a 1f771bf444 Finalize refactoring of sf_writer 2020-05-15 10:46:43 +02:00
babic_a a42e718880 Improve variable setting 2020-05-15 10:42:24 +02:00
babic_a 1b41dd623f Rename SFWriter to new standard naming 2020-05-15 10:11:22 +02:00
babic_a 453e91f6ca Remove unused stuff from sf_writer 2020-05-14 13:01:39 +02:00
babic_a a760077e85 Allow for resync to happen also if frames are missing 2020-05-14 12:22:27 +02:00
babic_a 80765f3fc5 Fix parameters order to be consistent across repo 2020-05-14 11:46:03 +02:00
babic_a 9d8d97f998 Improve Reader call 2020-05-14 11:04:05 +02:00
babic_a cd6466fe1f Finish improving sf_replay 2020-05-14 09:37:59 +02:00
babic_a 1fe08897f1 We are still not optimizing on this level 2020-05-13 12:38:09 +02:00
babic_a 462593627e Add operation duration timing 2020-05-11 18:41:00 +02:00
babic_a 9fd3ceed6e Set priority after spawning zmq thread 2020-05-11 18:28:55 +02:00
babic_a 78aa0b6d71 Set nice to -20 for buffer 2020-05-11 18:27:33 +02:00
babic_a 04b71f7762 Remove FastQueue from sf_buffer 2020-05-11 13:56:17 +02:00
babic_a 0ca06b8e7a Remove all DEBUG_OUTPUT references
It turnes out it is not as useful as in the writer project.
2020-05-11 13:52:29 +02:00
babic_a 92b4041070 Make udp receiver return the pulse_id 2020-05-11 13:46:22 +02:00
babic_a 9b75a6d991 Improve code flow in sf_buffer 2020-05-11 12:37:32 +02:00
babic_a fada8a7ec6 Make IPC address a parameter in buffer config 2020-05-11 12:34:30 +02:00
babic_a 72d31d027e Rewrite sf_buffer to use BufferUdpReceiver 2020-05-11 12:31:46 +02:00
babic_a d49df10e69 Working on the loop logic 2020-05-11 11:48:17 +02:00
babic_a cd25fe50b8 Rewrite logic to be function oriented 2020-05-11 11:39:18 +02:00
babic_a 5beb8a3c35 Transition to local variables instead of pointers 2020-05-11 11:23:11 +02:00
babic_a 4b64e56ccb Remove unused import from sf_buffer 2020-05-11 11:17:01 +02:00
babic_a b9f912b4a1 First iteration of code merge 2020-05-11 11:16:39 +02:00
Dmitry Ozerov dd3d5a80c4 correctly fill number of requested pulses in output file, stop in receiver before buffer is filled, if number of pulses is less then buffer 2020-05-10 00:01:41 +02:00
Dmitry Ozerov 85c0fff417 Merge branch 'master' of https://github.com/paulscherrerinstitute/sf_daq_buffer 2020-05-09 23:27:58 +02:00
Dmitry Ozerov 8c33c9cc98 wait that receiver thread is finished, is_good_fame check added, poor man current pulse_id script 2020-05-09 23:25:46 +02:00
babic_a 4912bbe38d Adjust settings to new config 2020-05-08 14:25:01 +02:00
babic_a e097e38365 Remove DEBUG_OUTPUT as its not very useful 2020-05-08 13:59:36 +02:00
babic_a ed2bcab1ba Wait forever until the writer gets all the packets 2020-05-08 11:49:56 +02:00
babic_a 30a267bfdd Revert back 2020-05-08 11:41:41 +02:00
babic_a fd33f72a09 Invert bind and connect among replay and writer 2020-05-08 11:39:36 +02:00
babic_a 6ff82c4b09 Fix current pulse_id increase 2020-05-08 11:33:39 +02:00
babic_a ea909d1e7e Merge remote-tracking branch 'origin/master' 2020-05-07 17:00:29 +02:00
babic_a da4108832d Pass start_pulse_id to recv thread and check pulses 2020-05-07 17:00:23 +02:00
Dmitry Ozerov 65aefd1a90 add base directory path to buffer 2020-05-07 16:41:27 +02:00
babic_a 0961490f80 Add jsoncpp to sf_stream 2020-05-07 10:04:06 +02:00
babic_a 5fd6bd5ee7 Remove unused packages from build 2020-05-07 10:00:03 +02:00
babic_a 77feefd681 Comment out SWMR code
We will keep it for a bit longer for reference.
2020-05-07 09:57:19 +02:00
Dmitry Ozerov 40b8d91c6d sf_stream sending to streamvis/live analysis 2020-05-06 22:47:05 +02:00
babic_a f0c50d89af Remove printouts 2020-05-06 16:05:11 +02:00
babic_a 90e6b06208 Debug output 2020-05-06 12:06:07 +02:00
babic_a b2d14fbb64 Remove recv code and put in a module 2020-05-06 10:00:09 +02:00
Dmitry Ozerov 8fb9fe4e3c intermediate ersion of sf_stream to read directly from sf_buffer 2020-05-04 19:08:50 +02:00
babic_a 6f766746d6 Thread fine-tuning 2020-05-04 18:37:41 +02:00
babic_a a8eacb3587 Yield at the end of the write loop 2020-05-04 18:11:50 +02:00
babic_a 16847f48b8 Changed all IPCs to /tmp folder 2020-05-04 15:27:50 +02:00
babic_a 1324e7b3e8 Adjusted sf_replay to new buffer format 2020-05-04 15:20:23 +02:00
babic_a a5c2d939bf Adjust sending part of sf_replay to new way of writing 2020-05-04 15:03:35 +02:00
babic_a 17d469d75e Fix start parameters for sf_buffer 2020-05-04 14:40:49 +02:00
babic_a d1d0cbdb94 Add n_corrupted_frames to sf_buffer metric 2020-05-04 14:12:01 +02:00