Quantcast
Channel: PTC Community : Discussion List - PTC Mathcad
Viewing all 2936 articles
Browse latest View live

How to make min function and small program work with arrays?

$
0
0

In the attached MathCAD 14 worksheet I am attempting to do two things.

First, I'd like to get the min function to compare the values in two seperates arrays across each row. In the attached worksheet it is comparing all the values in all the rows of the arrays to find the minimum.

Second, I'm like MathCAD again to compare values across arrays and set the values to a particular coefficient in the simple if statement program. It is giving an error that the value must be a scalar.

What syntax do I need in both cases so that MathCAD will compare the values across the arrays?


Unknown Error: mpl%_exception - What does this mean?

$
0
0

Hello,

 

I have converted a MathCAD file from an older version of MathCAD (where it worked beautifully) to Prime 2.0. In the process of converting the primary program that calls multiple sub-programs stopped working. I thought I had successfully fixed all of the errors, but now the whole program is outlined in red and MathCAD indicates that there is an error "Unknown Error: mpl%_exception".  Does anyone know what this means and how I can fix it? It seems as if other errors are the result of large programs running in MathCAD. Is that the case here?

 

Input appreciated,

Amanda

Error in PDEsolve function with system of PDE's

$
0
0

Hello Mathcad community,

 

I'm a student trying to get a Mathcad sheet to work. I want to solve a system of 2 partial differential equations (PDE) with the Pdesolve function. I got several different sheets working with just 1 PDE, but now I have a system of 2 PDE's I can't get it working.

My calculation is a transient cooldown of a 2 layer composite ''plate'' with a steady state temperature distribution to begin with. I got 2 PDE's to discribe the transient cooldown of the 2 different layers and 4 boundary conditions (2 on the ends of the ''plate'' and 2 in the middle at the contact point of both layers). I'm stuck at the error: "The boundary conditions are not consistent with the endpoints specified for the spatial range". Which is strange because 2 PDE's need 4 boundary conditions. I attached a MC11 and a MC15 sheet. I hope someone can help me to solve this.

 

Regards,

 

Jaap

Using the same WRITEEXCEL for the multiple variables

$
0
0

Hello

I wonder if it is possible to impose multiple variables to the same destination file using WriteExcel or similar function in order to export to excel.

Thank you for your attention.

Error: These values cannot be compared

$
0
0

Hello everyone,

 

I have had to convert a MathCAD spreadsheet from one of the old formats to Prime 2.0 and I am having trouble with program functionality. The spreadsheet is essentially a group of sub-programs or routines that are called on in a larger program further down in the sheet (pg. 37). At this point the program will not run due to a "These values cannot be compared" error. I have converted similar worksheets with essentially the same sub-programs and sub routines and not had this problem. The error appears to be the Evolve sub-program (Pg. 33) but it does not provide the source ofthe error.

 

Any explanation as to what is wrong and how to fix it would be appreciated.

SolidWorks - MathCAD Integration

$
0
0

Hey ,

 

I need to wheter MathCAD 15.0 can support SolidWorks 2009 ? Any idea ? Thanks in advance

I'm having difficulty with this solve block problem

$
0
0

Any suggestions on how to approach this problem would be appreciated.  Thanks.

Phase Shift Problem

$
0
0

Hi,

 

I'm currently working on a project which involved some oscillation testing of a scale model.  The issue I'm having is that there is a phase lag in the output data, i.e. the maximum force does not correspond with a zero crossing of amplitude as it should. Rather, it is either in phase with the force, or anti-phase with the force. I was hoping there was some way to sort this in MathCAD, it isn't a straightforward phase shift as the phase lag differs with each test run. Is there some coding that would allow to me to check for the various times at which amplitude = 0, and then adjust the data in the force column so that Fmax correlates with A = 0? The frequency and thus period are the same, so by sorting the phase shift corresponding to 1 point, the rest of the data should fall in place accordingly. Hopefully, this could be applied regardless of which data file is used so that for all test runs, Fmax correlates with a zero crossing of amplitude, and the results can be readily obtained.

 

I've created a very basic mathcad sheet to illustrate the problem. The input values for 'Series' and 'File' can be obtained by checking the arrays on page 3 i.e. the 'ID' column in each array refers to the file input, and R1/R4 refers to series 1/4 respectively.

 

