Does any one have a working example of a Visual basic Programn that will communictae with a usb serial,
thks in advance
VB
Moderator: Benj
Re: VB
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...
Regrads
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...
Regrads
The only real simulation isn't ...
Gypo
Gypo
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: VB
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel