en:software:qview:qview_6:qcl_library:vc10chronvar

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:software:qview:qview_6:qcl_library:vc10chronvar [2017/01/23 14:40] – [IMPLEMENTAZIONE] qem103en:software:qview:qview_6:qcl_library:vc10chronvar [2019/08/29 17:01] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== VC10ChronVar ======
 +
 +**V = **//Variables//
 +
 +**C = **//Calculation functions//
 +
 +The VC10ChronVar function __determines the total (in hours, minutes and seconds) time in which a flag variable takes the value 1__. 
 +
 +===== IMPLEMENTATION =====
 +
 +**VC10ChronVar (var01, hours, minutes, seconds)**
 +
 +Parameters:
 +
 +^IN/OUT^VARIABLE TYPE^EXAMPLE NAME^DIM^^
 +|  IN  |  GLOBAL /\\ INPUT /\\ OUTPUT  |  var01  |  F  |Variable to analyze|
 +|  OUT  |  SYSTEM  |  hours  |  L  |Hours (activating variable)|
 +|  OUT  |  SYSTEM  |  minutes  |  L  |Minutes (activating variable)|
 +|  OUT  |  SYSTEM  |  seconds  |  L  |Seconds (activating variable)|
 +
 +=== Example ===
 +
 +In the axample the var01 variable is reset after it has been active for at least 5 hours.
 +
 +**VC10ChronVar (var01, hours, minutes, seconds)**
 +<code QCL>
 +IF (hours GE 5) AND (minutes GE 30)
 + var01 = 0
 + hours = 0
 + minutes = 0
 + seconds = 0
 +ENDIF
 +</code>
 +
 +=== Note ===
 +
 +  * The function should be placed at a point of the application that runs on every round makes sense in order to be effective.