-
January 7th, 2010, 05:15 AM
#1
Serial Port Write-Read Threaded function
I am developing a tool using VC++.net 2008, which is connected(using Serial Port) with a PC Board.
When I am Writing ( a Command) to the Processor(on Board) it gives certain datas and Read by my tool.This data is taking for further process. This Write-Read function is threaded and continuously do in every seconds. Initially both process has worked. But Data Write is not processing after first second.(problem is not in code-I've excluded Read process n ithas worked)
Do I clear any buffer or Serial Settings before this Write-read Application.Any experienced plz. help 2 fix it???(source code plz....)
-
January 7th, 2010, 06:42 AM
#2
Re: Serial Port Write-Read Threaded function
Originally Posted by arunkr6
I am developing a tool using VC++.net 2008,
Are you using native VC++ or some .NET technology (like CLI and so on)? If latter - then ask it in the Managed C++ and C++/CLI forum.
If the former - show your code (don't forget using Code tags)
If your App is a MFC one - see the Serial Port I/O
essay.
Victor Nijegorodov
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|