Search found 9 matches

by AndyB
Tue Sep 19, 2006 10:11 pm
Forum: VB and VBA (Excel, Access)
Topic: can I use USB ADC11/10 converter as timer for short delays?
Replies: 4
Views: 9910

Sorry for the double post, but it got me wondering just how short a delay is possible with VB6 code. I tried the following; 'Create module - modDelay - and paste the following code Declare Function GetTickCount Lib "kernel32" () As Long Public Function WaitOnDelay(DelayWaitms As Long) As Long Dim St...
by AndyB
Tue Sep 19, 2006 9:26 pm
Forum: General Software Discussions
Topic: Prob with Dell laptops and USBADC driver anyone?
Replies: 1
Views: 4247

Prob with Dell laptops and USBADC driver anyone?

I have code that executes reliably on a 'beige box' homebuilt PC. When I run the same code with the same drivers on my Dell Precision M70 it will hang after a few readings while trying to poll the dataready call from the ADC11. I have tried flashing the bios, updated chipset drivers and fiddling wit...
by AndyB
Tue Sep 19, 2006 9:20 pm
Forum: VB and VBA (Excel, Access)
Topic: can I use USB ADC11/10 converter as timer for short delays?
Replies: 4
Views: 9910

The code that you have listed is the same as that used in the pico demos, so it should be OK. i.e Start the requested AtoD loop and then poll for Ready (capture complete). As for calling it in quick succession, that is also quoted in the demo as a away of collecting a sequence of 'almost' joined blo...
by AndyB
Sun Sep 17, 2006 9:37 pm
Forum: VB and VBA (Excel, Access)
Topic: ADC11/12 VB driver
Replies: 4
Views: 9676

To close this thread..
A new driver is available from Pico USBADC11.dll that seems to fix most low level driver issues with the USB version of ADC11. The driver is installed by the latest version of the software pack but it is undocumented. An example prog is available from Pico.
by AndyB
Sun Sep 17, 2006 9:32 pm
Forum: VB and VBA (Excel, Access)
Topic: can I use USB ADC11/10 converter as timer for short delays?
Replies: 4
Views: 9910

If you want to get decent timings try the API call Declare Function GetTickCount lib "kernel32" () as long Dim CurrentT as long CurrentT=GetTickCount This will return a value in milliseconds(elapsed since windows was started) each time it's called, so read it before and after and compute the result
by AndyB
Wed Sep 13, 2006 1:13 pm
Forum: VB and VBA (Excel, Access)
Topic: Probs with dll 2
Replies: 2
Views: 6915

I've dabbled further, and I can get FAST collect to work if I ship the command that checks adc11_ready, on my DELL laptop it never returns ready, but if I skip the command I can retrieve the data, on my desktop machine, it appears that this is the call causing that may be causing the problem. I can ...
by AndyB
Tue Sep 12, 2006 7:02 am
Forum: VB and VBA (Excel, Access)
Topic: ADC11/12 VB driver
Replies: 4
Views: 9676

The VB code example is buggy - even in the latest software pack. You need to modify the following lines in Open_Click to use the USB device port = 101 product = 111 The above is for USB ADC11 modify to suit your unit - definitions for others are in the ADC help file. The program also needs two more ...
by AndyB
Sat Sep 09, 2006 10:20 pm
Forum: General Software Discussions
Topic: Need help with ADC11 vb driver
Replies: 1
Views: 4335

Need help with ADC11 vb driver

I have posted in the VB section, but since then have experimented further. Using vbstudio I have been able to observe the errors and it seems that the driver is being upset by the call parameter decleration, I have checked against the documentation and it seems to be OK - the error seems to be in th...
by AndyB
Sat Sep 09, 2006 1:27 am
Forum: VB and VBA (Excel, Access)
Topic: Probs with dll 2
Replies: 2
Views: 6915

Probs with dll 2

Please help. I have now discovered that the get single reading call just does not work. I've tried the scan number of channels and obtain a block of readings call and that returns sensible values, but ..... , the driver seems to crash constantly, especially when you try to close the vb form window o...