Custom function

DataGraph Forums Technical Support Support Desk Custom function

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #6008
    donal botkin
    Participant

      Is it possible to create a custom function for use in f(x) column operations? To show changes as PPM, I use:

      ((Reading(#+1)/Reading)-1)*1000000

      It would be nice to do something like Reading.ppm to get the same result. I have tried the delta function, however it drops the first row rather than the last and has slightly different results, probably due to rounding in the calculations.

       

      #6013
      dgteam
      Moderator

        Currently, we do not have custom functions or column properties.

        If we add something like this, one detail to think about is what happens when you define a set of custom functions and you send a DataGraph file to someone else that also has defined a set of custom functions – what to do if the defined function for .ppm is not the same?

        We think the solution is that the defined function/property is connected to a file. So rather than a list of functions that you create and chose from every time you open a new file, you have to define the functions it in every file.  With this approach, you can set up a template file that has all of your relevant functions to use as a starting point for a particular analysis.

        Any thoughts on if this would be helpful?

         

        #6022
        donal botkin
        Participant

          Way back in the time when custom fonts were the hot item, not have the font in the document file was troublesome to say the least. So yes, keep the function with the file. It is easy enough to copy the f(x) from one file to another. Having the f(x) formula compiled as a function would be marginally better.

          Some text editors provide macro capability to expand an abbreviation into a sentence or entire paragraph in the final document. Does DataGraph have this?

          I’m still learning–‘tokens’ look useful–perhaps something like that would work. Meanwhile, copy and paste does the job better than retyping, so I’m OK with that.

          #6030
          dgteam
          Moderator

            DataGraph does not have a macro capability like you described.  Maybe the closest would be creating a Text variable .  Then you can include that in any text field (e.g., titles and labels) as a token.

            #6039
            donal botkin
            Participant

              So just to be clear, where are Text Variables stored? Are they Global by definition? If I can create a ‘special text’ that I can tokenize on a series of plots, my problem is solved.

              Thanks

              #6044
              dgteam
              Moderator

                Yes, the Text variables are Global (listed in the bottom left corner) and can be used across multiple plots as a token.  They can also be used in masks.

                Here is an example where the variable serves both purposes (token and mask).

                TextVariable

                Change the text variable, and the data and title are updated.

                TextVariable2

                 

              Viewing 6 posts - 1 through 6 (of 6 total)
              • You must be logged in to reply to this topic.

              DataGraph Forums Technical Support Support Desk Custom function