Overview
The variable configuration module allows you to:- Create and manage monitoring variables
- Define variable properties (name, unit, process)
- Mark variables as calculated or measured
- Filter and search variables by attributes
- Associate variables with charts and diagrams
Variable Properties
Unique identifier for the variable (e.g., “Tank_A_Level”, “Pump_1_Flow_Rate”)
Unit of measurement for the variableCommon Units:
- Volume:
L,m³,gal - Pressure:
bar,psi,kPa - Flow:
L/min,m³/h,GPM - Temperature:
°C,°F,K - Percentage:
%
Indicates if the variable is calculated from other variables or directly measured
true= Calculated/derived valuefalse= Direct sensor measurement
Process area or system component the variable belongs toExamples:
- “Pre-treatment”
- “Filtration”
- “Chlorination”
- “Distribution”
- “Storage”
Creating Variables
Enter Variable Details
Fill in the variable properties in the modal form:
- Name (required)
- Unit (optional)
- Process (optional)
- Calculation flag (optional)
Variable Table
The variables table displays all configured variables with the following columns:| Column | Description |
|---|---|
| ID | Unique variable identifier |
| Nombre | Variable name |
| Unidad | Unit of measurement |
| Cálculo | ”Si” if calculated, “No” if measured |
| Proceso | Associated process area |
| Acciones | Edit and Delete buttons |
/src/modules/ConfigVars/views/Vars.jsx:54-96
Filtering Variables
The system provides powerful filtering capabilities to quickly find variables:- By Unit
- By Calculation Type
- By Process
Filter variables by their unit of measurement. The dropdown automatically populates with all units currently in use.
/src/modules/ConfigVars/views/Vars.jsx:120-141
Editing Variables
Deleting Variables
API Integration
Variables are retrieved and managed through the following API endpoints:Get All Variables
Delete Variable
/src/modules/ConfigVars/views/Vars.jsx:22-53
Variable Usage
Variables are used throughout the Centinela system:In Charts
In Charts
Variables are assigned to charts to visualize real-time and historical data. Each chart type requires specific variable configurations.Example:
In Diagrams
In Diagrams
Variables can be overlaid on diagram images to show live values at specific locations. Position and display style are configurable.Data Structure:
In Alarms
In Alarms
Variables are monitored by alarms to trigger notifications when values exceed thresholds.Reference: See Alarm Configuration for details.
Data Structure
Variables retrieved from the API have the following structure:Best Practices
Naming Conventions
Naming Conventions
Use clear, descriptive names that include:
- Equipment/location identifier (e.g., Tank_A, Pump_2)
- Measured parameter (e.g., Level, Flow, Pressure)
- Avoid spaces; use underscores or camelCase
Tank_A_LevelPump_2_Flow_RateFilter_1_Pressure_Drop
var1tempa level
Process Organization
Process Organization
Group related variables under consistent process names:
- Use standardized process names across the facility
- Create a process hierarchy if needed
- Document process definitions
Calculated Variables
Calculated Variables
When creating calculated variables:
- Mark them with
calc: true - Document the calculation formula separately
- Ensure source variables exist and are accurate
- Consider using appropriate units for derived values
The variable table supports pagination (10 items per page) and full-text search across all columns. Use these features to navigate large variable sets efficiently.
Troubleshooting
Variable Not Appearing in Charts
Variable Not Appearing in Charts
Cause: The variable may not be properly registered in InfluxDB.Solution:
- Verify the variable exists in the variables table
- Check that data is being written to InfluxDB for this variable
- Refresh the chart configuration page
Filter Returns No Results
Filter Returns No Results
Cause: Filter combination too restrictive or no matching variables.Solution:
- Clear filters and apply them one at a time
- Verify the filter values exist in the database
- Check for typos in manually entered process names
Cannot Delete Variable
Cannot Delete Variable
Cause: Variable is referenced in charts, alarms, or diagrams.Solution:
- Identify all references using search
- Remove or reassign references
- Then attempt deletion again
