Problems to use ADC-11 USB from own application

Post any questions you may have about our current range of USB data loggers
Post Reply
TK
User
User
Posts: 2
Joined: Fri Jan 02, 2009 3:21 pm

Problems to use ADC-11 USB from own application

Post by TK »

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).

ziko
Advanced User
Advanced User
Posts: 1705
Joined: Fri Dec 01, 2006 10:03 am
Location: St Neots

Post by ziko »

Hi TK,

I do not know delphi, however could it be that you are not closing the unit properly. The unit may still be open.

Kind regards
Ziko

Technical Specialist

ziko
Advanced User
Advanced User
Posts: 1705
Joined: Fri Dec 01, 2006 10:03 am
Location: St Neots

Post by ziko »

Actually I realised something, there may have been a problem with the ADC11 dll, the following link has the latest dll with it.

http://www.picotech.com/support/viewtop ... highlight=

Let me know how you get on.

Kind regards
Ziko

Technical Specialist

TK
User
User
Posts: 2
Joined: Fri Jan 02, 2009 3:21 pm

Post by TK »

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 ...

gruntman
Advanced User
Advanced User
Posts: 109
Joined: Thu Sep 28, 2006 3:50 pm

Post by gruntman »

TK,

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.

Regards,

Richard Boyd
Crag Technologies, Inc
http://www.pc-oscilloscopes.com
Attachments
USBADC-11 Driver Functions.doc
(60 KiB) Downloaded 613 times

Post Reply