« Back to Product

Documentation

RegisterVariableFloat

Require: IP-Symcon >= 4.0

 int RegisterVariableFloat (string $Ident, string $Name, array $Presentation, int $Position) 

Parameters

Ident

Ident of the status variable

Name

Name of the status variable

Presentation

The configuration of the display as an array. A profile can be set via the Legacy profile.
Default == ""

Position

Position in the object tree and therefore also in the visualization.
Default == 0

Returns

Variable ID of the created status variable

Description

This function creates a status variable of type Float with the ident Ident and the name Name. You can also specify which Presentation is to be used and at which Position the status variable is to be placed.

The structure of the presentations is described in more detail here.

Warning

Presentations can be used from version 8.0. In previous versions, profiles can be set as a string via the Presentation parameter

Example

$variableID = $this->RegisterVariableFloat("Factor", "Zoom Factor Wall Display", ["PRESENTATION"=> VARIABLE_PRESENTATION_LEGACY, "PROFILE" => "Factor.Display"]);
Any questions?