I have try to use PICO ADC11 USB module in my own Delphi 7 application. The problem is that not even the adc11_open_unit routine doesn't work. The function doesn't return anything, it just hangs and uses most of the pc resources. The module itself work properly with Picoscope, and Windows Device manager tells that it is working. When I connect the module and use Picoscope for a a while, close Picoscope and try adc11_open_unit routine it works but if I disconnect module, reconnect it again and try use immediately my own application, it doesn't work. Clearly open function from the application is not working.
The application has been written in a similar fashion as the most simple Delphi example ADC11 included in the installation package (which has the same problems, of course).
The problem is not in the Delphi DLL-interface since adc11_get_driver_version, adc11_get_type and adc11_get_unit_info (when opening is succesful) routines work.
Version info: ADC11/22 USB Driver v4.4, PICOP.SYS v 1.13 and Windows XP (sp2).
I fixed (partially) my problem, I used incorrect driver (because of poor documentation of USB use of ADC-11). However, your hint solved the problem of opening and closing the device. Thanks a lot!
It would be VERY nice if Pico will provide a documentation of USBADC11.dll, now you must guess all functions by comparing them with the printer port version of driver. Bad user support ...
You are correct on the documentation on the USBADC11.dll. This is something the we need to work on and will.
Attached is a rough breakdown on the function calls for the USBADC11.dll. This is a very rough draft that I quickly did for you. After the USB ADC-11 manual is finalized it will be put up on the web with more documentation on the driver functions.