Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Reading the pin voltage fm RS232 port into excel by using VBA

Is there any way in VBA to read or write a bit to RS232 port?
Just like INP / OUT did in QBASIC.

Thanks for anyone could give me a helping hand

Oscar


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,441
Default Reading the pin voltage fm RS232 port into excel by using VBA

Oscar,

VB6 comes with an MSComm control that allows data collection / read /
write over serial ports.

You'll probably get better help on using it in the VB newsgroups.

HTH,
Bernie
MS Excel MVP

"oscar" wrote in message
...
Is there any way in VBA to read or write a bit to RS232 port?
Just like INP / OUT did in QBASIC.

Thanks for anyone could give me a helping hand

Oscar




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 42
Default Reading the pin voltage fm RS232 port into excel by using VBA

You cannot read the voltage however you can find out the "state" of
pins on a serial port. The pins on the serial port are discrete logic
levels either On or Off. You would either need to use a serial
communications ActiveX control like the MSComm control to test the
states of the serial port hardware handshaking lines or write some
fairly complex VBA code or use a tool like the "PortStat" program
available from TAL Technologies in the Free Software section of their
web site at:

http://www.taltech.com/freesoftware/fs_sw.htm

Look for the PortStat program near the bottom of the above web page.
Portstat opens a COM port and when the state of a hardware handshaking
line changes, it can either display that state in cells in your
spreadsheet of it can force Excel to run a VBA subroutine.

More information on RS232 and TCP/IP communications can be found at
www.taltech.com


On Thu, 8 Jan 2004 22:02:55 +0800, "oscar" wrote:

Is there any way in VBA to read or write a bit to RS232 port?
Just like INP / OUT did in QBASIC.

Thanks for anyone could give me a helping hand

Oscar


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Wedge programs - linking rs232 to excel 2003 NDBC Excel Discussion (Misc queries) 1 August 20th 09 10:57 AM
where will i find the voltage symbol (ac or dc)? polargirl Excel Discussion (Misc queries) 3 August 7th 06 12:11 PM
rs232 with excel x Excel Discussion (Misc queries) 2 January 17th 05 09:25 PM
Com Port and VBA from Excel [email protected] Excel Programming 2 November 5th 03 10:37 PM
RS232 to Excel John Gittins Excel Programming 2 July 17th 03 11:14 PM


All times are GMT +1. The time now is 05:41 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"