Hiya all recently i have been making a program to read information from my cars ecu in vb 2008 it works via a serial port.....
Now my question is how come other programs can read the same information and process it and display it on the screen with out any cpu load ??
Because the serial data is incoming very fast its running 9600 bps proberly not that fast but for my program to keep up to date with it i have to use a loop basicly constanly reading the serial port which destroys the cpus speed and loads it up i tryed using timers on vb but they only go down to 1 ms !
So basicly how do other programs read that information quick enough with out drawing lots load on the cpu ???? do i need to use a diffrent langauge maybe because vb is not good enough ??
Cheers tom
Comments
Multithreading is rather advanced, you need to know the fundamentals of Windows API programming before attempting it.
Moving away from VB is a good idea, though.
C is good for anything that needs to be as fast as possible. I have enough faith left in VB to think that it can handle a simple 9600bps serial connection, but who knows.. If you can't get it running properly, then you could try to use WinAPI directly and in C/C++, if necessary.
[link=http://www.dotnetmonster.com/Uwe/Forum.aspx/dotnet-vb/47290/ir-on-serial-port-vb-net-2005]http://www.dotnetmonster.com/Uwe/Forum.aspx/dotnet-vb/47290/ir-on-serial-port-vb-net-2005[/link]
[link=http://social.msdn.microsoft.com/forums/en-US/vcgeneral/thread/4fc63fd0-bf6a-4882-b602-59557a05621c/]http://social.msdn.microsoft.com/forums/en-US/vcgeneral/thread/4fc63fd0-bf6a-4882-b602-59557a05621c/[/link]