Digital output

 
Post new topic   Reply to topic    Pico Technology Forum Index -> VB and VBA (Excel, Access)
Author Message
CIT
Newbie


Joined: 09 Jan 2007
Posts: 1

PostPosted: Tue Jan 09, 2007 1:22 pm    Post subject: Digital output Reply with quote

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
Back to top
ziko
Site Admin
Site Admin


Joined: 01 Dec 2006
Posts: 658
Location: St Neots

PostPosted: Sun Feb 04, 2007 10:58 pm    Post subject: Reply with quote

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.



usbadc11.xls
 Description:
This is the USB ADC11 example with DO functionality.

Download
 Filename:  usbadc11.xls
 Filesize:  38 KB
 Downloaded:  385 Time(s)

Back to top
Display posts from previous:   
Post new topic   Reply to topic    Pico Technology Forum Index -> VB and VBA (Excel, Access)
All times are GMT
Page 1 of 1

 


Pico Technology topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group