adc11_get_values problem

Post general discussions on using our drivers to write your own software here
Post Reply
User avatar
simon@mira
User
User
Posts: 4
Joined: Thu Mar 31, 2005 11:19 am

adc11_get_values problem

Post by simon@mira »

Hello again!

I've come across a different problem now. When I try to use adc11_get_values() I instantly get the following error boxes (in order of appearance) on the desktop (two from MEMMGR and one from my application:

Attempt to lock unknown global
File \pico\Prod\Adc11\Windrv\Adc11usb.c line 1020

Attempt to lock global failed
File \pico\Prod\Adc11\Windrv\Adc11usb.c line 1020

Division by zero.


Is this a problem with the driver, DLL or both?

Incidentially, the same happens with the example code given with the driver downloads.

Robert

adc11_get_values problem

Post by Robert »

Hi.

I had the same problem. You are using a ADC11-USB? So you have to add the following lines after the set_interval call (search in the forum!)

Call adc11_run(NumberOfValues, 0)
While adc11_ready() = 0
Wend
Call adc11_stop

With these lines the demo-program should run!

User avatar
simon@mira
User
User
Posts: 4
Joined: Thu Mar 31, 2005 11:19 am

Post by simon@mira »

Thanks Robert! That seems to work fine.

Post Reply