Results 1 to 6 of 6

Thread: Reading Data from COM Port (Rs232)

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Oct 2008
    Posts
    26

    Reading Data from COM Port (Rs232)

    Hello

    I am using an electronic unit which communicate with computer using COM Ports.
    Total Data in COM Ports are :1. Quantity 2. Rate

    How can i get data into VB6 using MSComm, i want both Rate & Quantity seperately?

    Thanks
    Ladak

  2. #2
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Reading Data from COM Port (Rs232)

    Thread moved from the 'CodeBank VB6' forum (which is for you to post working code examples, not questions) to the 'VB6' forum

  3. #3
    PowerPoster CDRIVE's Avatar
    Join Date
    Jul 2007
    Posts
    2,620

    Re: Reading Data from COM Port (Rs232)

    We need to know some pertinent information like..
    What is the device?
    Does the device require a received command prior to it responding?
    What does this this device transmit and receive, ASCII or Binary data?
    <--- Did someone help you? Please rate their post. The little green squares make us feel really smart!
    If topic has been resolved, please pull down the Thread Tools & mark it Resolved.


    Is VB consuming your life, and is that a bad thing??

  4. #4
    Addicted Member BSA01's Avatar
    Join Date
    Apr 2009
    Location
    Bosnia and Herzegovina
    Posts
    146

    Re: Reading Data from COM Port (Rs232)

    Can I aks here. I would like to find a way to get data from USB port.

    I imagine something like this :

    If I have some electric device (like device for messuring voltage) which is giving binary numbers. Can I cut some USB cable, attach it to USB port and make some code for counting that. Is that possible ?

  5. #5
    Fanatic Member
    Join Date
    Sep 2009
    Location
    Lakewood, Colorado
    Posts
    621

    Re: Reading Data from COM Port (Rs232)

    You cannot use USB, unless you have a USB device designed to do what you want. There is no way to modify a USB cable to do anything useful. I suggest that you take a look at my PC Data Acquisition pages to see what you need. I have examples for serial and USB devices (and others). USB and serial are not the same thing, though some USB devices use virtual serial ports, thus act like conventional serial port devices. My homepage is www.hardandsoftware.net.

    Dick
    Richard Grier, Consultant, Hard & Software
    Microsoft MVP (Visual Basic)

  6. #6
    PowerPoster CDRIVE's Avatar
    Join Date
    Jul 2007
    Posts
    2,620

    Re: Reading Data from COM Port (Rs232)

    Quote Originally Posted by BSA01 View Post
    Can I aks here. I would like to find a way to get data from USB port....
    No, you shouldn't ask here. This topic belongs to someone other than you.
    <--- Did someone help you? Please rate their post. The little green squares make us feel really smart!
    If topic has been resolved, please pull down the Thread Tools & mark it Resolved.


    Is VB consuming your life, and is that a bad thing??

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