Hi
Using Martin's suggestion, I moved the sensor to B2.
With regards to the attached.
In servicaTempMax I added a decicion. If the temp is actually above 100 then it proceeds with the macro, if not it exits. You could have this decision in your main loop. I see no need to perform the macro unless it is required, but of course that is up to you.
I dropped the interrupt frequency to around 40Hz to test with (simulate). Less likely to bother my laptop during simulation.
PCs are far faster than microcontrollers and they have a lot of other stuff going on at the same time (e,g reading keyboards/ displaying your screen etc) so they are not perfect for simulating. That said they do provide invaluable help as long as you appreciate that not everything can be simulated perfectly.
One of the features I like about Flowcode is that I can Step-Into the chart and see what is going on at each step.
I went to Debug > Step-Into and when clicked starts the simulation and holds it at that step. The program debugger appears and I selected variables of interest and a speed of Fast No Updates.
I single stepped through the chart and it showed me my variables. All good. As I continued to step through I would see digits appear in turn on the display. First corresponding to "tens", then "units" then the decimal point value.
If I changed the sensor value, the next iteration of the loop as I stepped through gave the updated value. Shortly after (as I continued to step) the display would update. As I stepped through the display, digits although only being displayed one at a time, were correct.
I then clicked "Run". This then had the program running by itself and as I had chosen Fast No Updates the variables in the program debugger were not updated. The display however was displaying all three digits correctly and remained solid and stable.
If I mess too much with settings, either slowing down the simulation speed or increasing the interrupt frequency then things become problematic with the messed up display as before. I believe this to be solely due to simulation and the PC / program trying to keep in sync with each other. I do not think it will be an issue in hardware, although I cannot test. My PC will be different to yours in terms of speed and what else is going on, so my settings may be different to yours when simulating.
Of course how we read or rather see the three digits as a number (e.g. 27.4) is through persistance of vision. We display each digit/number in turn but do it so fast we fool our brains into seeing all the digits. You will need to use an interrupt frequency high enough to avoid flicker when implementing in hardware.
As for saving your chart. Every time you run a simulation you are asked to save before exiting, even if you have made no changes. I don't know why but it has to my mind always been like that.
Regards