How can I reset my flowchart to the beginning if I am not in the main but two macros away. ie I called macro A from main and called macro B from macro A. Is it possible to go directly to main from B.
Basically it's an option to be able to reset from any macro anywhere in the flowchart. Cheers for now. Manie
Reset, abort or exit from anywhere in a flow hart
Moderator: Benj
-
- Flowcode V4 User
- Posts: 26
- Joined: Mon Nov 28, 2011 3:19 pm
- Location: Cape Town South Afica
- Has thanked: 10 times
- Been thanked: 2 times
- Contact:
-
- Matrix Staff
- Posts: 9520
- Joined: Sat May 05, 2007 2:27 pm
- Location: Northamptonshire, UK
- Has thanked: 2585 times
- Been thanked: 3815 times
- Contact:
Re: Reset, abort or exit from anywhere in a flow hart
Hi Manie,
Are you referring to just flowchart, or both flowchart and hardware, or just hardware?
Are you referring to just flowchart, or both flowchart and hardware, or just hardware?
Martin
-
- Flowcode V4 User
- Posts: 26
- Joined: Mon Nov 28, 2011 3:19 pm
- Location: Cape Town South Afica
- Has thanked: 10 times
- Been thanked: 2 times
- Contact:
Re: Reset, abort or exit from anywhere in a flow hart
Thanks for reply. It is still in development and have not hooked up any hardware just in flowchart at the moment. Thanks
-
- Flowcode V4 User
- Posts: 26
- Joined: Mon Nov 28, 2011 3:19 pm
- Location: Cape Town South Afica
- Has thanked: 10 times
- Been thanked: 2 times
- Contact:
Re: Reset, abort or exit from anywhere in a flow hart
OK got the answer.....eventually, I simply used variable called "reset", checked it's value in Main : IF decision : connection point : to beginning and we start all over again.......so simple but a "light bulb" moment.
Thanks anyway
Cheers
Thanks anyway
Cheers
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: Reset, abort or exit from anywhere in a flow hart
Hello,
There are ways to reset the hardware, e.g.
Outputting a 0 to a pin connected to the MCLR - Might be problems with MCLR VPP voltage unless you protect the I/O pin.
Doing a software reset - setting the watchdog timer to run and waiting for it to time out.
But neither will work in simulation and I would say it's better to have a software approach really so it sounds like your on the right track.
There are ways to reset the hardware, e.g.
Outputting a 0 to a pin connected to the MCLR - Might be problems with MCLR VPP voltage unless you protect the I/O pin.
Doing a software reset - setting the watchdog timer to run and waiting for it to time out.
But neither will work in simulation and I would say it's better to have a software approach really so it sounds like your on the right track.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
- jollybv
- Flowcode v5 User
- Posts: 374
- Joined: Thu Feb 12, 2009 5:20 am
- Location: Cape Town
- Has thanked: 81 times
- Been thanked: 25 times
- Contact:
Re: Reset, abort or exit from anywhere in a flow hart
Hi Guys
I'm using the PIC18F46K80 and would like to do a hardware reset after setting up the chip is this possible I looked in the Data sheet but that does not make any sense to me
I'm using the PIC18F46K80 and would like to do a hardware reset after setting up the chip is this possible I looked in the Data sheet but that does not make any sense to me
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: Reset, abort or exit from anywhere in a flow hart
Hello,
You can use this in a C code icon with the following code to do a software reset.
You can use this in a C code icon with the following code to do a software reset.
Code: Select all
reset();
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel