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

The PTC Community email address has changed to community-mailer@ptc.com. Learn more.

Python scripting and block diagrams

0 Kudos

Python scripting and block diagrams

I would like to see:

1) Proper scripting support. Python or even VB would be great. This would allow me to program custom functions inside of Mathcad using techniques I already know. I don't like the Mathcad programming techniques provided in M13, and am even tempted to revert back to MATLAB to process data.

2) Means of interfacing with electronic test equipment. Again, Python allows me to use things like PYVISA to talk to hardware outside my computer. It would be fantastic to be able to use this to write Mathcad based test script worksheets - that is it would set up the equipment, read the data from a scope or spec analyzer into Mathcad and then process it immediately instead of post processing.

3) I hate to admit it, but I like the ease of manipulating block diagrams like in Simulink or Labview, and wonder if something like this can be done in Mathcad. For example the ability to put a Mathcad worksheet into a collapsible calculation block with input and output connections. Then importing and even stringing several of them together in another higher level worksheet.

Good luck with Prime. Looking forward.

Dan

4 Comments
RichardJ
19-Tanzanite
1) Proper scripting support. Python or even VB would be great. This would allow me to program custom functions inside of Mathcad using techniques I already know. I don't like the Mathcad programming techniques provided in M13, and am even tempted to revert back to MATLAB to process data.

2) Means of interfacing with electronic test equipment. Again, Python allows me to use things like PYVISA to talk to hardware outside my computer. It would be fantastic to be able to use this to write Mathcad based test script worksheets - that is it would set up the equipment, read the data from a scope or spec analyzer into Mathcad and then process it immediately instead of post processing.

You can't do what you want here with the current VBscript and user DLL capabilities?

3) I hate to admit it, but I like the ease of manipulating block diagrams like in Simulink or Labview, and wonder if something like this can be done in Mathcad. For example the ability to put a Mathcad worksheet into a collapsible calculation block with input and output connections. Then importing and even stringing several of them together in another higher level worksheet.

There used to be a product like that, called MathConnex. It was dropped; I believe because of lack of interest

dbobyn
1-Newbie

You can't do what you want here with the current VBscript and user DLL capabilities?

Well, I suppose I can, and I just installed V14, where the documentation for this seems easier to find than with previous versions. Of course some examples would really help. There is a big difference between having the application being 'capable' of doing something, and making it easy to do something. So maybe, what I really want to see with Prime is better how-to documentation and more examples.

Cheers,

Dan

RichardJ
19-Tanzanite

There's lots of examples of scripted components here:

Extra Components.mcd

For user DLLs, search these forums. There are some examples. Here's one thread:

http://communities.ptc.com/message/85548#85548

olivierlp
Community Manager
Status changed to: Archived

Hello,

We are archiving your idea as part of a general review. This action is based on the age of your idea and the total number of votes received, as per this announcement.

You can always post a new idea with all the details required in the form.

Thank you for your participation.