Welcome Guest! To enable all features please Login. New Registrations are disabled.

Notification

Icon
Error

Login


6 Pages«<456
Options
Go to last post Go to first unread
Offline uni  
#101 Posted : 20 February 2021 23:55:23(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,493
Man
Russian Federation

Was thanked: 1274 time(s) in 745 post(s)
Show mcadefi.log content from plugin folder (%appdata%\SMath\extensions\plugins\91a20d24-c30b-4774-9b1b-4d502a80420f\x.x.x.x) when the program is running.
Russia ☭ forever
Viacheslav N. Mezentsev
thanks 1 user thanked uni for this useful post.
on 22/05/2021(UTC)
Offline GerardLardner  
#102 Posted : 21 February 2021 02:30:39(UTC)
GerardLardner


Rank: Advanced Member

Groups: Registered
Joined: 09/11/2013(UTC)
Posts: 32
Ireland
Location: Leinster

Was thanked: 4 time(s) in 4 post(s)
Hi Uni,

Thanks for posting so quickly. So that's where the logfile resides; I either had forgotten or never knew; I also didn't know it exists only while SMath is running.

Here is the contents of mcadefi.log:

Code:
20.02.2021 23:26:42 [INFO ] [Plugin.Initialize()] OS: Microsoft Windows NT 6.2.9200.0
20.02.2021 23:26:42 [INFO ] [Plugin.Initialize()] .Net: 4.0.30319.42000
20.02.2021 23:26:42 [INFO ] [Plugin.Initialize()] 32-bit
20.02.2021 23:26:42 [INFO ] [Plugin.Initialize()] EFI for SMath Studio, version 1.0.7165.40625, 14-Aug-2019 22:34:10
20.02.2021 23:26:42 [INFO ] [Plugin.Initialize()] Psi(1) - ( z ) Digamma function for complex z
20.02.2021 23:26:42 [INFO ] [Plugin.Initialize()] kronecker(2) - ( M,N ) Kronecker product of a square matrix M and a square matrix N
20.02.2021 23:26:42 [INFO ] [Plugin.Initialize()] Successfully. 2 function(s) loaded.

Edited by moderator 21 February 2021 07:45:14(UTC)  | Reason: Not specified

Offline uni  
#103 Posted : 21 February 2021 07:51:21(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,493
Man
Russian Federation

Was thanked: 1274 time(s) in 745 post(s)
Plugin mcadefi loads user libraries located in userefi folder. You have to copy the same library there, which is located in the Mathcad userefi folder.
Also show userefi\efi.txt content when the program is running.
Russia ☭ forever
Viacheslav N. Mezentsev
Offline GerardLardner  
#104 Posted : 21 February 2021 20:22:52(UTC)
GerardLardner


Rank: Advanced Member

Groups: Registered
Joined: 09/11/2013(UTC)
Posts: 32
Ireland
Location: Leinster

Was thanked: 4 time(s) in 4 post(s)
OK. I had wspmcad.dll and XSteam_V2.6b.dll in C:\Program Files (x86)\SMath Studio\plugins\, now moved to C:\Program Files (x86)\SMath Studio\plugins\userefi. This is the resulting userefi\efi.txt:

Quote:
21.02.2021 17:18:51 [INFO ] [LoadLibraries] begin:
21.02.2021 17:18:51 [INFO ] [CreateUserFunction] [DIGAMMA.DLL] Psi( z ) Digamma function for complex z
21.02.2021 17:18:51 [INFO ] [LoadLibraries] C:\Users\glard\AppData\Roaming\SMath\extensions\plugins\91a20d24-c30b-4774-9b1b-4d502a80420f\1.0.7165.40625\userefi\DIGAMMA.DLL loaded.
21.02.2021 17:18:51 [INFO ] [CreateUserFunction] [KRONECKR.DLL] kronecker( M,N ) Kronecker product of a square matrix M and a square matrix N
21.02.2021 17:18:51 [INFO ] [LoadLibraries] C:\Users\glard\AppData\Roaming\SMath\extensions\plugins\91a20d24-c30b-4774-9b1b-4d502a80420f\1.0.7165.40625\userefi\KRONECKR.DLL loaded.
21.02.2021 17:18:51 [INFO ] [LoadLibraries] end.


No sign of either WaterSteamPro or X-Steam being loaded.

