Mathcad Custom Functions

Mathcad Custom Functions - This plugin will help you to connect Mathcad custom functions - Сообщения

#81 Опубликовано: 23.02.2014 06:57:26
Вячеслав Мезенцев

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

1402 сообщений из 1708 понравились пользователям.

Группа: Moderator

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

efi.txt

Показать спойлер

Russia ☭ forever, Viacheslav N. Mezentsev
#82 Опубликовано: 23.02.2014 09:14:14
zorrykid

zorrykid

5 сообщений из 18 понравились пользователям.

Группа: 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 Опубликовано: 23.02.2014 09:34:20
Martin Kraska

Martin Kraska

1222 сообщений из 2150 понравились пользователям.

Группа: 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 Опубликовано: 23.02.2014 10:12:37
zorrykid

zorrykid

5 сообщений из 18 понравились пользователям.

Группа: User

I'll do this way thanks and best regards

Franco
#85 Опубликовано: 13.03.2014 12:44:46
Igor Skarine

Igor Skarine

14 сообщений из 97 понравились пользователям.

Группа: 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 пользователям понравился этот пост
#86 Опубликовано: 17.03.2014 20:00:47
Вячеслав Мезенцев

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

1402 сообщений из 1708 понравились пользователям.

Группа: 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 пользователям понравился этот пост
Arie 23.01.2018 18:13:00, Davide Carpi 21.06.2014 12:49:00
#87 Опубликовано: 21.06.2014 07:54:52
Вячеслав Мезенцев

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

1402 сообщений из 1708 понравились пользователям.

Группа: Moderator

Russia ☭ forever, Viacheslav N. Mezentsev
1 пользователям понравился этот пост
Radovan Omorjan 21.06.2014 10:50:00
#88 Опубликовано: 08.07.2014 04:21:38
Вячеслав Мезенцев

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

1402 сообщений из 1708 понравились пользователям.

Группа: Moderator

Russia ☭ forever, Viacheslav N. Mezentsev
#89 Опубликовано: 08.07.2014 13:18:06
Igor Skarine

Igor Skarine

14 сообщений из 97 понравились пользователям.

Группа: 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 пользователям понравился этот пост
Вячеслав Мезенцев 09.07.2014 02:09:00, Davide Carpi 18.09.2016 11:47:00
#90 Опубликовано: 09.07.2014 02:07:38
Вячеслав Мезенцев

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

1402 сообщений из 1708 понравились пользователям.

Группа: Moderator



CorFlags attached.
CorFlags.zip (141 КиБ) скачан 175 раз(а).
Russia ☭ forever, Viacheslav N. Mezentsev
1 пользователям понравился этот пост
Davide Carpi 18.09.2016 11:46:00
#91 Опубликовано: 18.09.2016 02:31:31
Вячеслав Мезенцев

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

1402 сообщений из 1708 понравились пользователям.

Группа: Moderator

Updated for the fully automatic build using Release Manager.
Russia ☭ forever, Viacheslav N. Mezentsev
3 пользователям понравился этот пост
Igor Skarine 19.09.2016 11:24:00, Davide Carpi 18.09.2016 11:46:00, frapuano 03.12.2016 09:34:00
#92 Опубликовано: 29.05.2020 18:00:00
Harvey Hensley

Harvey Hensley

4 сообщений из 21 понравились пользователям.

Группа: 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 Опубликовано: 29.05.2020 19:12:42
Вячеслав Мезенцев

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

1402 сообщений из 1708 понравились пользователям.

Группа: 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 пользователям понравился этот пост
frapuano 30.05.2020 02:41:00
#94 Опубликовано: 29.05.2020 21:56:46
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: User

Wrote

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


Digamma from series approximation.

Maths Special Polygamma(x).sm (36 КиБ) скачан 82 раз(а).

#95 Опубликовано: 30.05.2020 00:44:16
Harvey Hensley

Harvey Hensley

4 сообщений из 21 понравились пользователям.

Группа: 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 Опубликовано: 30.05.2020 01:30:16
Вячеслав Мезенцев

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

1402 сообщений из 1708 понравились пользователям.

Группа: 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 пользователям понравился этот пост
frapuano 30.05.2020 02:43:00
#97 Опубликовано: 30.05.2020 09:57:58
Harvey Hensley

Harvey Hensley

4 сообщений из 21 понравились пользователям.

Группа: 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 Опубликовано: 30.05.2020 11:35:40
Jean Giraud

Jean Giraud

983 сообщений из 6866 понравились пользователям.

Группа: User

Wrote

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


... kronecker & Kronecker are built-in native Smath.
#99 Опубликовано: 30.05.2020 12:03:46
Harvey Hensley

Harvey Hensley

4 сообщений из 21 понравились пользователям.

Группа: 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 Опубликовано: 20.02.2021 17:42:36
GerardLardner

GerardLardner

4 сообщений из 34 понравились пользователям.

Группа: 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?
  • Новые сообщения Новые сообщения
  • Нет новых сообщений Нет новых сообщений