Page 1 of 1
Connection Points
Posted: Sat Nov 26, 2011 11:39 pm
by CRAIG CHAMBERLAIN
Hi all!
Is it possible to use connection points to jump from one macro to another?
It didn't work for me anyway. Am I missing declaring them correctly?
If not, what is the best way to accomplish this?
Thanks,
Craig
Re: Connection Points
Posted: Sun Nov 27, 2011 1:25 am
by medelec35
Hi Craig,
It is my belief that you should not be able to use jump connections (labelled A: B: etc.), only call components to jump from main to a macro.
This is because a macro is really a sub routine, as soon as the macro has finished, the program will carry on from the point just after where the call to the macro was made.
If you use another call macro component inside a macro you will have a great risk of corruption, and program could crash.
Each call to macro takes up a stack, then if delays are use more stacks are used. There is only a small number of stacks that can be used, and this can be exceed which is what causes the crash.
In a flowchart, it is good practice to try and avoid connections if you can. Well written flowcharts don't have any if it is at all possible.
Hope I have made sense.
Martin
Re: Connection Points
Posted: Wed Mar 14, 2012 11:35 pm
by medelec35
I have moved this topic to the V4 section as you are a V4 registered user.