Page 1 of 1
VB
Posted: Wed Oct 06, 2010 4:31 am
by Roy Johnston
Does any one have a working example of a Visual basic Programn that will communictae with a usb serial,
thks in advance
Re: VB
Posted: Wed Oct 06, 2010 10:27 am
by Gypo
Roy
USB serial isn't any different from your standard serial comms (from a VB6 point of view).
As the USB serial driver allows the USB port to be seen by the computer (and hence VB6) as a 'normal' serial port, as long as you have the driver loaded for the serial device you have plugged into your USB port you can use any serial comms program pointing to the right port.
*** BUT ***
As it stands the PC doesn't know about ports above 16 and so if the USB serial device ends up on Com 19 or something higher than what the PC can see you need to edit the MSCOMM32.OCX to allow it to use higher ports.
I have edited mine and have attached a copy for you. Just drop it in C:\WINDOWS\system32 to be able to get to those other ports...
- MSCOMM32.rar
- Modified ocx for ports above 16 (up to 255)
- (44.8 KiB) Downloaded 291 times
Regrads
Re: VB
Posted: Wed Oct 06, 2010 10:45 am
by Roy Johnston
Thanks,
but tell me will i get the communication speed out of like i would if i use the usb slave component
Re: VB
Posted: Wed Oct 06, 2010 12:32 pm
by Benj
Hello,
I think it mainly depends on what else your program is doing other then USB communications.
The program would have to get the data in and out of the USB buffers fast enough so that no data is missed so its a bit of a balancing act between speed of communications and program workload.