Digital output

Forum for discussing PicoLog
Post Reply
Guest

Digital output

Post by Guest »

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

Sarah

Post by Sarah »

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

Guest

Digital Output

Post by Guest »

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

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

Post by ziko »

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
Ziko

Technical Specialist

Post Reply