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

Notification

Icon
Error

3 Pages<123
Options
Go to last post Go to first unread
Offline Jean Giraud  
#41 Posted : 22 April 2016 03:43:26(UTC)
Jean Giraud


Rank: Advanced Member

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 4,125
Canada

Was thanked: 727 time(s) in 569 post(s)
Originally Posted by: Alex.M Go to Quoted Post
It is useful when you use one slider to fine tune several independent values (by switching between them)
.

Alex,

I don't understand "completely" your tune several independent values.
I suppose you mean adjusting "parameters" wrt model/modeling.
That was my comment reply to Sergio/Davide. Keep reading "Samples"
that's where you will find model functions already done. The last
two typical: Alcotest, Water viscosity. Modeling is a life time
addiction, no cure for that except the day I will suck the roots,
no urgency for that day ! can't even backward the clocking slider/timer.

Cheers, Jean

Offline Alex M.  
#42 Posted : 25 April 2016 07:06:08(UTC)
Alex M.


Rank: Advanced Member

Groups: Registered
Joined: 03/03/2014(UTC)
Posts: 402
Canada

Was thanked: 119 time(s) in 92 post(s)
Originally Posted by: Davide Carpi Go to Quoted Post

I can do it, but this means that the slider will be used just as visual feedback, since any user change triggers the evaluation that restore the input value.


Originally Posted by: Jean Giraud Go to Quoted Post
Originally Posted by: Alex.M Go to Quoted Post
It is useful when you use one slider to fine tune several independent values (by switching between them)
.

Alex,

I don't understand "completely" your tune several independent values.
I suppose you mean adjusting "parameters" wrt model/modeling.


Davide and Jean,

This is how a predefined initial slider value would have been used for me before and can be used by someone in future:

<block of calcs outputs slider value>

-> fine tune the value using the slider
-> the value to a global variable which is passed back to the block of calcs

What I did before:

Have two sliders that define XY coordinates of the point. Use only those two sliders to modify coordinates of about 15 points. This would have been possible if the slider value could be preset from the workbook:
-> select a point
-> slider is positioned at the current point's coordinate
-> adjust the slider
-> point coordinate is stored in a global variable and becomes the new default position of the slider
-> select different point
-> repeat

To be fair I have abandoned the XY coordinate definition method in favor of using modeler region for that purpose. However the example demonstrates that presetting the initial slider position can be useful in certain cases.
Offline Jean Giraud  
#43 Posted : 25 April 2016 16:07:12(UTC)
Jean Giraud


Rank: Advanced Member

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 4,125
Canada

Was thanked: 727 time(s) in 569 post(s)
Thanks Alex,

I understand why the slider is useful for you: set the coordinates of a drawing shape.
Not like me: tuning parameters of a model function [conjointly OriginLab, Smath Genfit]

Cheers, Jean.

Eastern Canada, still very fresh temperature.
Offline Jean Giraud  
#44 Posted : 26 April 2016 05:59:01(UTC)
Jean Giraud


Rank: Advanced Member

Groups: Registered
Joined: 04/07/2015(UTC)
Posts: 4,125
Canada

Was thanked: 727 time(s) in 569 post(s)
... forgot one of the most pertinant use of the slider:
slide the convolving function [sliding integration].
One of so many RemToDo.
Offline Davide Carpi  
#45 Posted : 07 May 2016 20:20:50(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 2,214
Man
Italy
Location: Italy

Was thanked: 1120 time(s) in 731 post(s)
PLUGIN UPDATED SMath Studio 0.98.5952 Nightly Build only Beta

  • SMath Viewer: the same slider of the canvas will be used, instead of the standard .NET Trackbar; this makes the project more consistent and solves several bugs even in the worksheet; moreover allows to remove the scale factor;
  • Scale factor removed; decimal values are now a valid input.
    ** if you don't have settings from canvas, transition is fully driven by the region;
    ** if you have settings from canvas and scale factor != 1, you have to update the input values from the canvas and change the name of the variable that contains the input settings or save and reopen the worksheet (an error message will be shown inside the region, output value will be undefined until you fix the settings);
  • Added new key for settings from canvas: "value" (if you want to disable input from users, region will be used just as a visual feedback);
  • Added new key for settings from canvas: "initial value" (the value of the region will be set as this value if it changes);


Slider Region.sm (29kb) downloaded 43 time(s).



P.S. If everything works fine, I'll relase a stable version for SS from 0.97.5346 to latest

Edited by user 07 May 2016 20:43:52(UTC)  | Reason: Not specified

If you like my plugins please consider a donation to SMath Studio; for personal contributions to me: paypal.me/dcprojects
thanks 1 user thanked Davide Carpi for this useful post.
on 22/08/2016(UTC)
Offline alyles  
#46 Posted : 22 August 2016 16:55:57(UTC)
alyles


Rank: Advanced Member

Groups: Registered
Joined: 23/03/2016(UTC)
Posts: 204
United States

Was thanked: 69 time(s) in 44 post(s)
When I show the description of the slider, I receive an exception when trying to open the settings.

Picture and Exception text attached. I'm using SMath 0.98 (build: 6077) and plugin version (0.4.6078.4892).

exception.png
exception.txt (26kb) downloaded 24 time(s).
Feel free to join the SMath Studio Users Discord Channel: https://discord.gg/PayZpJW
Offline Davide Carpi  
#47 Posted : 22 August 2016 17:47:07(UTC)
Davide Carpi


Rank: Advanced Member

Groups: Registered, Advanced Member
Joined: 13/01/2012(UTC)
Posts: 2,214
Man
Italy
Location: Italy

Was thanked: 1120 time(s) in 731 post(s)
Fixed & updated, thank you!
If you like my plugins please consider a donation to SMath Studio; for personal contributions to me: paypal.me/dcprojects
thanks 2 users thanked Davide Carpi for this useful post.
on 22/08/2016(UTC),  on 22/08/2016(UTC)
Users browsing this topic
3 Pages<123
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.