What Is a Custom Equation and When Can It Be Used?

A Custom Equation allows SiteView to convert or process a data logger’s input readings into the engineering values required by your application.

Custom Equations are created using C# source code and can be used when the built-in equations do not meet your measurement or data-processing requirements.

For example, a Custom Equation can be used to:

  • Convert a sensor output into engineering units
  • Apply a sensor-specific conversion formula
  • Perform calculations on measured data
  • Create specialized conversions that are not available in SiteView’s built-in equations

Create a Custom Equation

1. Open the Equation Dialog

Click Equation on the main SiteView toolbar.

2. Create a New Equation

In the Equation dialog, click:

Create

Enter a Name and Description for the new equation.

3. Configure the Equation

If your application requires a linear conversion, enter the corresponding Input and Output values.

For example:

Minimum Input Value:   0
Maximum Input Value:   10

Minimum Output Value:  0
Maximum Output Value:  5000

This example linearly converts an input range of 0–10 to an output range of 0–5000.

Select the appropriate Unit for the calculated value.

If the required unit is not available, create it first in the Unit Category dialog.

4. Save the Equation

Click OK to return to the Equation dialog.

The new equation will appear in the equation list on the left, and its contents will be displayed in the panel on the right.

Click Apply to save the new equation.

Assign a Custom Equation to a Logger Channel

Open the data logger’s Configuration dialog.

In the Equation column for the desired channel, open the drop-down list and select the Custom Equation you created.

Click Apply to save the configuration to the data logger.

The selected channel will now use the Custom Equation to convert or process its readings.