Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

SIGGEN syntax

Syntax is (without the spaces):

function amplitude +/- y-offset @ period +/- x-offset (in seconds)

e.g. sin10-30@600-3600 — sinewave of amplitudes -10 and 10; offset by -30 (i.e. between -40 and -20); period of 600 seconds; offset by -3600 seconds (1 hr)*

Function supported are:

  • sin (sine)
  • cos (cosine)
  • saw (saw wave)
  • sq (square wave)
  • sc (S-curve)

Have a look at the example in the "Production vs Target" graph (top right) to see how the target production throughout the day can be calculated


To create just static trends of a single number write

siggen/7

Tip if you would like to trend it you need to place it in calc function say add

eg calc



Epm macro trendmultichart
config\{\"promptIfDirtyClose\":true,\"layout\":0,\"height\":800,\"width\":0,\"seamless\":false,\"sync\":false,\"charts\":[\{\"trends\":[\{\"type\":\"datatag\",\"name\":\"calc/ADD(siggen/7)\",\"value\":\"calc/ADD(siggen/7)\",\"description\":\"\",\"metaData\":\{\},\"hidden\":false,\"status\":\{\"_params\":\{\"contexts\":\{\}\}\},\"units\":\"\",\"enumerated\":null,\"replacements\":\{\},\"localData\":[]\}],\"axes\":[\{\"side\":\"left\",\"num\":0,\"min\":\"auto\",\"max\":\"auto\",\"format\":\"auto\",\"step\":\"auto\",\"units\":\"\",\"colour\":\"#1f77b4\",\"type\":\"smooth\",\"reference\":null,\"stacked\":false,\"style\":1,\"linestyle\":1,\"lineWidth\":1.5,\"hideFuture\":false\}],\"modes\":[\{\"mode\":\"interpolated\"\}],\"bounds\":[1527153600000,1527239999514],\"live\":true,\"liveOffset\":\"\",\"liveSnapTo\":\"\",\"sync\":false,\"title\":\{\"main\":\"\",\"sub\":\"\",\"fgcolour\":\"#333333\",\"bgcolour\":\"#ffffff\",\"size\":\"24\",\"alignment\":\"center\"\},\"seamless\":false,\"locked\":true,\"tz\":\"Europe/Oslo\",\"ampm\":false,\"numPoints\":1000,\"savedPoints\":[],\"type\":\"line\",\"allowExternalChanges\":true,\"scaleToFillHeight\":false,\"noLabelPrefixes\":false,\"hideLegend\":false,\"hideYAxes\":false,\"hideXAxes\":false,\"isTimeBased\":true,\"invertAxes\":false,\"includeStats\":false\}],\"vars\":\{\},\"tags\":[]\}