VB.Net RS232

creeves

Member
Joined
Jan 15, 2007
Messages
5
Programming Experience
1-3
Hi,
I would like some advice on a windows application I'm working on.I have implemented a tool with VB.Net to listen to the serial port and want to make to report whenever something new is sent.Up to now I have used a while(true) to make it loop.But my CPU is working hard...~30%!Is it possible to implement it using some kind of event listener so that wheverer the string variable holding the input from the RS232 changes, it gives me the value?Like whenever a button is clicked but without someone pressing it....In other words, is it possible to listen to variable changes, that are not controlled by the user?

Thanks a lot,
chris
 
Back
Top