Closed UffeJakobsen closed 8 years ago
Interesting. Can you post the output of os.platform and os.uname on your system?
Here you are
os.name 'posix'
os.uname() ('FreeBSD', 'asus-u32u', '10.0-RELEASE-p1', 'FreeBSD 10.0-RELEASE-p1 #0: Tue Apr 8 06:45:06 UTC 2014 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC', 'amd64')
platform.system() 'FreeBSD'
platform.release() '10.0-RELEASE-p1'
platform.version() 'FreeBSD 10.0-RELEASE-p1 #0: Tue Apr 8 06:45:06 UTC 2014 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC'
platform.uname()
('FreeBSD', 'asus-u32u', '10.0-RELEASE-p1', 'FreeBSD 10.0-RELEASE-p1 #0: Tue Apr 8 06:45:06 UTC 2014 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC', 'amd64', 'amd64')
/Uffe
Thanks. Also, what exception is it throwing?
Here is the exception output:
Unknown error -99 None
Traceback (most recent call last):
File "rigol.py", line 17, in
This particular reset call has now been completely removed, so this should no longer be an issue.
Hi,
On FreeBSD the reset issued during connect is no good - and prevents usctmc from working (throws exception). If I remove/disable the exception is works fine.
I suspect that you've has/seen the same problem with eg Windows ? At lease I can see that usbtmc.py line 255 has the following construction:
if os.name == 'posix': self.device.reset()
That needs to be extended to specificly check for FreeBSD (using os.platform or os.uname ???)
Please let me know if you need more info /Uffe