How to configure a virtual sensor

How to configure a virtual sensor

A virtual sensor acts like a physical sensor in the sense that it produces data, but is based on data from another sensor or sensors via a script. To create a new virtual sensor for your machine, you first need to define it.

Do this in the Admin app by selecting the machine from your machine overview and select the tile Sensors. Click the dot_icon.pngicon (1) and click on the “Add sensor” (2) button.

 

Virtual_sensors_1.png

 

You will be taken to the sensor definition page.

 

Virtual_sensors_2.png

Now work from top to bottom, filling out the necessary fields as follows:

Sensor kind: Choose “Virtual.”

Sensor name: Give your sensor a unique name. Keeping the name as short as possible will help ensure it fits within the sensor name space in various parts of the application. 

Description: Describe in as few words as possible what this sensor is going to do. This will help ensure you don’t get confused between different sensors.

Sensor group: Assign a group to the sensor. This will allow all the sensors to be categorized when displayed in the innius Insight app. You can select a group or create a new one by entering the name of the group.

Data frequency: Select the frequency at which your sensor will produce data. To ensure that the script picks up on every input value, select a frequency that is equal to or faster than the frequency of the fastest input sensor.

Sensor data type: Choose one of the following options (note that once a sensor has produced data, it is no longer possible the change the data type);

  • Continuous values, if the virtual sensor creates measurement data
  • Discrete values, if the virtual sensor creates values that are limited to predefined options, such as 0 and 1

Value format: Here you can enter the unit of measure, such as Kg, € or Liter.

Decimal places: The value created by the virtual sensor will be displayed in the Insight App with the number of decimals defined here.

If you have finished, click “save” to save your virtual sensor. 

 

With the above definitions you have created your virtual sensor, although to make it operational you will need to create a script to give it a value. Refer to the article about Using the script editor

    • Related Articles

    • Essential knowledge for configuring scripts

      When making scripts, time [t] is a very important aspect. The following points should be taken into consideration: The timestore When referencing back to previous values (e.g. IN[t-1] for sensor IN), the script gets these values from a sensor's ...
    • An introduction to sensors

      A sensor in innius collects data. You can configure four types of sensors in innius: Physical sensors Virtual sensors Manual sensors Time-based sensors A physical sensor is an actual sensor or datapoint within your machine, which provides raw data to ...
    • How to configure a physical sensor

      To start using one of your machine’s physical sensors or datapoints in innius, you first need to configure a physical sensor. Do this in the Admin app by selecting the machine from your machine overview and select the tile Sensors. Click the icon (1) ...
    • Exporting and importing sensors

      The ability to export and import sensors, gives you the ability to very easily copy sensor configurations between machines. For instance if you have two identical machines, both with twenty identical sensors, you can configure the sensors for one ...
    • What is a script?

      Scripts are simple computer programs which process and manipulate sensor data in real time. In the context of innius a script is a prerequisite for virtual sensors to produce real-time data. Scripts are associated with a specific machine, and may be ...