Test and Measurement Forum

adc11_get_values problem

Post general discussions on using our drivers to write your own software here

adc11_get_values problem

Postby simon@mira » Mon Apr 25, 2005 12:23 pm

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.
User avatar
simon@mira
User
User
 
Posts: 4
Joined: Thu Mar 31, 2005 11:19 am

adc11_get_values problem

Postby Robert » Mon Apr 25, 2005 12:46 pm

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!
Robert
 

Postby simon@mira » Mon Apr 25, 2005 3:32 pm

Thanks Robert! That seems to work fine.
User avatar
simon@mira
User
User
 
Posts: 4
Joined: Thu Mar 31, 2005 11:19 am


Return to General Software Discussions

Who is online

Users browsing this forum: No registered users and 0 guests