The non-dimensionalised Force vs Amplitude shows a tilt in the graph which highlights the problem - this graph should be an ellipsis around the y axis passing through the origin.

 

Any help on this is greatly appreciated. I am using MathCAD 15

 

Thanks


Export data from mathcad to Creo notebook(earlier layout)

$
0
0

Hello,

 

I have a done calculation in mathcad to check my design for safety.

 

Now, i want those inputs used for calculation in mathcad to become parameters in creo. These parameters i want to use in notebook which will drive my assembly.

 

Also , if i change my design in mathcad, corresponding change should occur in notebook parameter and so in assembly.

 

If direct link is not possible, excel as a link will also do.

 

thank you for you time.

A question for the Mathcad historians

$
0
0

What Mathcad version and year did Odesolve first appear? This is not a test.

Forced Oscillation Testing

$
0
0

Hi,

 

Not sure if this is the best place to put this thread, or in the mechanical/civil engineering section. It's in the civil secn as well but noticed that there wasn't much activity there, If you could let me know I can change it if it's better suited elsewhere, thanks.

 

Anyway, I'm having a bit of a problem regarding some experiments I carried out. It involved forced oscillation testing of a midwater arch, which is used in oil fields. The arch was oscillated at various amplitudes and frequencies in order to determine the 2 coefficients of the Morison eqn:

 

                              F = 1/2 p Cd Xd [Xd]  +   Cm p V Xdd                         (p = rho ,  Xd = velocity,    Xdd = accn,    Cd and Cm the constants which I need)

 

I have created a worksheet that will analyse the data and give results for Cd and Cm. The problem is that the results I am getting are not what I expect. Cd is very small, and Cm is very large. I am not sure if this is something I have overlooked in Mathcad, or is a theoretical error. I was told that you guys might be able to help, which is why I'm posting.

 

If you can offer any suggestions, or see any glaring errors, it would be very much appreciated.

 

Data 1-3 refers to the axial direction at 0.2, 0.3 and 0.5Hz. Data 4-6 the transverse at the same freqs. Data 10-12 is the files for the experimental set up which has to be subtracted from the overall force to give the force on the model alone.

 

There is a data 7-9 but I haven't uploaded as file size too large. The only input in the sheet required is to choose a file at the top in the drop down box, and then choose a corresponding file in the Processing for Sting region.

NaN bug: Has anyone seen this before?

$
0
0

I'm trying to debug a function that is returning NaN's somewhat sporatically and for no obvious (to me) reason. I didn't write this function, but have gone through it pretty carefully and can't find anything that looks wrong -- though I'm a fairly new mathcad user. Basically, the function pulls in some part numbers, queries a database for some values that go with those part numbers (ESR, Capacitance and ESL for those interested), does a few simple matrix operations and returns the result. It works fine when the number of parts is low (below 11 seems to work every time) but when my part number matrix is too long I get random NaN's as a result of the matrix operations. Hopefully the attached screenshots will explain better in detail -- they show the function and various outputs with 6, 14 and 44 parts. Does anyone have any ideas about this?

 

Message was edited by: Jay Kobor Note: The parts are the same and in the same order throughout the screenshots. So the first 6 caps in the 14caps image are the same caps as in the 6caps image, and so on. I just mention this to highlight the eccentricity of the problem, since the parts are consistent but the NaN's are not.

DLL in C mit Visual Studio

$
0
0

Hallo Leute,

 

Ich versuche seit paar monaten eine DLL für mathcad in C zu realisieren

die DLL soll ein ton aufnehme und den ton wieder Abspielen.

Ich habe mit dem hilfe von Portaudio Bibiotheke und Visual Studio 2010 (Entwicklungsumgebung)

bis jetzt versucht aber komme gerade nicht weiter.

Die DLL wird erstellt aber einmal bei Mathcad eingebunden reagiert die nicht.

Ich weiss nicht was da fehlt und was ich ändern  muss.

Ich bieten euch zum hilfe ich werde mein C code anhängen.

 

 

mfg Robert

DLL in C with Visual studio

$
0
0

hallo leute!

