Visual Basic and "adc11_get_values"

 
Post new topic   Reply to topic    Pico Technology Forum Index -> General Software Discussions
Author Message
FlexyZ
User
User


Joined: 20 Jun 2005
Posts: 2

PostPosted: Mon Jun 20, 2005 7:39 pm    Post subject: Visual Basic and "adc11_get_values" Reply with quote

Hi

Just got ADC11 USB, and picoscope works.

But Visual Basic example (downloaded latest drivers) are not working with "FAST" (adc11_get_values)

Error:

MEMMGR:
Attempt to lock unknown global
File \Pico\Prod\Adc11\Windrv\Adc11usb.c line 1039

Run-time error '11':

Division by zero

****************

After some searching in the forum, there seems to be missing :

adc11_run
adc11_ready

Why are the example not working? and even with function declarations missing.

Thanks
Felix


PS. Anyone got a .NET wrapper working?
Back to top
Sarah
Guest





PostPosted: Thu Jun 23, 2005 10:28 am    Post subject: Reply with quote

Hi

Thank you for your post.

On closer inspection it does seem that there are two lines missing in the code for the USB unit. These are the lines taht you have identified.

We have updated our files here and if you require a copy of the updated code then please email us at tech@picotech.com and let us know.

Best Regards
Back to top
FlexyZ
User
User


Joined: 20 Jun 2005
Posts: 2

PostPosted: Fri Jun 24, 2005 11:26 am    Post subject: Reply with quote

Hi

I added the lines myself, but still not working.

But I am using .NET C# now, I finally got my wrapper working - still need some work though.

Felix
Back to top
dundas
User
User


Joined: 24 Aug 2005
Posts: 4

PostPosted: Wed Aug 24, 2005 8:15 am    Post subject: Reply with quote

FlexyZ:

I just added them externally

Code:
    Declare Auto Function adc11_run Lib "adc1132.dll" (ByVal no_of_values As Long, ByVal method As Short)
    Declare Auto Function adc11_ready Lib "adc1132.dll" () As Short


in a module, and it worked like a charm.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Pico Technology Forum Index -> General Software Discussions
All times are GMT
Page 1 of 1

 


Pico Technology topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group