Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

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,127
Man
Russian Federation

Was thanked: 980 time(s) in 562 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
💰 Support me for plugins development: https://yoomoney.ru/to/410013245578758
Offline GerardLardner  
#102 Posted : 21 February 2021 02:30:39(UTC)
GerardLardner


Rank: Member

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

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,127
Man
Russian Federation

Was thanked: 980 time(s) in 562 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
💰 Support me for plugins development: https://yoomoney.ru/to/410013245578758
Offline GerardLardner  
#104 Posted : 21 February 2021 20:22:52(UTC)
GerardLardner


Rank: Member

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

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,127
Man
Russian Federation

Was thanked: 980 time(s) in 562 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
💰 Support me for plugins development: https://yoomoney.ru/to/410013245578758
Offline Jean Giraud  
#106 Posted : 21 February 2021 23:01:39(UTC)
Jean Giraud


Rank: Advanced Member

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 5,165
Canada

Was thanked: 818 time(s) in 650 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 4 time(s).

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


Rank: Member

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

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: Member

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

Originally Posted by: Jean Giraud Go to Quoted Post
Originally Posted by: GerardLardner 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 user 22 February 2021 02:56:29(UTC)  | Reason: Shorten the quoted text, tidy grammar

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


Rank: Member

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

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 Jean Giraud  
#110 Posted : 22 February 2021 04:10:28(UTC)
Jean Giraud


Rank: Advanced Member

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 5,165
Canada

Was thanked: 818 time(s) in 650 post(s)
Originally Posted by: GerardLardner Go to Quoted Post
Thank you Jean

You seem to navigate at random between stuffs that look not traceable.
Think in terms of final QA [Monkey don't see, Monkey don't certifies].
Any project start by data, that are just data for consultation.
In fact, you have no project in cooperation, yet.
Pay some $ for Katmar and zap WaterSteamPro.
Take care, work hard ... Jean
Offline Jean Giraud  
#111 Posted : 22 February 2021 04:48:45(UTC)
Jean Giraud


Rank: Advanced Member

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 5,165
Canada

Was thanked: 818 time(s) in 650 post(s)
Originally Posted by: Jean Giraud Go to Quoted Post
Any project start by data, that are just data for consultation.

Visit Psychrometry just posted today, to realize what I meant by data.
They may be from certified or accepted source or experimental.
Easy to treat for your Client ... Spline(M,x,y) that pass QA.
BTW, CoolProp runs on Modelica freeware, all independent of Smath.
At my age, my Modelica is museum ... strictly fan of Smath.
Offline Razonar  
#112 Posted : 22 February 2021 06:16:20(UTC)
Razonar


Rank: Advanced Member

Groups: Registered
Joined: 28/08/2014(UTC)
Posts: 649
Uruguay

Was thanked: 348 time(s) in 226 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  
#113 Posted : 22 February 2021 06:54:36(UTC)
uni


Rank: Advanced Member

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

Was thanked: 980 time(s) in 562 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
💰 Support me for plugins development: https://yoomoney.ru/to/410013245578758
Offline uni  
#114 Posted : 22 February 2021 07:33:47(UTC)
uni


Rank: Advanced Member

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

Was thanked: 980 time(s) in 562 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 8 time(s).
XSteam.sm (32kb) downloaded 7 time(s).
XSteam.pdf (74kb) downloaded 8 time(s).

XSteam.png

Edited by user 22 February 2021 07:43:40(UTC)  | Reason: Not specified

Russia ☭ forever
Viacheslav N. Mezentsev
💰 Support me for plugins development: https://yoomoney.ru/to/410013245578758
Offline GerardLardner  
#115 Posted : 22 February 2021 12:08:23(UTC)
GerardLardner


Rank: Member

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

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 8 time(s).
XSteam.sm (32kb) downloaded 7 time(s).
XSteam.pdf (74kb) downloaded 8 time(s).


Thank you very much.
Offline ElSid  
#116 Posted : 23 February 2021 03:24:19(UTC)
ElSid


Rank: Advanced Member

Groups: Registered
Joined: 05/03/2009(UTC)
Posts: 401
Man
United States
Location: USA

Was thanked: 12 time(s) in 11 post(s)
Originally Posted by: Jean Giraud Go to Quoted Post
CoolProp dates back 8 years ago in Smath.
It didn't work much for Radovan [plenty of red]...
Actually, UNI recently updated CoolProp and has been working very well on the water and air side. I have not tried steam. NOTE: working well means it correlated close to published data for engineering work ... typically +- 0.002 for the values

Edited by user 23 February 2021 03:38:49(UTC)  | Reason: Not specified

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.