Digital output

Post your VB and VBA discussions here
Post Reply
CIT
Newbie
Posts: 1
Joined: Tue Jan 09, 2007 1:09 pm

Digital output

Post by CIT »

Hello,

I'm a bit of a novice when it comes to using drivers and function calls etc but I have modest requirements and I hope someone out there can help me.

I am trying to use the digital output on the device ADC-11 USB. Basically, all a want to be able to do is switch the digital ouptut on and off using a VB macro from excel.

I understand that the function needed is declared as:

Declare Function UsbAdc11SetDo Lib "usbadc11.dll'' (ByVal handle As Integer, ByVal do_value As Integer, ByVal doNo As Integer) As Integer

(or something along those lines)

But then I need to call it and set it to O or 1.

How do I do this.

I'm sure this is quite basic, but any help would be greatly appreciated (and, if not too cheeky, an example).

Thanks,

John

ziko
Advanced User
Advanced User
Posts: 1705
Joined: Fri Dec 01, 2006 10:03 am
Location: St Neots

Post by ziko »

Hi thank you for the Post, I think you also sent an email. Either way I am pleased to say I have a working example for you, just fill in the cells as indicated. If you have any other questions about the example, please do not hesitate to contact me.

Kind regards.
Attachments
usbadc11.xls
This is the USB ADC11 example with DO functionality.
(38 KiB) Downloaded 978 times
Ziko

Technical Specialist

Post Reply