Mathcad Custom Functions

Mathcad Custom Functions - This plugin will help you to connect Mathcad custom functions - Messaggi

#81 Pubblicato: 23/02/2014 06:57:26
Вячеслав Мезенцев

Вячеслав Мезенцев

1.558 apprezzamenti in 1.868 post.

Gruppo: Moderator

Yes, it is possible. I didn't update the plugin. I only changed the SMath Studio Desktop exe file.

efi.txt

Mostra spoiler

Russia ☭ forever, Viacheslav N. Mezentsev
#82 Pubblicato: 23/02/2014 09:14:14
zorrykid

zorrykid

5 apprezzamenti in 18 post.

Gruppo: User

Thanks a lot for your replay but probably I am doing something wrong.
First of all using the Plugin gallery i downloaded the EFI for Smath Studio..but it was very strange that I didn't find any mcadefi.ddl and USEREFI directory under the plugin dir of my installation of SMath Studio...so I decided to download manually the plugin and install it manually.
Then I downloaded the steamtable for mathcad and moved the 2 files (.ddl) in the USEREFI directory.
But ..no result I do not see listed the steamtable functions and the test file from Martin related to the steamtable functions doesn't work either.

So for sure I have done something wrong , please when you have a moment can you let me know which is supposed to be the correct installation procedure for bot the EFI plugin and the stematable library.

Best regards

Franco
#83 Pubblicato: 23/02/2014 09:34:20
Martin Kraska

Martin Kraska

1.361 apprezzamenti in 2.275 post.

Gruppo: Moderator

You might try the unofficial portable version (see my signature), it is updated to SMath 0.97. There, the steamtables are installed and ready to use (at least on my system this works).
Thanks to uni for the 32bit-compatible SMath-executable.
Technische Mechanik mit SMath Studio: https://link.springer.com/book/10.1007/978-3-658-50592-9
#84 Pubblicato: 23/02/2014 10:12:37
zorrykid

zorrykid

5 apprezzamenti in 18 post.

Gruppo: User

I'll do this way thanks and best regards

Franco
#85 Pubblicato: 13/03/2014 12:44:46
Igor Skarine

Igor Skarine

14 apprezzamenti in 97 post.

Gruppo: User

This is my remez2.dll. Usually it works a little better than Matlab tools.
You can design FIR band-pass/stop filters up to length~2000.
The example is audiophile's "holy" NPC SM5842 8X interpolating digital filter.
Before starting the program, do not forget to put remez2.dll in the plugin's \userefi folder.
sm5842.png
1 utenti hanno apprezzato questo post
#86 Pubblicato: 17/03/2014 20:00:47
Вячеслав Мезенцев

Вячеслав Мезенцев

1.558 apprezzamenti in 1.868 post.

Gruppo: Moderator

SMathStudio_Desktop_0.97.5189_32bit

How to get this 32-bit version (MSVS2010):

CorFlags /32bit+ SMathStudio_Desktop.exe

2014-07-08 14-28-46 Администратор  Visual Studio 2008 Command Prompt.png
Russia ☭ forever, Viacheslav N. Mezentsev
2 utenti hanno apprezzato questo post
Arie 23/01/2018 18:13:00, Davide Carpi 21/06/2014 12:49:00
#87 Pubblicato: 21/06/2014 07:54:52
Вячеслав Мезенцев

Вячеслав Мезенцев

1.558 apprezzamenti in 1.868 post.

Gruppo: Moderator

Russia ☭ forever, Viacheslav N. Mezentsev
1 utenti hanno apprezzato questo post
Radovan Omorjan 21/06/2014 10:50:00
#88 Pubblicato: 08/07/2014 04:21:38
Вячеслав Мезенцев

Вячеслав Мезенцев

1.558 apprezzamenti in 1.868 post.

Gruppo: Moderator

Russia ☭ forever, Viacheslav N. Mezentsev
#89 Pubblicato: 08/07/2014 13:18:06
Igor Skarine

