Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / Serial Port?

Author
Message
Plewi
18
Years of Service
User Offline
Joined: 22nd Jul 2006
Location:
Posted: 23rd Jul 2006 03:14
Word of warning I havent used dark basic for probably over 3 years and I never really got passed the basics so be gentle with me I am no programmer by any stretch of the imagination, in fact I am actually a modelmaker, I make props for film and tv plus who ever else wants stuff making.

Now for the question, is it posible to access the serial port using darkbasic so I can make a very simple test program to control a serial servo controller? Will I need a plugin and or drivers to do this?

Any hints would be welcome plus example code would be nice!

Thanks.
hexGEAR
22
Years of Service
User Offline
Joined: 3rd Nov 2002
Location: Naytonia
Posted: 23rd Jul 2006 13:57 Edited at: 23rd Jul 2006 13:58
I don't think it's possible to access the serial port using Dark Basic only, although i'm pretty sure you can create a windows dll using C++ that could give your Dark Basic application this extra functionality.

Over the years a lot of people have made plugin's for Dark Basic Classic and Pro so i wouldn't be suprised if a quick scan of the DLL Talk forums turns up what your looking for. On the other hand if your feeling ambitious then you could make one for yourself; check out this paper on windows serial port programming:

http://www.robbayer.com/files//serial-win.pdf

Login to post a reply

Server time is: 2025-05-25 06:43:25
Your offset time is: 2025-05-25 06:43:25