×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Fileoutput in programs?
2

Fileoutput in programs?

Fileoutput in programs?

(OP)
Hi all,

I have a very big program/procedure in 'MathCad 2001 Pro' that takes more than one hour for calculation. Sometimes it never comes to an end.

How can I put an interim result to a file while the program is running? ('PRNSCHREIBEN' doesnt work in programs)

If that would be possible, I would be able to look in this file with an editor and know how far the calculation already is and why it doesn't converge.

Many thanks,
Christian (TU Chemnitz, Germany).
Replies continue below

Recommended for you

RE: Fileoutput in programs?

2
There is an undocumented 'feature' in MathCad which allows you to write data out to a file from a program. Looks something like

writeprn(myvariable, "myfilepath")

Where myvariable is the variable or matrix to be written out, "myfilepath" is a string containing the complete path to your file.

Now I have looked at it I am not sure whether myvariable and "Myfilepath" should be the other way round - experiment.

RE: Fileoutput in programs?

(OP)
Many thanks for this helpful hint. I just wrote a litle C-Program for overseeing the status of a MathCad procedure. It's fantastic!

Here is a screenshot:


Bye,
Christian.

RE: Fileoutput in programs?

Good one, TheWordforToffee!  I've always wanted a way of getting intermediate results for debugging purposes, and this does nicely.

The actual syntax is WRITEPRN(filename,A) or APPENDPRN(filename,A).

Bung
Life is non-linear...

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members! Already a Member? Login



News


Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close