Run - Extends SMath Studio with the ability to run other worksheets in background - Messages

#21 Posted: 11/4/2018 1:10:40 PM
Kyle Sullivan

Kyle Sullivan

0 likes in 7 posts.

Group: User

Ah I see what you’re getting at, not at my computer now but calcSheet.sm is actually a large 14 page calculation worksheet with ~10 input variables and 12 result/output variables that I’m not going to rewrite into a for loop on one page.

See below the input (and output) spreadsheet as well as my long calc sheet.

smath IO table.xlsx (48 KiB) downloaded 44 time(s).
DM splice connection design.sm (665 KiB) downloaded 50 time(s).
#22 Posted: 11/4/2018 1:47:23 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Wrote

Ah I see what you’re getting at, not at my computer now but calcSheet.sm is actually a large 14 of calculation worksheet with ~10 input variables and 12 result/output variables that I’m not going to rewrite into a for loop on one page.



Maybe you don't want the best way to do ... is it ?
"Monkey see, monkey do"
"Monkey don't see, monkey don't do"
#23 Posted: 11/12/2018 8:28:20 PM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: Moderator

Plugin updated

Wrote

there's something with run() only running files if they have a different name



Try now; I made a workaround to allow multiple executions of the same file(s).
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
#24 Posted: 10/11/2022 10:48:55 AM
modcal27

modcal27

0 likes in 1 posts.

Group: User

Hello,

I have two questions/comments regarding the Run plugin:

1. In the newest SMATH version 1.0.8253, the plugin does not seem to run properly. It is using the wrong input data row in the sequence. Also, the actual .sm files are being opened instead of being run in the background.

2. Is there a way to save the .sm files for each run? The new version of SMATH appears to do that however, erroneously.

Thanks
#25 Posted: 10/13/2022 12:07:05 PM
Jean Giraud

Jean Giraud

983 likes in 6866 posts.

Group: User

Davide introduced Run(,) in SS 6179.
I'm using SS 6179, but Run(,) does not exist.
Then out of topic.
You mentioned running in background mode.
Smath is compatible for this mode ... Explain.
Most of us open Smath from the task bar.
Thus you can work the documents you open.
Now, to open another instance of Smath
double click on the Smath icon from desk top.
Click on that session, open some document greedy in timing,
Press F9 to run.
Go back to the first Smath instance, navigate your documents.
In the mean time, the greedy 2nd instance keeps running
like if you had Smath in two separate computers.
Revisit the greedy 2nd instance ... bingo: 12 min done.
You can had more independent instances from the desk top.
So, the one that takes 3 hrs will be there once done
while continuing the classroom from the first task bar instance.
Cheers if it can help ... Jean
#26 Posted: 5/17/2023 1:22:23 PM
Martin Kraska

Martin Kraska

1222 likes in 2150 posts.

Group: Moderator

I played around with Run(). I got it to work only with explicit path specification in rfile() and wfile(), i.e. the versions from the Mathcad Toolbox.

Also, is it by intent, that the spawned SMath instance has to be closed manually each time?
Martin Kraska Pre-configured portable distribution of SMath Studio: https://en.smath.info/wiki/SMath%20with%20Plugins.ashx
#27 Posted: 5/18/2023 6:08:24 AM
Davide Carpi

Davide Carpi

1415 likes in 2872 posts.

Group: Moderator

Hello Martin,

Wrote

at the spawned SMath instance has to be closed manually each time?


Wrote

Also, the actual .sm files are being opened instead of being run in the background.



Nope, it isn't. I guess the behavior changed when Andrey introduced the single instance or the account features, but there's not much that can be done from the plugin side about this.


Wrote

2. Is there a way to save the .sm files for each run? The new version of SMATH appears to do that however, erroneously.



Nope. You have to use one of the export functions and save the data in an external file.
If you like my plugins please consider to support the program buying a license; for personal contributions to me: paypal.me/dcprojects
  • New Posts New Posts
  • No New Posts No New Posts