Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
equipment:odd:writing_to_accesio_june_2021 [2021/06/19 10:39] jefferisequipment:odd:writing_to_accesio_june_2021 [2021/09/16 16:41] (current) – [Response 2] jefferis
Line 60: Line 60:
 Greg Jefferis, Greg Jefferis,
 Cambridge, UK. Cambridge, UK.
 +
 +
 +====== Response 1 ======
 +:
 +
 +Hi Gregory,
 +
 +We do not yet offer Python as an officially supported language (that is, a language for which we provide working sample programs for the majority of our products).
 +
 +However, we are in the process of adding Python to our list of supported languages.
 +
 +You can grab a ctypes wrapper for the Windows AIOUSB.dll here: https://accesio.com/files/AIOUSB.py
 +
 +There will be minor edits necessary to this file; specifically, make sure the DLL is being loaded from a valid location.
 +
 +If you run into any issues just let me know and I'll provide what assistance I can.
 +
 +Sincerely,
 +John Hentges
 +JHentges@accesio.com
 +Director of Digital Design and Software Engineering
 +
 +
 +====== Response 2 ======
 +
 +Hi Gregory,
 +
 +AIO_Init(), and libusb itself, are not used in Windows.
 +
 +Our Windows API Library (AIOUSB.dll) doesn't support libusb, and instead uses CyUSB.sys (or CyUSB3.sys) as its driver component.
 +
 +Sincerely,
 +John Hentges
 +JHentges@accesio.com
 +Director of Digital Design and Software Engineering
 +
 +-----Original message-----
 +From: Dr Gregory Jefferis <jefferis@mrc-lmb.cam.ac.uk>
 +Sent: 06/21/2021 09:37:56
 +
 +Dear John,
 +
 +Many thanks for you message. I very much appreciate your quick response.
 +
 +The AIOUSB.py sample file you linked will be very useful. Two questions
 +
 +1. Is AIO_Init() still necessary? I see it is not wrapped.
 +
 +2. Do you have any thoughts about whether it will be possible to get
 +/
 +work with an initialised lib_usb handle on the python side? In the
 +past
 +reusing handles make things run much faster.
 +
 +Thank you again,
 +
 +Greg.

Log In