|
|
| Author |
Message |
FlexyZ User

Joined: 20 Jun 2005
Posts: 2
|
Posted: Mon Jun 20, 2005 7:39 pm Post subject: Visual Basic and "adc11_get_values" |
|
|
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
|
Posted: Thu Jun 23, 2005 10:28 am Post subject: |
|
|
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

Joined: 20 Jun 2005
Posts: 2
|
Posted: Fri Jun 24, 2005 11:26 am Post subject: |
|
|
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

Joined: 24 Aug 2005
Posts: 4
|
Posted: Wed Aug 24, 2005 8:15 am Post subject: |
|
|
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 |
|
 |
|