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
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.
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.
Summary: Computer is set up for multiboot with Dos,W98 or W2000 in separate primary partitions. Computer is a new P4 with Intel 845 chipset motherboard. When I write to the com port with Dos6.22, I get write e...
Summary: Hi. I tried to install a Universal 4 Port Serial Multiplexer Card in my CPQ 486DX4-90.(cardtype: MOXA C104). Under DOS there doesn't seem to be a problem to use it. (I tried to connect with another PC...
Summary: I saw a post earlier about capturing data from a com port, well here is my question, I want to capture data going through a com port to a printer. How can I do this? My first thought would be to put...