Test and Measurement Forum

Digital output

Forum for discussing PicoLog

Digital output

Postby Guest » Mon Jan 08, 2007 3:23 pm


On the subject of the digital output on the ADC-11 USB, how does one actually use the drivers to turn the output on and off? I have tried using Visual Basic to do this but I keep getting an error message telling me I've made a 'bad DLL calling convention'. I'm sure the answer to this question must be very simple but I don't appear to be too good at calling drivers so an example would be helpful if possible.

Many thanks,


Postby Sarah » Mon Jan 08, 2007 3:48 pm

Hi John

Thank you for your post.

Firstly, which driver are you using with the unit? Secondly which function call are you using to try and set the DO? This will give me some more information as to where the problem is.

Best Regards

Digital Output

Postby Guest » Mon Jan 08, 2007 4:40 pm


I am using the driver UsbAdc11SetDo which I have declared as

Declare Sub UsbAdc11SetDo Lib "usbadc11.dll" (ByVal state As Integer)

By 'function call' I'm not too sure. I tried doing this to turn it off:

Call UsbAdc11SetDo(0)

And this to turn it on:

Call UsbAdc11SetDo(1)

Don't laugh, it seemed logical at the time. Anyhow, naturally it didn't work.

Hope that helps you help me,


Postby ziko » Tue Feb 27, 2007 10:54 am

Hi and thank you for your post.

Could you please have a look at this post, there is an attached file with an example of the digital output.

http://www.picotech.com/support/viewtop ... highlight=

Kind regards

Technical Specialist
Zen Master
Zen Master
Posts: 1705
Joined: Fri Dec 01, 2006 10:03 am
Location: St Neots

Return to PicoLog

Who is online

Users browsing this forum: No registered users and 0 guests