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.

Create a formula

On the Reporting page:

  1. In the report, click Insert thermal field, and then click Formula editor. A separate window appears.

  2. Click Create. A formula named Formula [X] is created and listed in the Stored formulas list.

  3. Click the new formula. The Editor section appears at the bottom of the window.

  4. In the Title text box, type the name of the formula.

  5. In the Expression text box, define the expression of the formula.

  6. In the Precision text box, type the number of decimal places to be used for accuracy.

  7. To save the formula, click Save and exit.

Import a formula

On the Reporting page:

  1. In the report, click Insert thermal field, and then click Formula editor. A separate window appears.

  2. Click Import.

  3. In the Open window, browse to the formula file (.json) that you want to import, and then click Open.

  4. The imported formulas are listed in the Stored formulas list.

Export a formula

On the Reporting page:

  1. In the report, click Insert thermal field, and then click Formula editor. A separate window appears.

  2. Click Export.

  3. 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

On the Reporting page:

  1. In the report, click Insert thermal field, and then click Formula editor. A separate window appears.

  2. 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.

Note

Any custom formulas need to be removed. Make sure that you have exported them so that you can reimport them afterwards.

On the Reporting page:

  1. In the report, click Insert thermal field, and then click Formula editor. A separate window appears.

  2. In the Stored formulas list, delete all listed formulas.

  3. Click Save and exit.

  4. On the Reporting page, click Formula editor.

  5. The predefined formulas are now restored to the Stored formulas list.