I have a small project, which need use both RS232 port and
excel for data plot. I considering use excel VB macro for
the entire project.
Although I used serial port extensively in MFC, I am not
sure how to open serial port from VB. Can anyone give me
a little light?
Really appreciated,
Ben Zhu 4 15813
Ben,
You can use MSCOMM.OCX if you have VB6 loaded on your machine.
Alternative there are 2 samples on www.gotdotnet.com that supports Serial
communication. http://www.gotdotnet.com/Community/U...x?query=serial
I've look at the first two listed (from corcav & LoMan).
Hope this helps
Jay
"Ben Zhu" <bz**@revivant.com> wrote in message
news:07****************************@phx.gbl... I have a small project, which need use both RS232 port and excel for data plot. I considering use excel VB macro for the entire project.
Although I used serial port extensively in MFC, I am not sure how to open serial port from VB. Can anyone give me a little light?
Really appreciated,
Ben Zhu
Hello,
"Ben Zhu" <bz**@revivant.com> schrieb: I have a small project, which need use both RS232 port and excel for data plot. I considering use excel VB macro for the entire project.
Thomas Scheidegger's Serial Port FAQ: http://tinyurl.com/aawh
--
Herfried K. Wagner
MVP · VB Classic, VB.NET http://www.mvps.org/dotnet
Hi,
Actually, this sounds like an Excel VBA question, not VB .NET? In either
case, you can download NETComm.ocx from my homepage. It works fine in
Excel, even though I designed it as an easy way to do serial IO in .NET.
Dick
--
Richard Grier (Microsoft Visual Basic MVP)
See www.hardandsoftware.net for contact information.
Author of Visual Basic Programmer's Guide to Serial Communications, 3rd
Edition ISBN 1-890422-27-4 (391 pages) published February 2002.
VBA in Excel does not support serial communications without either
writing some very complex code that calls Windows API functions
directly or using a serial communications tool provided by a third
party vendor.
If you have VB6, you can use the MSComm32.OCX ActiveX control however
it is not very easy to use in Excel.
You may want to look at a product called WinWedge at www.taltech.com
WinWedge is designed to make it extremely easy to send and receive
serial data directly from within other programs like Excel, Access or
just about any other Windows program. WinWedge can save you countless
hours of serial I/O coding and it works great with Excel.
On Tue, 9 Sep 2003 16:59:23 -0700, "Ben Zhu" <bz**@revivant.com>
wrote: I have a small project, which need use both RS232 port and excel for data plot. I considering use excel VB macro for the entire project.
Although I used serial port extensively in MFC, I am not sure how to open serial port from VB. Can anyone give me a little light?
Really appreciated,
Ben Zhu This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: mimisam |
last post by:
hi,
I am using Win XP and writing an application to check POS devices
(printer and cash drawer).In the application I need to choose the port
which the device is connected to. If the port chosen is wrong or the
device is off power, a communication error message should be
displayed.
I am using FileOutputStream and FileInputStream to send and...
|
by: Andreas Horneff |
last post by:
Hi @ all,
I've got a problem with serial communication in Borland C++ Builder. I've
already found a
lot of stuff about serial communication in the internet, but it dosen't
work.
What I want to do:
I want to connect only one button to my com port. If the button is pressed,
|
by: sarah |
last post by:
hI,
I have a project. I need to realise serial communication between PC
and Altera FPGA in c or c++. The function of FPGA is working well. it
can send data to uart.
Does anybody know how to realise it in c or c++?
Thanks
|
by: Michael Chong |
last post by:
I wrote a program that communicate with SerialComm. In every 300
milliseconds, my program continuously send & receive data via the serial
port once the program starts.
My program is once in a while, the serial port seems corrupted because when
my data is sent, it doesn't go through the serial port, so as same to
receive process. In order to...
|
by: Leandro Berti via DotNetMonster.com |
last post by:
Hi All,
I wrote a code to do serial communication with an equipament.
When i use the code outside of threaded class it seens work properly,
but when i put inside a class and execute a thread in the first seconds the
communication is ok, later i receive read/write error.
I?ve been in MSDN site and there i discover that the read/write error...
| |
by: joe bloggs |
last post by:
I am writing a mobile application to interface with a legacy system and I am
planning to use web services to communicate with this system. The legacy
system receives data through a serial port. What I would like to do is make
the serial port accessible via a web service.
The web service and the legacy application would be running on the...
|
by: max_mont |
last post by:
Hi all,
I'm a newbie in .NET technology.
I've already developed Serial communication applications in C++
(WIN32).
And I wanted to migrate to .NET technology.
There is a serial component in framework to read and write on serial
port.
I would like to make asynchronous reception. I saw that we can pass a
delegate to the serial class which is...
|
by: Adrian Chen |
last post by:
please help me! I come across a problem.
Now I develop a finger print management system which is based on B/S.When
users click a button in the web pages, a device connected to the COM1 serial
port of the client machine starts to work.
Now I wrote the code which is in charge of serial communication in the
..aspx.cx pages, but then I found that...
|
by: Dhananjay |
last post by:
Hi,
I am working on an VB.Net application which I want to communicate to
external device using comm port (Serial Port) .
So for that first I am trying to simulate the communication on serial
port between two computers using HYper terminal on both the machines.
Both these computers are connected on serial port using DB9(f) null
modem...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it. ...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
| |