Test and Measurement Forum

Problems to use ADC-11 USB from own application

Post any questions you may have about our current range of USB data loggers

Problems to use ADC-11 USB from own application

Postby TK » Fri Jan 02, 2009 3:41 pm

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).
TK
User
User
 
Posts: 2
Joined: Fri Jan 02, 2009 3:21 pm

Postby ziko » Fri Jan 09, 2009 5:15 pm

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
Zen Master
Zen Master
 
Posts: 1705
Joined: Fri Dec 01, 2006 10:03 am
Location: St Neots

Postby ziko » Fri Jan 09, 2009 5:18 pm

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
ziko
Zen Master
Zen Master
 
Posts: 1705
Joined: Fri Dec 01, 2006 10:03 am
Location: St Neots

Postby TK » Thu Jan 22, 2009 6:28 pm

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 ...
TK
User
User
 
Posts: 2
Joined: Fri Jan 02, 2009 3:21 pm

Postby gruntman » Thu Jan 22, 2009 8:27 pm

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 236 times
gruntman
Guru
Guru
 
Posts: 109
Joined: Thu Sep 28, 2006 3:50 pm


Return to USB PC Data Loggers

Who is online

Users browsing this forum: No registered users and 1 guest