Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X
If there is a way to display the values of variables inside a block in mathcad 15?
Solved! Go to Solution.
No, there is no way to show these values somewhere inside the program block, but you sure could return them along with the final result
No, there is no way to show these values somewhere inside the program block, but you sure could return them along with the final result
Is it possible to get the same thing using the program trace window?
@DD_13910355 wrote:
Is it possible to get the same thing using the program trace window?
Sure, if you don't want the values to displayed like variables in the Mathcad sheet, using "trace" sure is a way to show values while the program is still running. Another option is to write the values in question to a file. Both methods slow down calculation time, though.
I assume that you want to show values while a program runs in loops?
You may have to post a worksheet to make clear what exactly you are after.
My goal in displaying the results is to make it easier to detect errors when constructing an algorithm inside a block.
@DD_13910355 wrote:
My goal in displaying the results is to make it easier to detect errors when constructing an algorithm inside a block.
So I guess a good way is to use the "trace" command as writing to a file may take even more time.
Depending on the program you create it may also be possible to collect the interim results in vectors and return these vectors. You won't see the results while the program is running but can examine them after the program has finished. This works well unless the calculation fails at some point and throws an error as you won't get back anything now from your program. In this case yo could help by using the "onerror" statement at neuralgic position where the program could fail.