Managing Continuous Operation of Flame Machine with Sleep Function

Click For Summary
SUMMARY

The discussion focuses on implementing a burst cooling mechanism for a flame machine using C programming. The user aims to allow input for flame and cool times, utilizing the Sleep function to manage the cooling period. Participants confirm that the Sleep function is suitable for this purpose but raise questions regarding interrupt handling and the operating system in use. Further clarification on the system's requirements and capabilities is necessary for more precise guidance.

PREREQUISITES
  • Understanding of C programming and its syntax
  • Familiarity with the Sleep function in C
  • Knowledge of interrupt handling in operating systems
  • Experience with hardware control libraries for managing current
NEXT STEPS
  • Research how to implement the Sleep function in C for timing operations
  • Learn about interrupt handling in the specific operating system being used
  • Explore libraries for controlling hardware current in C programming
  • Investigate best practices for managing continuous operations in embedded systems
USEFUL FOR

Embedded systems developers, C programmers, and engineers working on hardware control applications will benefit from this discussion.

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.
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
2K
Replies
7
Views
3K
Replies
21
Views
5K
  • · Replies 18 ·
Replies
18
Views
2K
Replies
29
Views
6K
  • · Replies 80 ·
3
Replies
80
Views
10K
  • · Replies 5 ·
Replies
5
Views
3K
Replies
1
Views
1K
Replies
6
Views
2K
  • · Replies 10 ·
Replies
10
Views
3K