|
-
Aug 14th, 2002, 03:09 PM
#1
Thread Starter
New Member
Serial communications
Can anyone give me some tips on how to pull data off an external device through a PC COM port into VB .NET? The external device is an Omega datalogger. VB 6 had a communications ActiveX control (mscomm32.ocx) but I can't find anything similar in .NET???
Thanks
-
Aug 15th, 2002, 01:44 AM
#2
For as far as I know, there is no functionality in VB.NET for serial communications. I guess they forgot it.
However, you can still use the old MS com ActiveX control (mscomm32.ocx).
-
Aug 15th, 2002, 07:41 AM
#3
Thread Starter
New Member
Do you happen to have some sample code you could post that involves retrieving the data from the device at the On Comm event and storing it into a string for use in VB?
-
Aug 15th, 2002, 08:30 AM
#4
I dont have any code, but without any kind of thrid pary control, it will be more difficult since there is no native easy to use control for this. It would involve using IO streams sort of like you used to have to do with the open statement before there was the MS comm control. But I really havent been able to find any more info than that
Probably something like
System.IO.STreamReader("COM1").Open
that is more than likely incorrect, but it maybe a start worth looking into.
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
|