|
|
| Author |
Message |
Guest
|
Posted: Mon Jan 08, 2007 3:23 pm Post subject: Digital output |
|
|
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
|
Posted: Mon Jan 08, 2007 3:48 pm Post subject: |
|
|
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
|
Posted: Mon Jan 08, 2007 4:40 pm Post subject: Digital Output |
|
|
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

Joined: 01 Dec 2006
Posts: 600
Location: St Neots
|
|
| Back to top |
|
 |
|