Without being a programmer, do you think that Dplot could be customized for a specific task, this task being applied to a whole data bank with files having exactly the same format but of course, different numerical values![size=18][/size][color=red][/color]
If the operation that you want to perform can be accomplished with a macro, then you can apply that same operation to multiple files without any changes to the current version. For an example see the Help topic "How do I print several documents unattended?" - There's an example that prints all files of a specific type in a given folder. Instead of FilePrint(), substitute whatever operation you want and add a FileSaveAs() to save your work. For example, this:
Directory("C:\MYDATA")
FileType(4)
ForFilesIn("*.CSV")
SelectCurve(-1) 'Operate on ALL curves
EditOperateY("Y*2") 'Multiply amplitudes by 2
FileSaveAs(1,"") 'Save results in a DPlot file
FileClose()
NextFile
Opens all .CSV files in the folder "C:\MYDATA", multiplies the amplitudes of all curves by 2, then saves the document as a DPlot file with the same filename and an extension of .GRF.
If this isn't what you had in mind, a bit more info would be helpful.
As a first suggestion, would it be possible to ad directly a notepad with Dplot toolbar?
and about the following, I will prepare a typical routine for text files, systematic smoothing windows applied on all data with number of points=5, systematic polynomial fitting of order 6 ( all data), and then applying A+B*exp(C*x)+D*exp(E*X) to all values and finally apply A+B*exp(C*x) ( apply on first 15 points) )? and ultimately keeping value of C previously found and apply A+B*exp(C*X) on next 15 points ?
As a first suggestion, would it be possible to ad directly a notepad with Dplot toolbar?
I'm sorry, but I'm not at all sure what you're asking for here. Do you want a) a new button on the toolbar which launches Windows Notepad? b) a new button on the toolbar which opens a DPlot-owned edit control similar to Notepad? c) something else entirely? And what do you see as the use of this?
and about the following, I will prepare a typical routine for text files, systematic smoothing windows applied on all data with number of points=5, systematic polynomial fitting of order 6 ( all data), and then applying A+B*exp(C*x)+D*exp(E*X) to all values and finally apply A+B*exp(C*x) ( apply on first 15 points) )? and ultimately keeping value of C previously found and apply A+B*exp(C*X) on next 15 points ?
The curve fit routine you're interested in is a plugin, and there is currently no way to pass the information required to do what you want to a plugin. Nor is there a way to get the information you want (fit coefficients) out of a plugin. This will require quite a few changes to the plugin interface - I'll do this, but it will likely be a while before this is ready.
Yes, exactly a simple notepad , eventually proper to Dplot in order to paste the values of the coefficients and corelation coefficients, model of function applied!
About the automation, yes, you are right it might be difficult, but would it be easier to have a specific recorder for Dplot and like when we record a VBA macro with Excel?
Thanks a lot and congratulations!
[quote="DPlotAdmin"][quote]As a first suggestion, would it be possible to ad directly a notepad with Dplot toolbar?[/quote]
I'm sorry, but I'm not at all sure what you're asking for here. Do you want a) a new button on the toolbar which launches Windows Notepad? b) a new button on the toolbar which opens a DPlot-owned edit control similar to Notepad? c) something else entirely? And what do you see as the use of this?
[quote]and about the following, I will prepare a typical routine for text files, systematic smoothing windows applied on all data with number of points=5, systematic polynomial fitting of order 6 ( all data), and then applying A+B*exp(C*x)+D*exp(E*X) to all values and finally apply A+B*exp(C*x) ( apply on first 15 points) )? and ultimately keeping value of C previously found and apply A+B*exp(C*X) on next 15 points ?[/quote]
The curve fit routine you're interested in is a plugin, and there is currently no way to pass the information required to do what you want to a plugin. Nor is there a way to get the information you want (fit coefficients) out of a plugin. This will require quite a few changes to the plugin interface - I'll do this, but it will likely be a while before this is ready.[/quote]
Yes, exactly a simple notepad , eventually proper to Dplot in order to paste the values of the coefficients and corelation coefficients, model of function applied!
Ah, well you can already do what you mentioned here. When using the "More curve fits" plugin, on the "Curve Fit Results" dialog highlight the text you want to copy with your mouse, then right-click on that text and select "Copy". If you want to paste that information onto your plot, once you exit the plugin and get back to your plot click the Note button (or select the Text>Add/Edit Note menu command), click "Add Note", and in the "Note" box right-click and select "Paste". Of course this text can be pasted into any other application that accepts text from the clipboard.
About the automation, yes, you are right it might be difficult, but would it be easier to have a specific recorder for Dplot and like when we record a VBA macro with Excel?
A macro recorder might be a useful idea in general, but recording user actions in DLL's separate from DPlot (which the curve fit plugin is) would be a complex problem subject to too many errors. At least... that's my short answer. I'll take a harder look at this as time allows.
A macro recorder might be a useful idea in general, but recording user actions in DLL's separate from DPlot (which the curve fit plugin is) would be a complex problem subject to too many errors. At least... that's my short answer. I'll take a harder look at this as time allows.
I'd love a Macro Recorder.... Like Excel's VB one. Even a simple one wold be great, for simple tasks, for simple me.