« Back to Product

Documentation

IPS_GetLimitWebFront

 int IPS_GetLimitWebFront ()

Returns

Maximum number of visualizations per type. 0 means unlimited.

Description

Warning

This function is intended for internal use only and may change or be removed at any time without notice.

The function returns the maximum number of visualization instances that can be configured with the active license. The limit applies separately to WebFront and tile visualizations. If it is 0, the number is not limited. In demo mode without a valid license, the limit is 5.

With a limit of 1, some functions are only available with Symcon Professional/Symcon Unlimited ("This function is only available with Symcon Professional/Symcon Unlimited"). If there are more visualizations than the limit allows, their configuration fails with a corresponding error.

Older licenses do not contain an explicit limit for visualizations. If the number of variables is limited there, 5 is returned.

Example

$limit = IPS_GetLimitWebFront();
if ($limit == 0) {
    echo "Unlimited number of visualizations";
} else {
    echo "At most " . $limit . " visualizations per type";
}
Any questions?