FPScript
FPScript is a programming language that is particularly easy to learn. You can use this language to program your own analyses. Use FPScript when you want to program your own formulas or functions or as embedded FPScript for accessing data or attributes in presentation objects.
The FlexPro analysis objects are also based on FPScript. However, if you use an analysis object, you do not have to program the FPScript code yourself. Simply configure the analysis via the analysis object's Properties dialog box and FlexPro automatically creates the appropriate FPScript code.
FPScript has been developed specifically for technical/scientific data analysis and offers powerful operators that you can use to calculate individual values as well as entire data series, signals, etc. in a single line. FPScript formulas can provide each of the data structures and data types valid for data objects as the result. In particular, aggregate data structures consisting of up to three components can be calculated in a single expression.
FPScript not only uses numbers for calculations, but also physical quantities composed of the value and unit. During arithmetical operations the units are adjusted automatically, if necessary, and the unit of the result is derived correctly from the units of the arguments. This eliminates the need for using scaling factors in FPScript expressions as they are required to adjust units when using purely numeric programming languages. Another source of errors is in calculating incompatible units. FPScript recognizes this and outputs an error message.
FlexPro handles formulas that you have written using the FPScript language just like data sets. For instance, you can display the results in diagrams or tables or calculate them in additional formulas or analyses. Therefore, the most common statements in FPScript programs are arithmetical expressions that you can use for calculations. As opposed to common programming languages such as Basic, FPScript allows you to calculate whole data series, signals etc., in addition to scalar values, in one single statement. You do not have to use loop constructs to do this.