TPMStartConditionCallback Property
General info
Label |
Start Condition Callback |
Description |
Custom callback to define monitor start event trigger. |
Data type |
String |
Default value |
"return function() return false end" |
Type |
Regular |
Code |
12899 |
Symbolic name |
MODEL_PROP_TPMSTARTCONDITIONCALLBACK |
Lua access code |
syslib.model.properties.TPMStartConditionCallback |
Available since |
1.78 |
- Parent properties
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. |
| PROP_HAS_DEFAULT | The property has a default value as standard. |
Examples
Read from or write to the TPMStartConditionCallback property.
-- Read from the TPMStartConditionCallback
syslib.getvalue("<OBJECT FULL PATH>.TPMProcessingOptions.TPMTriggerOptions.TPMCallbackOptions.TPMStartConditionCallback")
-- Write to the TPMStartConditionCallback
syslib.setvalue("<OBJECT FULL PATH>.TPMProcessingOptions.TPMTriggerOptions.TPMCallbackOptions.TPMStartConditionCallback", "return function() return false end")
TcpConfig tcpcfg = new TcpConfig() { HostNameOrIp = "localhost", Port = 6512 };
SecurityCredentials sc = new SecurityCredentials() { ProfileName = "<username>", Password = "<password>" };
StatelessInterface sli = new StatelessInterface(tcpcfg);
// Read from the TPMStartConditionCallback
Result result = sli.ReadValue(sc, new ReadItem("<OBJECT FULL PATH>.TPMProcessingOptions.TPMTriggerOptions.TPMCallbackOptions.TPMStartConditionCallback"));
// Write to the TPMStartConditionCallback
Result result = sli.WriteValue(sc, new WriteItem("return function() return false end", "<OBJECT FULL PATH>.TPMProcessingOptions.TPMTriggerOptions.TPMCallbackOptions.TPMStartConditionCallback"));