# Virtual sensor settings :id=top

------

> _Doc Ver:_ 1.2   
_App Ver:_ 2.6.6.53   
_Date:_ 09/08/2026

------

> Virtual sensors are used for global reference and statistics of physical-sensor parameters;   
> They can be used for redundant sensor settings;   
> If this option is enabled, virtual-sensor calculation uses 'Type 3' in the Formula interpreter by default, and **demodulation speed is reduced**. To raise sample rate or demod throughput, turn **Enable** off here first, then set the parser back to type `0` on [Improve demodulator speed](improve_sa_speed.md).

------

## 1. Enable  :id=enable

  * Menu > 'Setting' > 'Base' > 'Virtual sensors'
  * Check "Enable", click the "Save" button.

## 2. Sensor settings    :id=setting

  * Menu > 'Setting' > 'Virtual sensor configuration', enter the sensor batch-edit interface;
  * Menu > 'Monitor' > 'List', in the "Virtual sensors" block, click the 'Edit' icon in the upper right corner to enter the virtual-sensor batch-edit interface;
  * Menu > 'Monitor' > 'List', click the link in the "Name" item in the 'List' to enter the single virtual-sensor edit interface;

## 3. Formula editing  :id=formula

>  Functions in 'Type 3' can be used;  
>  References to physical sensors use the same method as physical-value calculation formulas;   
>  Check "Enable" on a virtual sensor to make it effective;   
>  Shown at Menu > 'Monitor' > 'List' > 'Virtual sensors';

  Statistical functions that can be used in formulas:

    1. AVGS&(1,2,3,...): average of physical values of valid sensors, sensor IDs inside '( )'.
    Example: AVGS&(1,2,3,4)
    Meaning: average of the physical values of sensors with ID 1,2,3,4.

    2. AVGS#(1,2,3,...): average of wavelengths of valid sensors, sensor IDs inside '( )'.
    Example: AVGS#(1,2,3,4)
    Meaning: average of the wavelength values of sensors with ID 1,2,3,4.

    3. AVGC&(1,2,3,...): average of physical values of all valid sensors on specified channels, channel numbers inside '( )'. 
    Example: AVGC&(1)
    Meaning: average of the physical values of all valid sensors on channel 1.
    Example: AVGC&(1,2,3,4)
    Meaning: average of the physical values of all valid sensors on channels 1,2,3,4.

    4. AVGC#(1,2,3,...): average of wavelengths of all valid sensors on specified channels, channel numbers inside '( )'.
    Example: AVGC#(1)
    Meaning: average of the wavelength values of all valid sensors on channel 1.
    Example: AVGC#(1,2,3,4)
    Meaning: average of the wavelength values of all valid sensors on channels 1,2,3,4.

    5. RELSTD&(1,2,3,...): population std / mean(|physical value|), sensor IDs inside '( )'. Blade-root η uses `RELSTD&(201,203,205)` / `RELSTD&(202,204,206)`. n≥2; denominator floor 1e-9. Virtual IDs are allowed after they have been evaluated in ID order. [Root load](bladeload.md).

    6. A formula can use more than one statistical function, and can mix them with other supported functions.
    Example: AVGS&(1,2)+AVGC&(2)
    Meaning: the physical-value averages of sensors with ID 1,2 and of all sensors on channel 2.
    Example: max(&1,&2,&3,&4)-min(&1,&2,&3,&4)+AVGC&(3)
    Meaning: the difference between the maximum and minimum of sensors with ID 1,2,3,4 plus the physical-value average of sensors on channel 3.

    7. Redundant sensor setting
    Example: the sensor with ID 4 is the backup of the sensor with ID 3. Failure of any single sensor does not affect the terminal data.
    Setting: AVGS&(3,4)
        
## 4. Display  :id=display

  * Virtual-sensor physical-value display: Menu > 'Monitor' > 'List' > 'Virtual sensors'
  * If virtual sensors are not enabled, this item is hidden.
  * If the data is abnormal, the exception code appears before "Physical value", and the physical value also changes color. The number in "[ ]" is the alarm level; the number in "{ }" is the error code of a calculation error.

## 5. Export on Modbus TCP :id=modbus

  Virtual points are **off** the dense map by default. Addon → Modbus Configure → Include virtual exports virtual `VAL` by SensorID. Sparse `MODBUS_MAP` still exports mapped virtual IDs when that checkbox is off. Protocol: [Modbus TCP slave](modbus_tcp_slave.md).

## Caution     :id=caution   
  If this option is enabled, virtual-sensor calculation uses 'Type 3' in the Formula interpreter setting by default, and demodulation speed is reduced. Types 0 and 1 cannot compute virtual sensors. If you do not need redundant averages or channel stats, uncheck Enable rather than forcing type 0. Full table: [Improve demodulator speed](improve_sa_speed.md#affect).


------

### [Top](#top)
