VB Help


Results 1 to 36 of 36

Thread: VB Help

Threaded View

  1. #12
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default Re: VB Help

    You could use the timer, but the best way would be to use a comm port event. That way you are only doing something when data arrives. Its been years (and years) since I wrote a VB program with serial port, so I am sure others can do better than my try at answering this. But here is something I found for a newer version of VB.

    http://www.me.umn.edu/courses/me2011...al-port-vb.pdf Toward the end, it mentions why things get a little complicated: "For receiving data at unexpected times, use the DataReceived event. This is a bit tricky
    because it runs in a different thread and requires a handler. (Virtual Serial Port Cookbook,
    Chapter 9 for details.)" Of course it is in chapter 9. Chapters 1 - 6 are free: http://www.smileymicros.com/index.ph...age&PAGE_id=50
    Attached Images Attached Images

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts