CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2008
    Posts
    59

    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....)

  2. #2
    VictorN's Avatar
    VictorN is offline Super Moderator Power Poster
    Join Date
    Jan 2003
    Location
    Hanover Germany
    Posts
    20,395

    Re: Serial Port Write-Read Threaded function

    Quote Originally Posted by arunkr6 View Post
    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
  •  





Click Here to Expand Forum to Full Width

Featured