You are not logged in.
Pages: 1
Is it possible to add a small tool to help develop dynamic formulas (lift, cure, etc...) ?
I'm having trouble with my formula giving odd output, and it would be easier to enter a formula and then have NanoDLP show me the actual output rather than guessing mid-print.
Maybe just a text box for the actual formula, a few others to specify test values for whatever variables one may need and an output section? It would be SUPER helpful, and also help provide a useful documentation sort of deal for the dynamic calculation features as well as make it more user accessible / friendly.
Offline
Oh, and is there any explanation on the mathematical operators? I've got several prints where I need to set up "zones" for different cure times like this:
Layers Cure Time
0 - 4 40 seconds
5 - 300 2 seconds
301 - 400 1.8 seconds
401 - 500 1.2 seconds
501 - 550 2 seconds
The formula I came up with is:
( ([[LayerNumber]]<=4)*1+40) + (4 < [[LayerNumber]]<=300)*1+2) + (300 < [[LayerNumber]]<=400)*1+1.8) + (400 < [[LayerNumber]]<=500)*1+1.2) + (500 < [[LayerNumber]]<=550)*1+2) )
But NanoDLP doesn't seem to like the variable being in the middle of two math operators like that.
Offline
As an example, the following formula:
(
(([[LayerNumber]] <= 4) * 1 + 40 )
+
(( [[LayerNumber]] <= 91) * 1 + 3)
+
(([[LayerNumber]] <= 406) * 1 + 1.85)
+
(([[LayerNumber]] <= 423)* 1 + 1.6)
+
(([[LayerNumber]] <= 486) * 1 + 1.2)
+
(([[LayerNumber]] <= 494) * 1 + 1.8)
+
(([[LayerNumber]] <= 999) * 1 + 2.2)
)
Yields a cure time of 58.65 for the first 4 layers for some reason.
Offline
58.65 is the correct result, what did you expected?
(([[LayerNumber]] <= 4) * 1 + 40 ) will be equal to 1*1 + 40 => 41
Offline
Well, I was trying for just 40.
The notation is a little confusing. It would be easier to work with with some kind of calculation tool, hence the request. Is it doable?
Offline
I will try to add something to dry run formulas.
Offline
I will try to add something to dry run formulas.
Just updated to 1362. I'm assuming there's been no addition for this?
Offline
No, there is a big obstacle to implement it. Usually you are free to use any of available variables in gcode boxes. But if we calculate the value when you edit box, it would not be possible to guess what we should put instead of variables. Another alternative is to show result of math on layer preview for each plate, but it is also not that useful.
Offline
No, there is a big obstacle to implement it. Usually you are free to use any of available variables in gcode boxes. But if we calculate the value when you edit box, it would not be possible to guess what we should put instead of variables. Another alternative is to show result of math on layer preview for each plate, but it is also not that useful.
I was thinking of a literal separate page. Just a stand alone page like a "formula sandbox" that would help you develop formulas. Don't link it to anything, just have it spit out the results of the math operations given user input. One box for formula input, and several boxes to supply test values for variables. One box to display the output.
I know it sounds silly, but I promise it would be insanely useful.
Last edited by backXslash (2017-02-28 04:57:49)
Offline
You can check it out on the beta version.
Offline
You can check it out on the beta version.
Love the new tool. I was hoping it would actually *solve* the formula and spit out whatever value NanoDLP is actually going to calculate though, rather than simply substitute the given variable.
The idea is that you can step through a formula and find any issues and fix them before attempting to use it. Sort of a guess-and-check kind of deal.
Offline
Put formula inside { } to see the result instead of replaced values. I have added a note for this one on the latest build.
Offline
Put formula inside { } to see the result instead of replaced values. I have added a note for this one on the latest build.
Would be possible to add a resource to verify the math error in the formula page? like a button that verify like a dry run to see whats returning, printing?
I would like to not start printing until theres no printing error and explorate maths possibilities befere fire it.
due to the fact when you have resin on tank you start print and it could fail at some level, than you have to remove the resin, filter...
its a straight delicate for me, becouse im research materials and i formulate small quantities like 1g 2g samples, so this math tool should be my companion in lab
I see on trello board that is aimed to prevent print failure, i consider to place some attention inside (F)ormula window
A lot of people that would be using nanodlp in future may have lacks in math and it would become time consuming to concatenate when you re working with nano as a research development tool.
Offline
Maybe we could have a box on preview page for each layer which shows all values including what will happens for each box, or what will be send as gcode during printing for individual layers.
Offline
yes for shure, i think its a great ideia inside a preview page, we always need to open a separate tab to define the strategy layers , its clever to integrate it inside preview page.
group layers would be trickier too, as we have burn-in and normal layers we also would have add-sectors incremently added on demand just as plates.
Offline
preview tab would be a layering strategy page
Offline
Scipy library could handle diferential equations with the avaliable [[variables]] as inputs?
Offline
Something like what Photonic3d does with Test button. It plots a graph for formula.
Offline
Same printing logic will convert every configurations to commands but instead of sending those to hardware, they will displayed on preview layer.
Offline
it will be fancy
Last edited by 1125lbs (2017-06-27 03:04:14)
Offline
Pages: 1