« Back to Product

Documentation

AC_SetLoggingStatus

Require: IP-Symcon >= 3.0

 boolean AC_SetLoggingStatus (int $InstanceID, int $VariableID, boolean $Active) 

Parameters

InstanceID

ID for the archive

VariableID

ID of the variable to be queried

Active

True if the logging of the variable is to be activated, otherwise False.

Returns

True if successful, otherwise False

Description

This function changes the property for logging the variable with the ID VariableID to Active.

Warning

The logging of the variables is activated immediately, but since the current value and changes to the variables are logged asynchronously, it is possible that these are not directly available when a script is executed. A possible workaround for this is to use the sleep command

Example

// Sets the property of the "test variable" for logging to true
AC_SetLoggingStatus(39147 /*[Archive]*/, 53716 /*[TestVariable]*/, true);
Any questions?