What is a script?

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 running several virtual sensors. They are managed in the innius Admin app.

To access or create a script, select your machine in the innius Admin app.  If you want to add a script, select the "Scripts" tile, click on the dot_icon.png(1) icon and press the button "Add script" (2). If you want to access an existing script, click on the "Scripts tile" and select which one you wish to edit.

 

Scripts_1.png

 

    • Related Articles

    • Using the script editor

      Virtual sensors produce data based on scripts, made in the script editor. We recommend you first make your sensors in the normal way, before creating scripts. Scripts can then be accessed on the machine page in the Admin app. The drop down panel ...
    • 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 ...
    • The script language

      This article explains the script language. If you are looking for information about how to navigate around the script editor page, it is suggested you read Using the script editor and to take a look at the script examples and Essential knowledge for ...
    • Script examples

      Here are some script examples: Script 1 This script is calculating a total counter value. Where the sensor 'CO' is the calculated sensor. The current value is calculated based on the value of the previous timestamp and the value of sensor 'BA' is ...
    • 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 ...