Test and Measurement Forum

Digital output

Post your VB and VBA discussions here

Digital output

Postby CIT » Tue Jan 09, 2007 1:22 pm

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
CIT
Newbie
 
Posts: 1
Joined: Tue Jan 09, 2007 1:09 pm

Postby ziko » Sun Feb 04, 2007 10:58 pm

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 598 times
Ziko

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


Return to VB and VBA (Excel, Access)

Who is online

Users browsing this forum: No registered users and 0 guests