ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   can com port data be imported & sorted into cells? (https://www.excelbanter.com/excel-programming/339604-can-com-port-data-imported-sorted-into-cells.html)

Radioz

can com port data be imported & sorted into cells?
 
I have an external device that is tracking ID's for radio traffic. It sends
out a 4 or 5 number ID to Com port 1 (9600,N,8,1). I would like it to
automatically log, sort the data (last digit is a status bit), and time/date
stamp the entry. is this possible?

Tom Ogilvy

can com port data be imported & sorted into cells?
 
Here are some snippets copied from previous messaged related to using the
serial port:

The best way to do it is to use the MSComm control that comes with Visual
Basic. If you want to see how this works, load and single step through the
VBTerm sample that comes with it (should be in the \samples subdirectory; if
not, I think you can download it from Microsoft's Visual Basic site).

One important note, though, is that you must know the syntax of the commands
to your meter (or other device), as sent via RS-232. Once you know those
you can simply modify the VBTerm code to suit your own purposes. It's
complex at first, but stick with it!


"Poor Man's Serial Instant Messenger"
http://www.htservices.com/Tools/Visu...unications.htm
Visual Basic Serial Communications Example Tutorials Source Code Programs


http://www.cpcug.org/user/clemenzi/t...s/SerialIO.htm
Serial I/O (RS232)

http://www.yes-tele.com/mscomm.html - MSComm

--
Regards,
Tom Ogilvy


"Radioz" wrote in message
...
I have an external device that is tracking ID's for radio traffic. It

sends
out a 4 or 5 number ID to Com port 1 (9600,N,8,1). I would like it to
automatically log, sort the data (last digit is a status bit), and

time/date
stamp the entry. is this possible?





All times are GMT +1. The time now is 08:42 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com