Another oddity has arisen last night, since I started to try to get WaterSteamPro and X-Steam working in SMathStudio. Occasionally SMath fails to start, complaining about a succession of functions not being found ("The specified module could not be found"Wink. Usually, if I kill SMathStudio using Task Manager, it will start correctly next try.
Offline uni  
#105 Posted : 21 February 2021 20:41:48(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,493
Man
Russian Federation

Was thanked: 1274 time(s) in 745 post(s)
You are not surprised that the paths you specify are different from those described by the program?

Plugins by default use the folder specified in the log file:
Code:
C:\Users\glard\AppData\Roaming\SMath\extensions\plugins\


And the specified userefi folder must be one:

Code:
C:\Users\glard\AppData\Roaming\SMath\extensions\plugins\91a20d24-c30b-4774-9b1b-4d502a80420f\1.0.7165.40625\userefi\


In the Mathcad this folder is located in the same place as the program but this is due to compatibility. In our case this folder should be located in the place where the plugin itself is installed. An exception may be the portable version of the program.

You must copy your files to this path:

Code:
%appdata%\SMath\extensions\plugins\91a20d24-c30b-4774-9b1b-4d502a80420f\1.0.7165.40625\userefi\


If the plugin is updated, you need to manually copy your libraries to a new location: \plugins\91a20d24-c30b-4774-9b1b-4d502a80420f\x.x.x.x\userefi\

Edited by user 21 February 2021 20:52:28(UTC)  | Reason: Not specified

Russia ☭ forever
Viacheslav N. Mezentsev
Offline Jean Giraud  
#106 Posted : 21 February 2021 23:01:39(UTC)
Jean Giraud

Rank: Guest

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 6,868
Canada

Was thanked: 980 time(s) in 808 post(s)
Originally Posted by: GerardLardner Go to Quoted Post
No sign of either WaterSteamPro or X-Steam being loaded.

Revisit this document. Most of it dates back before my Mathcad 8 Pro.
Sure, Mathcad helped a lot for better publishing. That stuff is what
I need for Process Control & Instrumentation. At this point, if you
need more: attach the data set ... for some suite.
Never heard of "X-Steam".
CoolProp dates back 8 years ago in Smath.
It didn't work much for Radovan [plenty of red].
Can't retrieve that old stuff from the Forum, that seemingly truncates.
Sorry Gerard: can't help more.

Inst_IAPWS region 1 MostUsed.sm (266kb) downloaded 15 time(s).

Offline GerardLardner  
#107 Posted : 22 February 2021 02:37:29(UTC)
GerardLardner


Rank: Advanced Member

Groups: Registered
Joined: 09/11/2013(UTC)
Posts: 32
Ireland
Location: Leinster

Was thanked: 4 time(s) in 4 post(s)
Thank you, Uni. It is much clearer now, and WaterSteamPro is now working in SMathStudio.

I have still not got X-Steam working in SMathStudio. I don't really need it but some clients ask me to use it.

The efi.txt file now looks like this (I have deleted a lot of lines related to KRONECKER and WatersteanPro, leaving just the first [CreateUserFunction] line of each block). Can you see any reason why the mcadefi is not loading the UserFunctions from X-Steam?

Quote:
21.02.2021 23:27:46 [INFO ] [LoadLibraries] begin:
21.02.2021 23:27:46 [INFO ] [CreateUserFunction] [DIGAMMA.DLL] Psi( z ) Digamma function for complex z
21.02.2021 23:27:46 [INFO ] [LoadLibraries] C:\Users\glard\AppData\Roaming\SMath\extensions\plugins\91a20d24-c30b-4774-9b1b-4d502a80420f\1.0.7165.40625\userefi\DIGAMMA.DLL loaded.
21.02.2021 23:27:46 [INFO ] [CreateUserFunction] [KRONECKR.DLL] kronecker( M,N ) Kronecker product of a square matrix M and a square matrix N
21.02.2021 23:27:46 [INFO ] [LoadLibraries] C:\Users\glard\AppData\Roaming\SMath\extensions\plugins\91a20d24-c30b-4774-9b1b-4d502a80420f\1.0.7165.40625\userefi\KRONECKR.DLL loaded.
21.02.2021 23:27:46 [INFO ] [CreateUserFunction] [mathlib.dll] H1v( v,z ) Hankel function of real order v and complex argument z (1st kind). Argument z must be nonzero and is considered in the cut plane -pi < arg(z) <= pi.
... (72 lines deleted)
21.02.2021 23:27:46 [INFO ] [LoadLibraries] C:\Users\glard\AppData\Roaming\SMath\extensions\plugins\91a20d24-c30b-4774-9b1b-4d502a80420f\1.0.7165.40625\userefi\mathlib.dll loaded.
21.02.2021 23:27:46 [INFO ] [CreateUserFunction] [wspmcad.dll] wspSURFTENT(...)
... (369 lines deleted)
21.02.2021 23:27:46 [INFO ] [LoadLibraries] C:\Users\glard\AppData\Roaming\SMath\extensions\plugins\91a20d24-c30b-4774-9b1b-4d502a80420f\1.0.7165.40625\userefi\wspmcad.dll loaded.
21.02.2021 23:27:46 [INFO ] [LoadLibraries] C:\Users\glard\AppData\Roaming\SMath\extensions\plugins\91a20d24-c30b-4774-9b1b-4d502a80420f\1.0.7165.40625\userefi\XSteam_V2.6b.dll loaded.
21.02.2021 23:27:46 [INFO ] [LoadLibraries] end.

Offline GerardLardner  
#108 Posted : 22 February 2021 02:53:15(UTC)
GerardLardner


Rank: Advanced Member

Groups: Registered
Joined: 09/11/2013(UTC)
Posts: 32
Ireland
Location: Leinster

Was thanked: 4 time(s) in 4 post(s)
Originally Posted by: Jean Giraud Go to Quoted Post
Never heard of "X-Steam".


Thank you Jean. Actually, CoolProp works OK in SMath for me.

As I noted in the message above, I don't like to use X-Steam but somethimes I have to. X-Steam was an add-in for Excel, Matlab, Scilab and OpenOffice created in the early 2000s by a Swedish engineer, Magnus Holmgren; it was originally, I think, distributed as VBA macro for Excel. It's been pretty much abandonware since 2011 (when the website registration expired), with the last release being in 2006. Holmgren said he would put it on Sourceforge but he never did; I guess he simply retired. Someone else has created an archive of the downloadable files, including a dll version, at https://github.com/KurtJacobson/XSteam. One of the 'features' about it I don't like is that the base units for pressure and temperature are bar (abs) and °C; it is limited to temperatures above 0°C. As I say, I will only use it if I have to check a client's spreadsheet, where they have used it, or occasionally when I have to share a spreadsheet with someone who does not have WaterSteamPro or other common steam tables and I need to include steam tables in it.

Edited by moderator 29 December 2021 18:50:52(UTC)  | Reason: Not specified

Offline GerardLardner  
#109 Posted : 22 February 2021 03:08:07(UTC)
GerardLardner


Rank: Advanced Member

Groups: Registered
Joined: 09/11/2013(UTC)
Posts: 32
Ireland
Location: Leinster

Was thanked: 4 time(s) in 4 post(s)
Originally Posted by: GerardLardner Go to Quoted Post
Another oddity has arisen last night, since I started to try to get WaterSteamPro and X-Steam working in SMathStudio. Occasionally SMath fails to start, complaining about a succession of functions not being found ("The specified module could not be found"Wink. Usually, if I kill SMathStudio using Task Manager, it will start correctly next try.


I forgot to mention, since following Uni's guidance below, this problem also seems to have been resolved.
Offline Razonar  
#110 Posted : 22 February 2021 06:16:20(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 1,356
Uruguay

Was thanked: 815 time(s) in 516 post(s)
Originally Posted by: GerardLardner Go to Quoted Post

As I noted in the message above, I don't like to use X-Steam but somethimes I have to. X-Steam was an add-in for Excel, Matlab, Scilab and OpenOffice created in the early 2000s by a Swedish engineer, Magnus Holmgren; it was originally, I think, distributed as VBA macro for Excel.


Hello. I have used it. It had a very good reception in Mexico, Cuba, Spain, Uruguay and other Latin American countries. But the version that I remember was only for Excel. The dll that appears in your list may be for Excel, via some xsteam.xla; I don't remember a version from where that you could use it directly in Mathcad. The way to use it in Mathcad was to use the Excel component in Mathcad, and it was an Excel worksheet with xsteam.xla as reference that called the XSteam dll.

There are programs that analyze which modules are exported in a dll, as well as what the dependency is. In case it can be called from Mathcad, you should see a dependency to mcdefi.dll from xsteam.dll. If you upload xsteam.dll as a zip file I or Viacheslav (uni) or many others here can tell you if it is a dll for Excel or for Mathcad. The SMath plugin can only invoke dlls for Mathcad.

You can see also this post: https://en.smath.com/for...--and-other--Tables.aspx

Best regards.
Alvaro.

Edited by user 22 February 2021 06:22:59(UTC)  | Reason: Not specified

Offline uni  
#111 Posted : 22 February 2021 06:54:36(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,493
Man
Russian Federation

Was thanked: 1274 time(s) in 745 post(s)
Yes XSteam do not work because it is not a mathcad userefi dll, but I can make a plugin from it:

Code:
https://github.com/KurtJacobson/XSteam
Russia ☭ forever
Viacheslav N. Mezentsev
Offline uni  
#112 Posted : 22 February 2021 07:33:47(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,493
Man
Russian Federation

Was thanked: 1274 time(s) in 745 post(s)
Ok, now I remember. Previously, I included examples of its use in the archive with the plugin and these tables were there. But you need two files. One file is the library itself with functions, and the second is a plugin for Mathcad. I have attached the missing library in the archive. Don't lose it.

XSteam.zip (4,635kb) downloaded 37 time(s).
XSteam.sm (32kb) downloaded 26 time(s).
XSteam.pdf (74kb) downloaded 22 time(s).

Click to enlarge

Edited by user 29 December 2021 18:49:38(UTC)  | Reason: Not specified

Russia ☭ forever
Viacheslav N. Mezentsev
Offline GerardLardner  
#113 Posted : 22 February 2021 12:08:23(UTC)
GerardLardner


Rank: Advanced Member

Groups: Registered
Joined: 09/11/2013(UTC)
Posts: 32
Ireland
Location: Leinster

Was thanked: 4 time(s) in 4 post(s)
Originally Posted by: uni Go to Quoted Post
Ok, now I remember. Previously, I included examples of its use in the archive with the plugin and these tables were there. But you need two files. One file is the library itself with functions, and the second is a plugin for Mathcad. I have attached the missing library in the archive. Don't lose it.

XSteam.zip (4,635kb) downloaded 37 time(s).
XSteam.sm (32kb) downloaded 26 time(s).
XSteam.pdf (74kb) downloaded 22 time(s).


Thank you very much.
Offline uni  
#114 Posted : 22 May 2021 12:44:13(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,493
Man
Russian Federation

Was thanked: 1274 time(s) in 745 post(s)
SMath Studio compatibility

Plugin updated.

Changes:

- 64-bit support added;
- refactored.

It is possible to use user libraries for the Mathcad Prime 6+ (64-bit). This is CoolProp 6.4.1 64-bit for Prime 6.0.

2021-05-22_22-56-46.png 2021-05-22_23-09-44.png

Links:

1. CoolProp's download directory
2. CoolProp Wrapper for MathCAD Prime 3.x or later (64-bit)
3. SMath Studio CoolProp Wrapper

Edited by user 22 May 2021 21:35:02(UTC)  | Reason: Not specified

Russia ☭ forever
Viacheslav N. Mezentsev
thanks 2 users thanked uni for this useful post.
on 22/05/2021(UTC),  on 22/05/2021(UTC)
Offline tomtit  
#115 Posted : 27 May 2021 17:45:49(UTC)
tomtit


Rank: Advanced Member

Groups: Registered
Joined: 22/02/2014(UTC)
Posts: 81

Was thanked: 11 time(s) in 10 post(s)
Hi uni,
Could you please re-build this ancient msvc60 project as 64-bit extension, if you have time of course.
msvc60-remez2_dll.7z (11kb) downloaded 14 time(s).
Unfortunately I'm not a programmer, but 63years old hardware developer.
Best regards
thanks 1 user thanked tomtit for this useful post.
on 27/05/2021(UTC)
Offline uni  
#116 Posted : 27 May 2021 18:28:38(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,493
Man
Russian Federation

Was thanked: 1274 time(s) in 745 post(s)
I will rewrite the code in c# and add it to the FIR Filter Design plugin. I hope it will not lose speed and accuracy.
Russia ☭ forever
Viacheslav N. Mezentsev
Offline uni  
#117 Posted : 17 November 2021 23:36:02(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,493
Man
Russian Federation

Was thanked: 1274 time(s) in 745 post(s)
Originally Posted by: tomtit Go to Quoted Post
Hi uni,
Could you please re-build this ancient msvc60 project as 64-bit extension, if you have time of course.
msvc60-remez2_dll.7z (11kb) downloaded 14 time(s).
Unfortunately I'm not a programmer, but 63years old hardware developer.
Best regards

Originally Posted by: uni Go to Quoted Post
I will rewrite the code in c# and add it to the FIR Filter Design plugin. I hope it will not lose speed and accuracy.

Done. See here.

Please check.

Click to enlarge

remez2 example.sm (19kb) downloaded 20 time(s).
remez2 example.pdf (119kb) downloaded 16 time(s).

Edited by user 29 December 2021 18:49:04(UTC)  | Reason: Not specified

Russia ☭ forever
Viacheslav N. Mezentsev
thanks 1 user thanked uni for this useful post.
on 25/11/2021(UTC)
Offline uni  
#118 Posted : 31 December 2021 02:07:13(UTC)
uni


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 10/11/2010(UTC)
Posts: 1,493
Man
Russian Federation

Was thanked: 1274 time(s) in 745 post(s)
SMath Studio compatibility

Plugin updated.

Changes:

- plugin renamed from mcadefi to MathcadCustomFunctions;
- version changed to 1.1.*;
- restructured and totally refactored.

Links:

1. About Custom Functions.
Russia ☭ forever
Viacheslav N. Mezentsev
thanks 2 users thanked uni for this useful post.
on 31/12/2021(UTC),  on 31/12/2021(UTC)
Users browsing this topic
6 Pages«<456
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.