{"action":"created","issue":{"url":"https://api.github.com/repos/m-labs/artiq/issues/391","repository_url":"https://api.github.com/repos/m-labs/artiq","labels_url":"https://api.github.com/repos/m-labs/artiq/issues/391/labels{/name}","comments_url":"https://api.github.com/repos/m-labs/artiq/issues/391/comments","events_url":"https://api.github.com/repos/m-labs/artiq/issues/391/events","html_url":"https://github.com/m-labs/artiq/issues/391","id":147067506,"number":391,"title":"Experiment removed from schedule before it's over","user":{"login":"r-srinivas","id":11219276,"avatar_url":"https://avatars.githubusercontent.com/u/11219276?v=3","gravatar_id":"","url":"https://api.github.com/users/r-srinivas","html_url":"https://github.com/r-srinivas","followers_url":"https://api.github.com/users/r-srinivas/followers","following_url":"https://api.github.com/users/r-srinivas/following{/other_user}","gists_url":"https://api.github.com/users/r-srinivas/gists{/gist_id}","starred_url":"https://api.github.com/users/r-srinivas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/r-srinivas/subscriptions","organizations_url":"https://api.github.com/users/r-srinivas/orgs","repos_url":"https://api.github.com/users/r-srinivas/repos","events_url":"https://api.github.com/users/r-srinivas/events{/privacy}","received_events_url":"https://api.github.com/users/r-srinivas/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-04-09T00:02:27Z","updated_at":"2016-04-09T03:46:25Z","closed_at":null,"body":"I'm running the following experiment,\r\n\r\n```python\r\nfrom artiq.experiment import *\r\n\r\n\r\nclass DDS0_Scan_Test(EnvExperiment):\r\n    def build(self):\r\n     \r\n        self.setattr_device(\"core\")\r\n        self.setattr_device(\"core_dds\")\r\n        self.setattr_device(\"dds0\")\r\n\r\n        self.setattr_argument(\"minimum\", NumberValue(100, min=10, max=200))\r\n        self.setattr_argument(\"maximum\", NumberValue(200, min=100, max=500))\r\n        self.setattr_argument(\"step_size\", NumberValue(10, min=1, max=100))\r\n\r\n    @kernel\r\n    def run(self):\r\n        self.dds0.init()\r\n        delay(10*ms)\r\n        for i in range(self.minimum, self.maximum, self.step_size):\r\n            self.dds0.set(i*1e6)\r\n            delay(1*s)\r\n```\r\n\r\nLooking at the signal on the scope, it seems to work. However, it removes itself from the scheduler before the experiment is complete, usually when the DDS is at 130 MHz. If I then send in another experiment at a lower priority,\r\n\r\n```python\r\nfrom artiq.experiment import *\r\n\r\n\r\nclass DDS0_Start(EnvExperiment):\r\n    def build(self):\r\n     \r\n        self.setattr_device(\"core\")\r\n        self.setattr_device(\"core_dds\")\r\n        self.setattr_device(\"dds0\")\r\n\r\n    @kernel\r\n    def run(self):\r\n        self.dds0.init()\r\n        delay(10*ms)\r\n        self.dds0.set(100*MHz)\r\n```\r\n\r\nIt basically interrupts the frequency ramp before it's done and sets the frequency back to 100 MHz. This was done on windows. \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/m-labs/artiq/issues/comments/207695656","html_url":"https://github.com/m-labs/artiq/issues/391#issuecomment-207695656","issue_url":"https://api.github.com/repos/m-labs/artiq/issues/391","id":207695656,"user":{"login":"whitequark","id":54771,"avatar_url":"https://avatars.githubusercontent.com/u/54771?v=3","gravatar_id":"","url":"https://api.github.com/users/whitequark","html_url":"https://github.com/whitequark","followers_url":"https://api.github.com/users/whitequark/followers","following_url":"https://api.github.com/users/whitequark/following{/other_user}","gists_url":"https://api.github.com/users/whitequark/gists{/gist_id}","starred_url":"https://api.github.com/users/whitequark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whitequark/subscriptions","organizations_url":"https://api.github.com/users/whitequark/orgs","repos_url":"https://api.github.com/users/whitequark/repos","events_url":"https://api.github.com/users/whitequark/events{/privacy}","received_events_url":"https://api.github.com/users/whitequark/received_events","type":"User","site_admin":false},"created_at":"2016-04-09T03:46:25Z","updated_at":"2016-04-09T03:46:25Z","body":"Auto-sync sounds good."}}