Formula editor
This chapter describes how to create, import, and export formulas in the Formula editor of the FLIR Thermal Studio application. For more information, see the appendix Working with formulas in FLIR Thermal Studio (available online, see section Online documentation).
General
By using formulas, the user can carry out advanced calculations in the reports based on information from the thermal images. A formula can include all mathematical operators and functions, and it is possible to export formulas from one report and then import them into another report.
The FLIR Thermal Studio application comes with a set of predefined formulas. If these formulas do not meet your requirements, you can create your own. Create them from scratch or use one of the predefined formula as a basis.
The formulas are created, edited, imported, and exported in the Formula editor.
Open the formula editor
Select the Reporting tab.
Open a report or reporting template.
To display the elements pane, do the following:
When editing a report, click Add field on the top toolbar.
When editing a reporting template, click Add page element on the top toolbar.
In the elements pane, select the Thermal tab, and then click the Formula field. The field is added to the report page and its settings are available in the properties pane.
In the properties pane, click the button with three dots to the right of Expression. This opens the formula editor in a separate window.
Create a formula
Open the formula editor, see section Open the formula editor.
In the formula editor window, click Create. A formula named Formula [X] is created and listed in the Stored formulas list.
Click the new formula. The Editor section appears at the bottom of the window.
In the Title text box, type the name of the formula.
In the Expression text box, define the expression of the formula.
In the Precision text box, type the number of decimal places to be used for accuracy.
To save the formula, click Save.
Import a formula
Open the formula editor, see section Open the formula editor.
In the formula editor window, click Import.
In the Open window, browse to the formula file (.json) that you want to import, and then click Open.
The imported formulas are listed in the Stored formulas list.
Export all formulas
Open the formula editor, see section Open the formula editor.
In the formula editor window, click Export.
In the Save as window, browse to the folder were you want to store the exported formula file (.json), and then click Save.
Delete a formula
Open the formula editor, see section Open the formula editor.
In the Stored formulas list, point to the formula to be deleted, and then click the trash bin that appears on the row. The formula is removed from the Stored formulas list.
Use predefined formulas
The following predefined formulas are available:
Difference in temperature from first image
The difference between the maximum temperature and the minimum temperature of the first thermal image on the current report page. The calculated temperature is shown in blue text.
Difference in temperature from second image
The difference between the maximum temperature and the minimum temperature of the second thermal image (Img2) on the current report page.
Difference in temperature between two spotmeters
The difference in temperature between spotmeter 1 (Sp1) and spotmeter 2 (Sp2) of the first thermal image (Img1) on the current report page.
Difference in average temperature between boxes from two thermal images
The difference in average temperature between box 1 (Bx1) of the first thermal image (Img1) and box 1 (Bx1) of the second thermal image (Img2) on the current report page.
Default rating formula
The formula compares the maximum temperature of box 1 (Bx1.Max) and the temperature of spotmeter 1 (Sp1). By using the temperature differences defined in the formula, one of the texts Normal (lime green text), Investigate (orange text), Repair next time (orange text), or Repair immediately (red text) will appear on the report page.
Reset the predefined formulas
The predefined formulas are editable. If you change (e.g., by mistake) and need to reset them, follow this procedure.
Any custom formulas need to be removed. Make sure that you have exported them so that you can reimport them afterwards.
Open the formula editor, see section Open the formula editor.
In the formula editor window, click Restore.