USB ADC11 in Visual Basic

Post any questions you may have about our current range of USB data loggers
Post Reply

USB ADC11 in Visual Basic

Post by jmserra » Tue Feb 15, 2011 8:03 pm

I want to use an USBADC11 card in Visual Basic 6
Searching this forum I found that there is no code in VB for the USB ADC11 card. In fact I have a picolog1216 but it seems to be compatible in terms of software.
I found inside the excel example a piece of code in VBA.
I copied into a VB module but it does not work. The example in excel works fine. In VB the handle returned by the UsbAdc11OpenUnit is zero always.
I don't understand why it works in excel and not in VB.
Any help is appreciated

Site Admin
Site Admin
Posts: 169
Joined: Tue Aug 17, 2010 9:00 am
Location: St. Neots

Re: USB ADC11 in Visual Basic

Post by Chris » Thu Feb 17, 2011 6:39 pm

Check that you're using the same version of the usbadc11.dll in your vb code, as is being used in the excel example code.

Version works in compatibility mode.

Alternatively, port the pl1000.xls vba code to vb6.


Post Reply