philrosenberg
Technical User
Hi everyone.
This is more an programming for windows/algorithm question rather than a code question, if any of you can help I'd be really greatful.
I'm trying to use a pc to monitor input and set output to the parrallel port. (for those of you that are interested I'm using a PICO interface to moniter a thermometer and turn a heater on and off to regulate temperature).
I have a library (that was supplied with the PICO) that includes a function get_value() that gets the input and set_value() that turns the output on and off.
How can I write a program to continually moniter the input without the program hanging. Is there any code I can use to beak a while loop when a message is sent to my program.
Cheers
This is more an programming for windows/algorithm question rather than a code question, if any of you can help I'd be really greatful.
I'm trying to use a pc to monitor input and set output to the parrallel port. (for those of you that are interested I'm using a PICO interface to moniter a thermometer and turn a heater on and off to regulate temperature).
I have a library (that was supplied with the PICO) that includes a function get_value() that gets the input and set_value() that turns the output on and off.
How can I write a program to continually moniter the input without the program hanging. Is there any code I can use to beak a while loop when a message is sent to my program.
Cheers