Real-Time Calculations
This section describes all operations that a Subscription access level user can perform with Calculations (Real-Time).
What are Real-Time Calculations in Facts?
Real-time calculations in Facts are essential for dynamic data processing, enabling immediate analysis and response to data as it is received from connected devices. This feature ensures that organizations can make timely decisions based on the most current information, enhancing operational efficiency and agility. Real-time calculations can handle a variety of data inputs and perform operations ranging from simple transformations to complex computations using familiar Excel formulas. The platform supports the creation, editing, testing, and deletion of these calculations, with flexible triggering options such as time-based Cron expressions or event-based triggers. Additionally, significant data changes can automatically trigger outbound events, ensuring prompt notifications and actions. This powerful functionality is crucial for applications like industrial automation, energy management, and smart infrastructure, where real-time insights are vital for maintaining efficiency and proactive system management.
What can we do with Real-Time Calculations in Facts?
-
Create Real-Time Calculations: This includes setting up new real-time calculations, modifying existing ones, and removing outdated calculations. These calculations can range from simple data processing to complex operations based on specific formulas and schedules.
-
Create Events: When creating a real-time calculation, you can choose whether you want it to trigger an event or not. Click here to know more about Events.
Procedures
Create a Real-Time Calculation
- Navigate to the Calculations section.
- Click on the Real-Time tab.
- Click the "+" symbol to add a new real-time calculation.
- Provide a name for the calculation in the Name field.
- Enter a description in the Description field.
- Choose Real-time as the triggering type from the Triggering Type dropdown menu.
- (Optional) Check the Outbound Events box if this calculation should produce an event.
- Select Twins from the dropdown menu.
- Select the required Inbound and Outbound capabilities from the respective dropdown menus.
- Download the provided Excel template and apply the relevant calculations using standard Excel formulas tailored to your requirements.
- Upload the completed Excel file back to the platform.
- (Optional) Click on Test to test your calculation.
- Click Create to finalize the setup.
Create a Time-Triggered Calculation
- Navigate to the Calculations section.
- Click on the Real-Time tab.
- Click the "+" symbol to add a new real-time calculation.
- Provide a name for the calculation in the Name field.
- Enter a description in the Description field.
- Choose Time-Triggered as the triggering type from the Triggering Type dropdown menu.
- Define the schedule using the Cron Expression field or the Cron Expression Editor.
- (Optional) Check the Outbound Events box if this calculation should produce an event.
- Select Twins from the dropdown menu.
- Select the required Inbound and Outbound capabilities from the respective dropdown menus.
- Download the provided Excel template and apply the relevant calculations using standard Excel formulas tailored to your requirements.
- Upload the completed Excel file back to the platform.
- (Optional) Click on Test to test your calculation.
- Click Create to finalize the setup.
Test a Calculation
- Navigate to the Calculations section.
- Click on the Real-Time tab.
- Select the calculation you want to test.
- Click the three dots "(...)" and select Edit.
- Click on the Test.
- Provide the necessary input data in the Input Data field.
- Click Test to run the calculation and verify the accuracy and functionality of your real-time data processing.
Update a Real-Time Calculation
- Navigate to the Calculations section.
- Click on the Real-Time tab.
- Select the calculation you want to update.
- Click the three dots "(...)" and select Edit Calculation.
- Modify the necessary details, such as the name, description, devices, triggering type, capabilities, and Excel file with rules.
- Click Update to save your changes.
Delete a Real-Time Calculation
- Navigate to the Calculations section.
- Click on the Real-Time tab.
- Select the calculation you want to delete.
- Click the three dots "(...)" and select Delete Calculation.
- Confirm deletion by clicking YES.
Archive a Real-Time Calculation
- Navigate to the Calculations section.
- Click on the Real-Time tab.
- Select the calculation you want to archive.
- Click the three dots "(...)" and select Archive.