cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can change your system assigned username to something more personal in your community settings. X

Translate the entire conversation x

If there is a way to display the values of variables inside a block in mathcad 15?

DD_13910355
10-Marble

If there is a way to display the values of variables inside a block in mathcad 15?

If there is a way to display the values of variables inside a block in mathcad 15?

Snag_16f257e7.png

ACCEPTED SOLUTION

Accepted Solutions
Werner_E
25-Diamond I
(To:DD_13910355)

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

Werner_E_0-1754939705521.png

 

View solution in original post

5 REPLIES 5
Werner_E
25-Diamond I
(To:DD_13910355)

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

Werner_E_0-1754939705521.png

 

Is it possible to get the same thing using the program trace window?

Werner_E
25-Diamond I
(To:DD_13910355)


@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.

Werner_E
25-Diamond I
(To:DD_13910355)


@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.

Announcements

Top Tags