Mathcad Custom Functions

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

#81 Posted: 2/23/2014 6:57:26 AM
Вячеслав Мезенцев

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

1402 likes in 1708 posts.

Group: Moderator

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

efi.txt

Show Spoiler

Russia ☭ forever, Viacheslav N. Mezentsev
#82 Posted: 2/23/2014 9:14:14 AM
zorrykid

zorrykid

5 likes in 18 posts.

Group: 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 Posted: 2/23/2014 9:34:20 AM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: 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.
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#84 Posted: 2/23/2014 10:12:37 AM
zorrykid

zorrykid

5 likes in 18 posts.

Group: User

I'll do this way thanks and best regards

Franco
#85 Posted: 3/13/2014 12:44:46 PM
Igor Skarine

Igor Skarine

14 likes in 97 posts.

Group: 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 users liked this post
#86 Posted: 3/17/2014 8:00:47 PM
Вячеслав Мезенцев

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

1402 likes in 1708 posts.

Group: 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 users liked this post
Arie 1/23/2018 6:13:00 PM, Davide Carpi 6/21/2014 12:49:00 PM
#87 Posted: 6/21/2014 7:54:52 AM
Вячеслав Мезенцев

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

1402 likes in 1708 posts.

Group: Moderator

Russia ☭ forever, Viacheslav N. Mezentsev
1 users liked this post
Radovan Omorjan 6/21/2014 10:50:00 AM
#88 Posted: 7/8/2014 4:21:38 AM
Вячеслав Мезенцев

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

1402 likes in 1708 posts.

Group: Moderator

Russia ☭ forever, Viacheslav N. Mezentsev
#89 Posted: 7/8/2014 1:18:06 PM
Igor Skarine

Igor Skarine

14 likes in 97 posts.

Group: 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 users liked this post
Вячеслав Мезенцев 7/9/2014 2:09:00 AM, Davide Carpi 9/18/2016 11:47:00 AM
#90 Posted: 7/9/2014 2:07:38 AM
Вячеслав Мезенцев

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

1402 likes in 1708 posts.

Group: Moderator



CorFlags attached.
CorFlags.zip (141 KiB) downloaded 182 time(s).
Russia ☭ forever, Viacheslav N. Mezentsev
1 users liked this post
Davide Carpi 9/18/2016 11:46:00 AM
#91 Posted: 9/18/2016 2:31:31 AM
Вячеслав Мезенцев

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

1402 likes in 1708 posts.

Group: Moderator

Updated for the fully automatic build using Release Manager.
Russia ☭ forever, Viacheslav N. Mezentsev
3 users liked this post
Igor Skarine 9/19/2016 11:24:00 AM, Davide Carpi 9/18/2016 11:46:00 AM, frapuano 12/3/2016 9:34:00 AM
#92 Posted: 5/29/2020 6:00:00 PM
Harvey Hensley

Harvey Hensley

4 likes in 21 posts.

Group: 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 Posted: 5/29/2020 7:12:42 PM
Вячеслав Мезенцев

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

1402 likes in 1708 posts.

Group: 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 users liked this post
frapuano 5/30/2020 2:41:00 AM
#94 Posted: 5/29/2020 9:56:46 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

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


Digamma from series approximation.

Maths Special Polygamma(x).sm (36 KiB) downloaded 82 time(s).

#95 Posted: 5/30/2020 12:44:16 AM
Harvey Hensley

Harvey Hensley

4 likes in 21 posts.

Group: 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 Posted: 5/30/2020 1:30:16 AM
Вячеслав Мезенцев

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

1402 likes in 1708 posts.

Group: 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 users liked this post
frapuano 5/30/2020 2:43:00 AM
#97 Posted: 5/30/2020 9:57:58 AM
Harvey Hensley

Harvey Hensley

4 likes in 21 posts.

Group: 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 Posted: 5/30/2020 11:35:40 AM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

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


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

Harvey Hensley

4 likes in 21 posts.

Group: 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 Posted: 2/20/2021 5:42:36 PM
GerardLardner

GerardLardner

4 likes in 34 posts.

Group: 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?
  • New Posts New Posts
  • No New Posts No New Posts