Digital output

 
Post new topic   Reply to topic    Pico Technology Forum Index -> PicoLog
Author Message
Guest






PostPosted: Mon Jan 08, 2007 3:23 pm    Post subject: Digital output Reply with quote

Hello,

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,

John
Back to top
Sarah
Guest





PostPosted: Mon Jan 08, 2007 3:48 pm    Post subject: Reply with quote

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
Back to top
Guest






PostPosted: Mon Jan 08, 2007 4:40 pm    Post subject: Digital Output Reply with quote

Righto,

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,

John
Back to top
ziko
Site Admin
Site Admin


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

PostPosted: Tue Feb 27, 2007 10:54 am    Post subject: Reply with quote

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/viewtopic.php?t=3188&highlight=

Kind regards
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Pico Technology Forum Index -> PicoLog
All times are GMT
Page 1 of 1

 


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