|
-
Apr 26th, 2010, 07:55 AM
#1
Thread Starter
Junior Member
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
-
Apr 26th, 2010, 08:02 AM
#2
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
-
Apr 26th, 2010, 08:55 AM
#3
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?? 
-
Apr 26th, 2010, 10:10 AM
#4
Addicted Member
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 ?
-
Apr 26th, 2010, 11:46 AM
#5
Fanatic Member
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)
-
Apr 26th, 2010, 04:40 PM
#6
Re: Reading Data from COM Port (Rs232)
 Originally Posted by BSA01
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|