Igor Skarine

14 apprezzamenti in 97 post.

Gruppo: User

I'm not a programmer, so VS2010 is not a good option. Simple patch is preferable .
So far the flags bits are at the same location for all SMath versions.
Just use HEX editor to write one byte 0x03 to absolute address 0x00000218 in the SMathStudio_Desktop.exe.
Good luck !!
2 utenti hanno apprezzato questo post
Вячеслав Мезенцев 09/07/2014 02:09:00, Davide Carpi 18/09/2016 11:47:00
#90 Pubblicato: 09/07/2014 02:07:38
Вячеслав Мезенцев

Вячеслав Мезенцев

1.558 apprezzamenti in 1.868 post.

Gruppo: Moderator



CorFlags attached.
CorFlags.zip (141,17 KiB) scaricato 749 volta(e).
Russia ☭ forever, Viacheslav N. Mezentsev
1 utenti hanno apprezzato questo post
Davide Carpi 18/09/2016 11:46:00
#91 Pubblicato: 18/09/2016 02:31:31
Вячеслав Мезенцев

Вячеслав Мезенцев

1.558 apprezzamenti in 1.868 post.

Gruppo: Moderator

Updated for the fully automatic build using Release Manager.
Russia ☭ forever, Viacheslav N. Mezentsev
3 utenti hanno apprezzato questo post
Igor Skarine 19/09/2016 11:24:00, Davide Carpi 18/09/2016 11:46:00, frapuano 03/12/2016 09:34:00
#92 Pubblicato: 29/05/2020 18:00:00
Harvey Hensley

Harvey Hensley

4 apprezzamenti in 21 post.

Gruppo: User

I am the author of the Prode Physical Properties dll for Mathcad and I am excited to see that it is supposed to work with this extension in SMath. However, I can't seem to get the MathcadEFI installed properly. For example, the digamma function doesn't appear in SMath.

I have a path of C:\Program Files (x86)\SMath Studio\plugins. In the plugins folder is mcaduser.dll, mcadefi.ddl, and userefi folder. The userefi folder contains 4 dlls including mathlib.dll.

From a SMath worksheet, tools>plugins shows that the EFI for SMath Studio is present and enabled, although I had to add to files manually as described above.

Can you help?
#93 Pubblicato: 29/05/2020 19:12:42
Вячеслав Мезенцев

Вячеслав Мезенцев

1.558 apprezzamenti in 1.868 post.

Gruppo: Moderator

Mathcad works only with 32-bit plugins but SMath Studio is 64-bit application, so you need to make it 32-bit using CorFlags with administrative privileges.

2020-05-30_03-04-23.png

2020-05-30_03-12-10.png

It is better to use the standard installation method for the plugin.

When the program is running, the mcadefi.log file (located next to the mcadefi.dll) will show the number of loaded functions:

30.05.2020 03:11:45 [INFO ] [Plugin.Initialize()] OS: Microsoft Windows NT 6.2.9200.0
30.05.2020 03:11:45 [INFO ] [Plugin.Initialize()] .Net: 4.0.30319.42000
30.05.2020 03:11:45 [INFO ] [Plugin.Initialize()] 32-bit
30.05.2020 03:11:45 [INFO ] [Plugin.Initialize()] EFI for SMath Studio, version 1.0.7165.40625, 14-авг-2019 22:34:10
30.05.2020 03:11:45 [INFO ] [Plugin.Initialize()] Psi(1) - ( z ) Digamma function for complex z
30.05.2020 03:11:45 [INFO ] [Plugin.Initialize()] kronecker(2) - ( M,N ) Kronecker product of a square matrix M and a square matrix N
30.05.2020 03:11:45 [INFO ] [Plugin.Initialize()] Successfully. 2 function(s) loaded.
Russia ☭ forever, Viacheslav N. Mezentsev
1 utenti hanno apprezzato questo post
frapuano 30/05/2020 02:41:00
#94 Pubblicato: 29/05/2020 21:56:46
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: User

