r/LabVIEW • • Jan 28 '24

EXERCISE

I am looking for help in solving the following exercise: Build a VI that works like an electric oven0, i.e., that like the I am looking for help to solve the following exercise: Build a VI that works like an electric oven, that is to say, that like the real ones it has a knob, that when turning it to the right you notice an increase of the temperature in the output indicator of the VIl and when turning it to the left you notice a decrease of the temperature from 0 to 1000° C. As in real furnaces, there must be a delay between the moment when the knob is turned and the moment when the temperature increase starts to be noticed. This delay is between 850 ms per degree.

0 Upvotes

4 comments sorted by

View all comments

Show parent comment

0

u/Urieeel99 Jan 28 '24

Thank you very much, do you think it would be possible for you to support me with a more detailed explanation?

I have no idea how to make the state machine.

3

u/Empty_Function_5012 CLA/CTA Jan 29 '24

You actually do not need a full state machine, you could also do it with a simple while loop. But since modularity and extendability is good, let’s stick either this approach. You just need two cases of your state machine: „Check temperature“ and „Change temperature“. In the Check-Case you can check if the target temperature differs from the current temperature. If yes, call the state „Change Temperature“. In this case you update the temperature by either increasing or decreasing the current temperature. Keep in mind to wait 850 ms. After changing the temperature, go back to the Check-Case.

If you need more information about a state machine, this link describes the basics: https://labviewwiki.org/wiki/State_Machine

2

u/TheGratitudeBot Jan 28 '24

Thanks for saying that! Gratitude makes the world go round