KPIStatusCalcSampleCount Property
General info
Label |
Status Calc Sample Count |
Description |
The number of points used to determine status for SPC KPIs. This value must be equal to, or greater than, the number of points required for each selected WE Rule. |
Data type |
Int32 |
Type |
Regular |
Code |
2083 |
Symbolic name |
MODEL_PROP_KPISTATUSCALCSAMPLECOUNT |
Lua access code |
syslib.model.properties.KPIStatusCalcSampleCount |
Available since |
1.20 |
Attributes
| Name | Tooltip |
|---|---|
| PROP_CONFIGURABLE | The property is configurable and can be changed with DataStudio and the various inmation APIs. |
| PROP_VISIBLE | The property is visible in DataStudio and can be read by the inmation APIs. |
Examples
Read from or write to the KPIStatusCalcSampleCount property.
-- Read from the KPIStatusCalcSampleCount
syslib.getvalue("<OBJECT FULL PATH>.KPIStatusCalcSampleCount")
-- Write to the KPIStatusCalcSampleCount
syslib.setvalue("<OBJECT FULL PATH>.KPIStatusCalcSampleCount", VALUE)
TcpConfig tcpcfg = new TcpConfig() { HostNameOrIp = "localhost", Port = 6512 };
SecurityCredentials sc = new SecurityCredentials() { ProfileName = "<username>", Password = "<password>" };
StatelessInterface sli = new StatelessInterface(tcpcfg);
// Read from the KPIStatusCalcSampleCount
Result result = sli.ReadValue(sc, new ReadItem("<OBJECT FULL PATH>.KPIStatusCalcSampleCount"));
// Write to the KPIStatusCalcSampleCount
Result result = sli.WriteValue(sc, new WriteItem(VALUE, "<OBJECT FULL PATH>.KPIStatusCalcSampleCount"));