« Back to Product

Documentation

AC_GetGraphStatus

Require: IP-Symcon >= 3.0

 boolean AC_GetGraphStatus (int $InstanceID, int $VariableID) 

Parameters

InstanceID

ID for the archive

VariableID

ID of the variable to be queried

Returns

True if the visualization of the variable is active, otherwise False

Description

This function queries whether the variable with the ID VariableID is displayed in the visualization.

Example

// Query the variable "TestVariable"
var_dump(AC_GetGraphStatus(39147 /*[Archive]*/, 53716 /*[TestVariable]*/));
echo AC_GetGraphStatus(39147 /*[Archive]*/, 53716 /*[TestVariable]*/);

/* Sample output
var_dump:
  bool(true)
echo:
  1
*/
Any questions?