{"action":"created","issue":{"url":"https://api.github.com/repos/lucabaldini/xpedaq/issues/79","repository_url":"https://api.github.com/repos/lucabaldini/xpedaq","labels_url":"https://api.github.com/repos/lucabaldini/xpedaq/issues/79/labels{/name}","comments_url":"https://api.github.com/repos/lucabaldini/xpedaq/issues/79/comments","events_url":"https://api.github.com/repos/lucabaldini/xpedaq/issues/79/events","html_url":"https://github.com/lucabaldini/xpedaq/issues/79","id":153241419,"number":79,"title":"Effect of the clock shift on the data readout ","user":{"login":"lucabaldini","id":8972541,"avatar_url":"https://avatars.githubusercontent.com/u/8972541?v=3","gravatar_id":"","url":"https://api.github.com/users/lucabaldini","html_url":"https://github.com/lucabaldini","followers_url":"https://api.github.com/users/lucabaldini/followers","following_url":"https://api.github.com/users/lucabaldini/following{/other_user}","gists_url":"https://api.github.com/users/lucabaldini/gists{/gist_id}","starred_url":"https://api.github.com/users/lucabaldini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucabaldini/subscriptions","organizations_url":"https://api.github.com/users/lucabaldini/orgs","repos_url":"https://api.github.com/users/lucabaldini/repos","events_url":"https://api.github.com/users/lucabaldini/events{/privacy}","received_events_url":"https://api.github.com/users/lucabaldini/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-05T14:16:43Z","updated_at":"2016-05-06T08:15:55Z","closed_at":null,"body":"While looking into issue #72 we found out an interesting effect of the clock shift setting on the data readout. The +2 shift in the channel index reported in that issue was indeed due to the clock shift being set to 125 ns (5 ticks) rather than 575 (23 ticks), and was also observed to be (as expected, a posteriori) dependent on the frequency of the readout clock (the offset changed from 2 to 1 when reading at a different clock period).\r\n\r\nWe should:\r\n1\\ set the default value in the detector.cfg.sample configuration file to 575 ns.\r\n2\\ possibly disable the widget in the GUI or signal in some way that one should not change the value unless he/she knows what he/she is doing.\r\n\r\nOn a side note, we're storing in the configuration file the timing code (encoding both the readout clock and clock shift) and doing some bit-shift in the GUI itself, which is obviously horrible. We probably want to revisit that."},"comment":{"url":"https://api.github.com/repos/lucabaldini/xpedaq/issues/comments/217377859","html_url":"https://github.com/lucabaldini/xpedaq/issues/79#issuecomment-217377859","issue_url":"https://api.github.com/repos/lucabaldini/xpedaq/issues/79","id":217377859,"user":{"login":"lucabaldini","id":8972541,"avatar_url":"https://avatars.githubusercontent.com/u/8972541?v=3","gravatar_id":"","url":"https://api.github.com/users/lucabaldini","html_url":"https://github.com/lucabaldini","followers_url":"https://api.github.com/users/lucabaldini/followers","following_url":"https://api.github.com/users/lucabaldini/following{/other_user}","gists_url":"https://api.github.com/users/lucabaldini/gists{/gist_id}","starred_url":"https://api.github.com/users/lucabaldini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucabaldini/subscriptions","organizations_url":"https://api.github.com/users/lucabaldini/orgs","repos_url":"https://api.github.com/users/lucabaldini/repos","events_url":"https://api.github.com/users/lucabaldini/events{/privacy}","received_events_url":"https://api.github.com/users/lucabaldini/received_events","type":"User","site_admin":false},"created_at":"2016-05-06T08:15:55Z","updated_at":"2016-05-06T08:15:55Z","body":"I am moving the bit-shift stuff out of the GUI.\r\n\r\nA couple of reference values\r\n```\r\nClock          Shift                           Code\r\n5 MHz         5 ticks (125 ns)         37 (0x)\r\n\"                  25 ticks (625 ns)       57 (0x)\r\n1.25 MHz    25 ticks (625 ns)      121(0x)\r\n```"}}