Getting Data from Serial Port using Comm Control 
Author Message
 Getting Data from Serial Port using Comm Control

I would like to use an array of switches to control things in
Windows98.  I was thinking that each switch
 could be attached to a resistor of a different value.  Thus each switch
provides a different level of
resistance.  My question then is... 1)  what circuit could I use to
generate a serial port compatible signal,
2) how can I read the serial port with VB to get the value?

Thanks
Hernan



Fri, 21 Sep 2001 03:00:00 GMT  
 Getting Data from Serial Port using Comm Control
There is chance of possible damage to system doing it that way
Use the joystick buttons and read them off 2 joy sticks x4 buttons = 8
Quote:

>I would like to use an array of switches to control things in
>Windows98.  I was thinking that each switch
> could be attached to a resistor of a different value.  Thus each switch
>provides a different level of
>resistance.  My question then is... 1)  what circuit could I use to
>generate a serial port compatible signal,
>2) how can I read the serial port with VB to get the value?

>Thanks
>Hernan



Sat, 22 Sep 2001 03:00:00 GMT  
 Getting Data from Serial Port using Comm Control
Hi,

You might want to use the parallel port, rather than the serial port for
this.  The actual implementation is difficult to say without knowing more --
if you want to monitor two or three inputs, then you could use the serial
port (say, using MSCommx.RTSHolding to monitor RTS, and MSCommx.CDHolding to
monitor CD, etc.).  You can monitor five bits on the parallel port, and
these could be multiplexed to actually obtain the status of hundreds of
inputs.

I suggest that you go to the books link on my homepage, and look at Jan
Axelson's book, Parallel Port Complete.  It covers the implementation of
just such circuitry in detail (with programs).

--
Richard Grier
Hard & Software
12962 West Louisiana Avenue
Lakewood, CO  80228
303-986-2179 (voice)
303-986-3143 (fax)
Author of Visual Basic Programmer's Guide to Serial Communications, 2nd
Edition (355 pages).
For information look on my homepage at http://www.hardandsoftware.net.
Use the Books link to order.  For faster service contact the publisher at
http://www.mabry.com.



Sat, 22 Sep 2001 03:00:00 GMT  
 Getting Data from Serial Port using Comm Control
Thank you for the information!

Hernan

Quote:

> I would like to use an array of switches to control things in
> Windows98.  I was thinking that each switch
>  could be attached to a resistor of a different value.  Thus each switch
> provides a different level of
> resistance.  My question then is... 1)  what circuit could I use to
> generate a serial port compatible signal,
> 2) how can I read the serial port with VB to get the value?

> Thanks
> Hernan



Sat, 22 Sep 2001 03:00:00 GMT  
 Getting Data from Serial Port using Comm Control
If you want to be professional about it, I would go with a neat little
data aquisition device from Black Box, model# SDA232 (SDA=Serial Data
Aquisition).  I have used this device in several applications.  It has
8 Analog Inputs, 3 digital Inputs, and 3 digital Outputs, and costs
about 88.00 including shipping.  You can check out the specs on the
product at http://www.blackbox.com

Have fun :)



Quote:
>I would like to use an array of switches to control things in
>Windows98.  I was thinking that each switch
> could be attached to a resistor of a different value.  Thus each switch
>provides a different level of
>resistance.  My question then is... 1)  what circuit could I use to
>generate a serial port compatible signal,
>2) how can I read the serial port with VB to get the value?

>Thanks
>Hernan



Mon, 24 Sep 2001 03:00:00 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. Getting Data from Serial Port using Comm Control

2. Getting Data from Serial Port using Comm Control

3. How to loop comm port control to read text files through serial port in VB3

4. TImeout in serial port comm using greenleaf

5. serial port and comm control

6. Getting data from Comm Port

7. Serial comm with vb and comm control

8. read data from serial port using vba for Access

9. Stream input from COM port using MS COMM control: example requested

10. Serial Comm Port 8-bit + parity?

11. I need testers for serial port comm DLL and alpha paging DLL (Delphi, C/C++, VB)

12. Serial Port Comm?

 

 
Powered by phpBB® Forum Software