Wrote

For example, the digamma function doesn't appear in SMath.


Digamma from series approximation.

Maths Special Polygamma(x).sm (36,99 KiB) scaricato 1673 volta(e).

#95 Pubblicato: 30/05/2020 00:44:16
Harvey Hensley

Harvey Hensley

4 apprezzamenti in 21 post.

Gruppo: User

Hi uni,

I downloaded the CorFlags but I don't understand what I'm supposed to do with the contents. It appears that your example was run from the command line but that didn't work, see below.

C:\Users\Harvey>C:\Users\Harvey>C:\Program Files\SMath Studio>CorFlags.exe /32bit+SMathStudio_Desktop.exe
'C:\Users\Harvey' is not recognized as an internal or external command,
operable program or batch file.

Since I am not a developer, I need some step by step instructions. I have looked through this topic and I don't understand the procedure.

Eventually I hope to get the Prode Properties dll to work.

Sorry to be so clueless.
#96 Pubblicato: 30/05/2020 01:30:16
Вячеслав Мезенцев

Вячеслав Мезенцев

1.558 apprezzamenti in 1.868 post.

Gruppo: Moderator

Step 0. Copy CorFlags.exe to the program folder.

Step 1. Start command console with administrative privileges.

Step 2. Move to the program directory:
cd "c:\Program Files (x86)\SMath Studio"

Step 3. Set the 32-bit flag to 1 (don't forget about spaces):
CorFlags.exe /32bit+ SMathStudio_Desktop.exe

Step 4. Check the flag value (32BITREQ must be 1):
CorFlags.exe SMathStudio_Desktop.exe

Result:

Version   : v2.0.50727
CLR Header: 2.5
PE        : PE32
CorFlags  : 0x3
ILONLY    : 1
32BITREQ  : 1
32BITPREF : 0
Signed    : 0

Command to return back 32-bit flag value (32BITREQ must be 0):
CorFlags.exe /32bit- SMathStudio_Desktop.exe
Russia ☭ forever, Viacheslav N. Mezentsev
1 utenti hanno apprezzato questo post
frapuano 30/05/2020 02:43:00
#97 Pubblicato: 30/05/2020 09:57:58
Harvey Hensley

Harvey Hensley

4 apprezzamenti in 21 post.

Gruppo: User

Thank you for the clear instructions. I have the EFI working (e.g. kronecker works). However, the prode test file still doesn't work. I'll continue in the Prode Physical Properties thread.

#98 Pubblicato: 30/05/2020 11:35:40
Jean Giraud

Jean Giraud

983 apprezzamenti in 6.866 post.

Gruppo: User

Wrote

I have the EFI working (e.g. kronecker works)


... kronecker & Kronecker are built-in native Smath.
#99 Pubblicato: 30/05/2020 12:03:46
Harvey Hensley

Harvey Hensley

4 apprezzamenti in 21 post.

Gruppo: User

Wrote

Wrote

I have the EFI working (e.g. kronecker works)


... kronecker & Kronecker are built-in native Smath.



For my installation, kronecker only works if the MathcadEFI is enabled.
#100 Pubblicato: 20/02/2021 17:42:36
GerardLardner

GerardLardner

4 apprezzamenti in 34 post.

Gruppo: User

Can someone please remind me how to get WaterSteamPro working with SMath? I had it working with my last laptop but I cannot get it working with the new one. I have WSP v6.5; it works fine in Mathcad 15 and in Excel.

I have used the CorFlags app to force SMathStudio_Desktop to work as a 32-bit application (32BITREQ : 1).

I think I must be putting some of the dlls in the wrong folder, as I can't get X-Steam to work either.
  • Which version of mcadefi.dll is needed for the current SMathStudio Desktop?
  • Do I need mcaduser.dll? If so, which version?
  • Which folders should everything (including wspmcad.dll) be in?
  • Nuovi post
  • Nessun nuovo post