Computing.Net > Forums > Disk Operating System > Interfacing Qbasic with coms ports

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

Interfacing Qbasic with coms ports

Reply to Message Icon

Name: Robert
Date: October 5, 2002 at 07:05:10 Pacific
OS: dos6.22 win3.11
CPU/Ram: 386/4meg
Comment:

I am trying to make an anemometer to measure wind speed as a project for my teenage son. The question is how can I get data from a coms port into a Qbasic or VBasic program so I can use this old PC as a data logger/display? Do I need to write some kind of device driver or is there a dos command / batch file that can help?

Any help or pointers for further reading would be much appreciated.

Rob



Sponsored Link
Ads by Google

Response Number 1
Name: Guti
Date: October 5, 2002 at 14:34:00 Pacific
Reply:

In Basic for DOS (Basic, GwBasic, QBasic, QuickBasic, PowerBasic, ...) you can use IN to read hardware ports. Usually COM1 is 3F8.
Under Windows you need to use a special library which allows you to access directly to the hardware.


0

Response Number 2
Name: tech-fred
Date: October 5, 2002 at 18:49:00 Pacific
Reply:

For port interfacing info - Serial, Parallel
and USB :

www.lvr.com

Also you could use your game port if you
have one - 4 switches + 4 analog to digital
inputs.

Actually there was a magazine article on a
similar weather project within the last 2
years in one of the electronic magazines.
I don't remember which one.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


dos printing on bjc2100sp Systech ? Saundra



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: Interfacing Qbasic with coms ports

write to com port with MSDos 6.22 www.computing.net/answers/dos/write-to-com-port-with-msdos-622/13058.html

Multiport Serial Interface COM Ports / I www.computing.net/answers/dos/multiport-serial-interface-com-ports-i/6226.html

capture data on a com port www.computing.net/answers/dos/capture-data-on-a-com-port/2435.html