Page 1 of 1

thermostat..why not work?

Posted: Sun Apr 06, 2014 10:02 am
by antoniopoli
hi i'm new
I'm trying to do a thermostat. pressing the select button, the display screen should bring up the macro code where imposed and memorize a temperature value.
but this does not work.I attach the code, someone can tell me where am I wrong? and can correct it?

thanks

Re: thermostat..why not work?

Posted: Sun Apr 06, 2014 11:37 am
by medelec35
Hi antoniopoli,
your flowchart is not working because you're reading switch only once at the start of main outside of the continuous main loop.

For your flowchart to work you must read the switch within your main loop (Loop While 1).
So you will have to move SwitchReadState component macro.

If you keep pressing F8 to single step you will see that switch read component is never accessed.

Since your using a professional version of Flowocode,
can you please register for V5 section by clicking on>This

Martin

Re: thermostat..why not work?

Posted: Sun Apr 06, 2014 2:56 pm
by antoniopoli
thanks!

Re: thermostat..why not work?

Posted: Mon Apr 07, 2014 12:52 pm
by antoniopoli
I modified the program and now I have another problem.
Flowcode tells me that the simulation is ok, I compile the exe and I plug it in "real pic simulator" but this does not work.
who is right? Flowcode? or real pic simulator.
I enclose the last flowchart that I did.


P.S. copy of Flowcode use that is not mine and I can not register it. I'm considering to buy Flowcode 6 professional but first I want to be sure that it works well

Re: thermostat..why not work?

Posted: Thu Aug 27, 2015 4:33 pm
by joetp
Flowcode tells me that the simulation is ok, I compile the exe and I plug it in "real pic simulator" but this does not work.
who is right? Flowcode? or real pic simulator.
Hi antoniopoli,

One year later I have been reading your posts about your thermostat.
This is my answer to your problem with Real Pic Simulator not simulating your project as the Flowcode 6 does.
Ok, I have built your project in Real Pic Simulator and it really works as fine as in Flowcode 6 Pro.
I understand that after long time elapsed you may not be concerned on this subject any longer, but useful info for anyone following this thread.

Regards,

Josep