Hello!
Kindly excuse if I am repeating the topic. I more or less finished one of my projects in which I have used many times a calculation box, for example 5 times in a loop having single action (may be addition or converting etc.) in each box, the purpose for doing so was to enable and disable that particular calculation box while I was progressing with my logic.
But now when I am done my doubt is should I leave the calculation boxes as it is or if I put all the necessary actions from that loop in one calculation box instead of keeping those separate and no doubt delete the blank one, will doing this be a gain in achieving some more "Program Space" (the information provided in Compiler Message).
Thank you.
Abhi
Calculation Icon/Box
Moderator: Benj
-
- Valued Contributor
- Posts: 1188
- Joined: Wed May 31, 2017 11:57 am
- Has thanked: 70 times
- Been thanked: 439 times
- Contact:
Re: Calculation Icon/Box
Hi Abhi,
It won't make a difference to program size whether the calculations are in a single box or spread over several.. so go with whichever format seems more readable to you.
You may be able to make a space saving by moving them into a loop (so one calculation done 5 times) - if it is the same calculation repeated?
Martin
It won't make a difference to program size whether the calculations are in a single box or spread over several.. so go with whichever format seems more readable to you.
You may be able to make a space saving by moving them into a loop (so one calculation done 5 times) - if it is the same calculation repeated?
Martin
- AbhijitR
- Posts: 298
- Joined: Fri Nov 07, 2014 12:48 pm
- Location: Pune, India
- Has thanked: 279 times
- Been thanked: 78 times
- Contact:
Re: Calculation Icon/Box
Hello! Martin
Many thanks for the clarification, I was a bit worried for the program space as there is a probability of using the same chip and same chart in near future for one modification, I thought let me check if I can make some more program space by moving the calculations in one box and deleting the remaining once.
Thank you again.
Abhi
Many thanks for the clarification, I was a bit worried for the program space as there is a probability of using the same chip and same chart in near future for one modification, I thought let me check if I can make some more program space by moving the calculations in one box and deleting the remaining once.
Thank you again.
Abhi
-
- 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: Calculation Icon/Box
What I do a have a single calculation in each box for simulation/debugging purposes.
After simulation/debugging is complete, if too many calculation boxes, I cut and paste individual calculations into one calculation box.
It does not save memory as Martin stated, but just makes flowchart looks smaller for future debugging.
After simulation/debugging is complete, if too many calculation boxes, I cut and paste individual calculations into one calculation box.
It does not save memory as Martin stated, but just makes flowchart looks smaller for future debugging.
Martin
- AbhijitR
- Posts: 298
- Joined: Fri Nov 07, 2014 12:48 pm
- Location: Pune, India
- Has thanked: 279 times
- Been thanked: 78 times
- Contact:
Re: Calculation Icon/Box
Perfect Martin
This sounds good, I am happy to follow both the Martin(s)
Thank you to both of you, really I feel very happy to receive from the forum, unfortunately I cannot reciprocate much for the moment, but I try my best to read and study as much as possible, hope to do so soon.
Abhi
This sounds good, I am happy to follow both the Martin(s)
Thank you to both of you, really I feel very happy to receive from the forum, unfortunately I cannot reciprocate much for the moment, but I try my best to read and study as much as possible, hope to do so soon.
Abhi