Managing Continuous Operation of Flame Machine with Sleep Function

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 2K views
rama1001
Messages
130
Reaction score
1
Hi,
I am correcting a C code which was written for a flame machine. My desire is to give a burst cool time when the machine working continuously. In deep, user could have the facility to enter the flame time and cool time before a continuous operation. So, i exactly want to off the current when user time met the flame time and then cool period starts here and so on continuously.
I thought of using Sleep function with an argument of user entered cool time. Is this handle other interrupts in this period? Or any other suggestions would be appreciated.
 
Engineering news on Phys.org
Yes, the sleep function is appropriate. But you don't give enough information for us to say more.

Interrupt? Are you writing an interrupt handler?What operating system?

Do you have a library to handle turning current on/off?

Does this process run forever?

Lots of questions.