{"action":"created","issue":{"url":"https://api.github.com/repos/python-ivi/python-usbtmc/issues/28","repository_url":"https://api.github.com/repos/python-ivi/python-usbtmc","labels_url":"https://api.github.com/repos/python-ivi/python-usbtmc/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/python-ivi/python-usbtmc/issues/28/comments","events_url":"https://api.github.com/repos/python-ivi/python-usbtmc/issues/28/events","html_url":"https://github.com/python-ivi/python-usbtmc/issues/28","id":180669293,"number":28,"title":"usb.core.USBError: [Errno None] Configuration not set","user":{"login":"gnbl","id":1181708,"avatar_url":"https://avatars.githubusercontent.com/u/1181708?v=3","gravatar_id":"","url":"https://api.github.com/users/gnbl","html_url":"https://github.com/gnbl","followers_url":"https://api.github.com/users/gnbl/followers","following_url":"https://api.github.com/users/gnbl/following{/other_user}","gists_url":"https://api.github.com/users/gnbl/gists{/gist_id}","starred_url":"https://api.github.com/users/gnbl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gnbl/subscriptions","organizations_url":"https://api.github.com/users/gnbl/orgs","repos_url":"https://api.github.com/users/gnbl/repos","events_url":"https://api.github.com/users/gnbl/events{/privacy}","received_events_url":"https://api.github.com/users/gnbl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-10-03T15:24:08Z","updated_at":"2016-10-04T07:35:01Z","closed_at":null,"body":"Python 3.5.1 (v3.5.1:37a07cee5969, Dec  6 2015, 01:54:25) [MSC v.1900 64 bit (AMD64)] on win32\r\nlibusb 1.2.6.0 installed for device with Zadig\r\npyusb and python-usbtmc first installed with pip\r\n\r\nTrying the following\r\n\r\n```\r\n    import usbtmc\r\n    import time, sys\r\n    instr =  usbtmc.Instrument(0x1ab1, 0x04ce)\r\n    print(instr.ask(\"*IDN?\"))\r\n    time.sleep(0.2)\r\n    print( \"Trigger status:\", instr.ask(\":TRIGger:STAtus?\") )\r\n    time.sleep(0.5)\r\n    print( \"Setting single trigger mode.\", instr.ask(\":SINGle\") )\r\n    time.sleep(0.5)\r\n    print( \"Trigger status:\", instr.ask(\":TRIGger:STAtus?\") )\r\n    sys.exit()\r\n```\r\n\r\nResults in \r\n\r\n```\r\n    print(instr.ask(\"*IDN?\"))\r\n  File \"C:\\Program Files\\Python35\\lib\\site-packages\\usbtmc\\usbtmc.py\", line 575, in ask\r\n    self.write(message, encoding)\r\n  File \"C:\\Program Files\\Python35\\lib\\site-packages\\usbtmc\\usbtmc.py\", line 555, in write\r\n    self.write_raw(str(message).encode(encoding))\r\n  File \"C:\\Program Files\\Python35\\lib\\site-packages\\usbtmc\\usbtmc.py\", line 464, in write_raw\r\n    self.open()\r\n  File \"C:\\Program Files\\Python35\\lib\\site-packages\\usbtmc\\usbtmc.py\", line 281, in open\r\n    self.old_cfg = self.device.get_active_configuration()\r\n  File \"C:\\Program Files\\Python35\\lib\\site-packages\\usb\\core.py\", line 875, in get_active_configuration\r\n    return self._ctx.get_active_configuration(self)\r\n  File \"C:\\Program Files\\Python35\\lib\\site-packages\\usb\\core.py\", line 102, in wrapper\r\n    return f(self, *args, **kwargs)\r\n  File \"C:\\Program Files\\Python35\\lib\\site-packages\\usb\\core.py\", line 242, in get_active_configuration\r\n    raise USBError('Configuration not set')\r\nusb.core.USBError: [Errno None] Configuration not set\r\n```\r\n\r\nSame with python_usbtmc-0.7-py3.5.egg from https://pypi.python.org/pypi/python-usbtmc installed with `easy_install python_usbtmc-0.7-py3.5.egg`\r\n\r\n ```\r\n   print(instr.ask(\"*IDN?\"))\r\n  File \"C:\\Program Files\\Python35\\lib\\site-packages\\python_usbtmc-0.7-py3.5.egg\\usbtmc\\usbtmc.py\", line 575, in ask\r\n  File \"C:\\Program Files\\Python35\\lib\\site-packages\\python_usbtmc-0.7-py3.5.egg\\usbtmc\\usbtmc.py\", line 555, in write\r\n  File \"C:\\Program Files\\Python35\\lib\\site-packages\\python_usbtmc-0.7-py3.5.egg\\usbtmc\\usbtmc.py\", line 464, in write_raw\r\n  File \"C:\\Program Files\\Python35\\lib\\site-packages\\python_usbtmc-0.7-py3.5.egg\\usbtmc\\usbtmc.py\", line 281, in open\r\n  File \"C:\\Program Files\\Python35\\lib\\site-packages\\usb\\core.py\", line 875, in get_active_configuration\r\n    return self._ctx.get_active_configuration(self)\r\n  File \"C:\\Program Files\\Python35\\lib\\site-packages\\usb\\core.py\", line 102, in wrapper\r\n    return f(self, *args, **kwargs)\r\n  File \"C:\\Program Files\\Python35\\lib\\site-packages\\usb\\core.py\", line 242, in get_active_configuration\r\n    raise USBError('Configuration not set')\r\nusb.core.USBError: [Errno None] Configuration not set\r\n```\r\n\r\nLet me know how to provide further debug info."},"comment":{"url":"https://api.github.com/repos/python-ivi/python-usbtmc/issues/comments/251315490","html_url":"https://github.com/python-ivi/python-usbtmc/issues/28#issuecomment-251315490","issue_url":"https://api.github.com/repos/python-ivi/python-usbtmc/issues/28","id":251315490,"user":{"login":"gnbl","id":1181708,"avatar_url":"https://avatars.githubusercontent.com/u/1181708?v=3","gravatar_id":"","url":"https://api.github.com/users/gnbl","html_url":"https://github.com/gnbl","followers_url":"https://api.github.com/users/gnbl/followers","following_url":"https://api.github.com/users/gnbl/following{/other_user}","gists_url":"https://api.github.com/users/gnbl/gists{/gist_id}","starred_url":"https://api.github.com/users/gnbl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gnbl/subscriptions","organizations_url":"https://api.github.com/users/gnbl/orgs","repos_url":"https://api.github.com/users/gnbl/repos","events_url":"https://api.github.com/users/gnbl/events{/privacy}","received_events_url":"https://api.github.com/users/gnbl/received_events","type":"User","site_admin":false},"created_at":"2016-10-04T07:35:01Z","updated_at":"2016-10-04T07:35:01Z","body":"After installing Rigol Ultrasigma including IVI Driver and NI VISA / ICP and then reinstalling the libusb-win32 filter driver things start working again. All these large installs are what I was hoping to avoid. \r\nDoes the IVI driver (IVI Foundation, Inc; 14.08.2013; 16.3.17614.0; ausbtmc.sys) maybe configure the device somehow?\r\nEthernet with [vxi11](https://github.com/python-ivi/python-vxi11) works without drivers but is noticably slower than USB.\r\n\r\n~~I still get a timeout on ```instr.ask(\":TRIGger:SWEep SINGle\")``` but that must be a firmware issue since other commands are working now.~~\r\nInstrument was lost, says SuperSigma. And the command apparently does not have a response, so write only: ```instr.write(\":TRIGger:SWEep SINGle\")```.\r\n\r\nThanks again for your help.\r\n"}}
{"actor":{"display_login":"gnbl"}}