{"action":"created","issue":{"url":"https://api.github.com/repos/analogdevicesinc/libm2k/issues/72","repository_url":"https://api.github.com/repos/analogdevicesinc/libm2k","labels_url":"https://api.github.com/repos/analogdevicesinc/libm2k/issues/72/labels{/name}","comments_url":"https://api.github.com/repos/analogdevicesinc/libm2k/issues/72/comments","events_url":"https://api.github.com/repos/analogdevicesinc/libm2k/issues/72/events","html_url":"https://github.com/analogdevicesinc/libm2k/issues/72","id":530488732,"node_id":"MDU6SXNzdWU1MzA0ODg3MzI=","number":72,"title":"Some atributes have changed / nolonger work in libm2k master.402 build?","user":{"login":"damercer","id":11668458,"node_id":"MDQ6VXNlcjExNjY4NDU4","avatar_url":"https://avatars2.githubusercontent.com/u/11668458?v=4","gravatar_id":"","url":"https://api.github.com/users/damercer","html_url":"https://github.com/damercer","followers_url":"https://api.github.com/users/damercer/followers","following_url":"https://api.github.com/users/damercer/following{/other_user}","gists_url":"https://api.github.com/users/damercer/gists{/gist_id}","starred_url":"https://api.github.com/users/damercer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damercer/subscriptions","organizations_url":"https://api.github.com/users/damercer/orgs","repos_url":"https://api.github.com/users/damercer/repos","events_url":"https://api.github.com/users/damercer/events{/privacy}","received_events_url":"https://api.github.com/users/damercer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2019-11-29T21:14:37Z","updated_at":"2019-12-03T13:55:31Z","closed_at":null,"author_association":"NONE","body":"Hi:\r\nI just updated my version of libm2k (with Python bindings) and something has changed that renders this error:\r\n\r\nTraceback (most recent call last):\r\n  File \"C:\\ALICEm2k\\alice-desktop-2.1.pyw\", line 17613, in <module>\r\n    ConnectDevice() # find attached M2K\r\n  File \"C:\\ALICEm2k\\alice-desktop-2.1.pyw\", line 8162, in ConnectDevice\r\n    trig.setAnalogCondition(0,libm2k.RISING_EDGE) # RISING_EDGE)\r\nAttributeError: module 'libm2k' has no attribute 'RISING_EDGE'\r\n\r\nThe example code here seems to still have this usage:\r\n\r\n#uncomment the following block to enable triggering\r\n#trig.setAnalogSource(0) # Channel 0 as source\r\n#trig.setAnalogCondition(0,libm2k.RISING_EDGE)\r\n#trig.setAnalogLevel(0,0.5)  # Set trigger level at 0.5\r\n#trig.setAnalogDelay(0) # Trigger is centered\r\n#trig.setAnalogMode(1, libm2k.ANALOG)\r\n\r\nCan't find where in the source code the allowed attributes are enumerated and the auto generated help does not list allowed values for the various functions:\r\n\r\nhttps://analogdevicesinc.github.io/libm2k/group__m2ktrigger.html#ga276a274638000400f8c6ccf2efcb18c5\r\n\r\nThis is another place where things no longer seem to work for aout.push(buffer)\r\n\r\nException in Tkinter callback\r\nTraceback (most recent call last):\r\n  File \"C:\\Python37\\lib\\tkinter\\__init__.py\", line 1705, in __call__\r\n    return self.func(*args)\r\n  File \"C:\\ALICEm2k\\alice-desktop-2.1.pyw\", line 14046, in onAWGBscroll\r\n    UpdateAWGB()\r\n  File \"C:\\ALICEm2k\\alice-desktop-2.1.pyw\", line 10153, in UpdateAWGB\r\n    aout.push(buffer)\r\n  File \"C:\\Python37\\lib\\site-packages\\libm2k.py\", line 1582, in push\r\n    return _libm2k.M2kAnalogOut_push(self, *args)\r\nValueError: Module libm2k error: ERR: Invalid argument - Buffer: Can't create the TX buffer\r\n\r\nSo what is a programmer supposed to do?\r\n\r\nThanks\r\n\r\nDoug \r\n"},"comment":{"url":"https://api.github.com/repos/analogdevicesinc/libm2k/issues/comments/561178156","html_url":"https://github.com/analogdevicesinc/libm2k/issues/72#issuecomment-561178156","issue_url":"https://api.github.com/repos/analogdevicesinc/libm2k/issues/72","id":561178156,"node_id":"MDEyOklzc3VlQ29tbWVudDU2MTE3ODE1Ng==","user":{"login":"AlexandraTrifan","id":18142097,"node_id":"MDQ6VXNlcjE4MTQyMDk3","avatar_url":"https://avatars1.githubusercontent.com/u/18142097?v=4","gravatar_id":"","url":"https://api.github.com/users/AlexandraTrifan","html_url":"https://github.com/AlexandraTrifan","followers_url":"https://api.github.com/users/AlexandraTrifan/followers","following_url":"https://api.github.com/users/AlexandraTrifan/following{/other_user}","gists_url":"https://api.github.com/users/AlexandraTrifan/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexandraTrifan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexandraTrifan/subscriptions","organizations_url":"https://api.github.com/users/AlexandraTrifan/orgs","repos_url":"https://api.github.com/users/AlexandraTrifan/repos","events_url":"https://api.github.com/users/AlexandraTrifan/events{/privacy}","received_events_url":"https://api.github.com/users/AlexandraTrifan/received_events","type":"User","site_admin":false},"created_at":"2019-12-03T13:55:31Z","updated_at":"2019-12-03T13:55:31Z","author_association":"CONTRIBUTOR","body":"Hi,\r\n\r\nThe build you are using ( https://ci.appveyor.com/project/analogdevicesinc/libm2k/builds/29205928 ) is under development (on branch kernel_buffers_analog_out) . We are working on using kernel buffers and streaming on the AnalogOut. \r\n\r\nCan you try the master branch and tell us if you have the same issue?  ( this is the latest master build https://ci.appveyor.com/project/analogdevicesinc/libm2k/builds/29186419 )\r\nCould you tell us what sample rates are set for the DAC channels? We will check the bug on the development branch and fix it. \r\n\r\nThank you,\r\n-Alexandra"}}
{"actor":{"display_login":"AlexandraTrifan"}}