PDA

View Full Version : Lpt


varis
07-27-2006, 07:23 AM
Hello!

I have got a problem - I have written in Visual Basic program to make light emitting diode to emit light. Diode is soldered to cable attached to LPT port. I write a command
Out 888, 255
and this is performed continuosly. But at the same time CPU usage reaches 100 % and computer hangs up so that it is unable to respond to any other command.

Solutions? Suggestion? Please!!!

Thanks

nlopez
07-27-2006, 10:26 AM
"Out" is a very slow operation that stalls a bunch of other stuff while it does it's thing. Don't do it continuously, put a delay of some sort in between.