Skip to content

Data Transfers

Data Transfer periodically transfers variable values from one project to variables in another project. It performs statistical calculations from the source variable and writes the result to the target variable.

Data Transfers

Menu: Development → Data Transfers → New Transfer

FieldRequiredDescription
NameYesTransfer name
ProjectYesAssociated project
PeriodYesExecution period (ms, min: 1000)
DescriptionNoDescription

Each Data Transfer contains multiple transfer details (rows). Each row is a source-target mapping:

FieldDescription
Source VariableSource variable
Target VariableTarget variable
Calculation TypeStatistical calculation type
Range TypeTime range type
ThresholdThreshold value (optional)
TypeDescription
LASTLast value
AVGAverage
MINMinimum
MAXMaximum
SUMSum
COUNTRecord count
DIFFDifference between first and last value
TypeDescription
CURRENTData within the last period interval
PREVIOUSThe previous period interval

Calculating hourly consumption from an energy meter and writing it to another variable:

  • Source: Energy_kWh (cumulative meter)
  • Target: Hourly_Consumption
  • Calculation: DIFF (last - first = hourly consumption)
  • Period: 3600000 ms (1 hour)
  • Source: Temperature_C
  • Target: DailyAvg_Temperature
  • Calculation: AVG
  • Period: 86400000 ms (24 hours)

Aggregating power values from multiple sites into a central project:

  • Source (Project A): Site1_Power_kW
  • Target (Central Project): Total_Power
  • Calculation: LAST
// Start a transfer job
ins.scheduleDataTransfer("hourly_energy_calc");
// Cancel a transfer job
ins.cancelDataTransfer("hourly_energy_calc");

Detailed API: Data Transfer API →