×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Contact US

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

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


Resources

Low-Volume Rapid Injection Molding With 3D Printed Molds
Learn methods and guidelines for using stereolithography (SLA) 3D printed molds in the injection molding process to lower costs and lead time. Discover how this hybrid manufacturing process enables on-demand mold fabrication to quickly produce small batches of thermoplastic parts. Download Now
Design for Additive Manufacturing (DfAM)
Examine how the principles of DfAM upend many of the long-standing rules around manufacturability - allowing engineers and designers to place a part’s function at the center of their design considerations. Download Now
Taking Control of Engineering Documents
This ebook covers tips for creating and managing workflows, security best practices and protection of intellectual property, Cloud vs. on-premise software solutions, CAD file management, compliance, and more. Download Now

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