ssc_enableKPIInst()

The function enables KPI instances.

Synopsis

void ssc_enableKPIInst(const dyn_string kpiInsts);

Parameters

Parameter Description
kpiInsts Instances that should be enabled.

Return Value

0 (void)

Description

The function enables KPI instances. Enabled KPI instances are calculated at runtime. This means that the connection to the data points is built and the check boxes in the KPI associate panel are checked.

Example

The function enables the KPI instances "kpi_System1__ssc_demo_drive1_myNewKPI" and "kpi_System1__ssc_demo_drive2_myNewKPI".

main()
{
  const dyn_string kpiInsts;
  dyn_string kpiInsts =
  makeDynString("kpi_System1__ssc_demo_drive1_myNewKPI",
  "kpi_System1__ssc_demo_drive2_myNewKPI");
  ssc_enableKPIInst(kpiInsts);
}
Figure 1. The function enableKPIInst() enables the KPI instances and checks the check boxes

Assignment

KPI functions

Availability

SmartSCADA