VB

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 4.
To post in this forum you must have a registered copy of Flowcode 4 or higher. To sign up for this forum topic please use the "Online Resources" link in the Flowcode Help Menu.

Moderator: Benj

Post Reply
Roy Johnston
Flowcode V4 User
Posts: 220
Joined: Mon Aug 24, 2009 8:38 am
Has thanked: 2 times
Been thanked: 34 times

VB

Post 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

Gypo
Posts: 52
Joined: Thu Apr 29, 2010 11:12 am
Has thanked: 5 times
Been thanked: 3 times

Re: VB

Post 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
The only real simulation isn't ...
Gypo

Roy Johnston
Flowcode V4 User
Posts: 220
Joined: Mon Aug 24, 2009 8:38 am
Has thanked: 2 times
Been thanked: 34 times

Re: VB

Post 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

User avatar
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

Post 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.

Post Reply