ich möchte gern eine dll (um auf die Gärete am port eines Computer zuzugreifen )

die Funktionen sollen in C geschrieben werden. Als Beispiel sollen Audiodaten über den Mikrophone ausgelesen und über den Lautsprecher des PCs abgespielt werden.

Ich habe die "Portaudio" benutzt, das Programm funktioniert in Visual Studio, aber wird von Mathcad als .dll nicht erkannt. Mir ist nicht klar was ich da falsch mache, kann mir bitte Jemand ein Tipp geben?

Der C-Code habe ich angehängt.

 

MfG

Robert

 

hello people!

I would like
to writte a user defined function(.dll function)in C, to access at theportof a computer. For example,audio datais to be readedover themicrophone(sound recording) andplayed backover thespeakersof the PC.

I have used the"audio port", it's working as program worksin VisualStudio but isn't recognizedas .dllMathcad. Dll. I'm not surewhat I'm doing wrong, pleasecansomebodygive meahint?

I've attached the C code.

Moderation

$
0
0

Given the recent spate of irrelevant posts exhorting us to download illegal films I understand why ptc has introduced a system of moderating posts before displaying them.  However, this can lead to long, frustrating delays for genuine participants in the community.  How about introducing a system whereby participants build-up credibility points, such that an acceptable post is awarded a credit, and after a certain number of credits that participant's posts are displayed without moderation?

 

Alan


Cannot evaluate this accurately at one or more of the specified values

$
0
0

Goodness this is the worksheet that keeps on giving....errors, that is.

 

I've worked through most of the bugs after converting this worksheet to the new Mathcad format and thought FINALLY, I've got it up and running as well as it worked in 15. Unfortunately, no.

 

The problem is that it will only work when ncutoff:=0. As soon as ncutoff:= 1 or 2 the program crashes and I get a "Cannot evaluate this accurately at one or more of the specified values, because the values are outside of the range of accuracy of the function" error in the Morphological Time Loop routine (pg.37).  Now, the functions that depend on ncutoff directly (as far as I can tell) include:

 

1. (H.o a.o L H.ero) on pg. 7 of the doc

2. Morphological Time Loop

     -Q_p (pg. 44)

     -Q.t (pg. 45)

 

The purpose of the Q.t loop is to identify which Q value to use for the further calculations, based on which fissure model is used, ncutoff, and a few other variables. I'm thinking the problem is that when ncutoff:=1 or 2 it uses a different Q value (namely Q.a). As I am not all that familiar with Mathcad I am having a hard time identifying a solution to the problem. It baffles me that this program runs in the old version but not Prime. Any help would be appreciated!

 

Note: fissure_model must be set to 5 in order for the program to use the ncutoff variable.

Prime 2.0 Odesolve issue

$
0
0

Hello folks,

 

I tried the Prime 2 sheet labelled "free-fall.xmcd" in order to familiarize myself with the ODE.

I ran into a problem when changing the guess value's unit from imperial (ft) to metric (m). Prime doesn't compute telling me that the units are not compatible (see attached worksheet).

 

Until now I supposed this to be the raison d'etre of MathCad that it converts units automatically. Am I missing here something?

 

Raiko

 

P.S.

Changing all guess value's units to metric didn't help either.

Mathcad 15 X-Y blank

$
0
0

I cannot trace X-Y function, it is all blanked. I use windows 7 64 bit. Why?

PTC will loose another client

$
0
0

We paid our 2 licenses of Mathcad starting with 2008. Our current maintenance will expire in summer 2014.

We are using v15 because Prime is unusable, mostly because of GUI and not because of the missing features.

 

I saw today the PTC Mathcad Product Strategy at "Roadmap from PTC Mathcad Engage 2013" virtual event.

The presentation confirms that Prime 3 and Prime 4 GUI will be exactly the same as in Prime 2. This means at least another 2 years to pay for nothing.

 

Taking this into account we are forced to stop paying PTC for an unusable product.

PTC, will all due respect, if you want my money, do something. The GUI can be improved in a couple of weeks by a single person.

 

Best regards,

Virgil

 

Mathcad 15 compatibility with Windows 8

$
0
0

Does anyone know if Mathcad 15 will install on the new Windows 8 operating system?

Viewing all 2936 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>