en:software:qview:qview_6:qcl_library:bc10initbuf

Differences

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

Link to this comparison view

en:software:qview:qview_6:qcl_library:bc10initbuf [2017/02/07 16:59] – created qem103en:software:qview:qview_6:qcl_library:bc10initbuf [2019/08/29 17:01] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== BC10InitBuf ======
 +
 +**B = **//Buffer//
 +
 +**C = **//Calculation functions//
 +
 +The BC10InitBuf function __executes the initialization of a ring buffer__.\\
 +The function requires that you pass the name of the array that serves as a ring buffer and returns a value to the variable ErrCode in case there is an error.
 +
 +===== IMPLEMENTATION =====
 +
 +**BC10InitBuf (Buffer, ErrCode L)**
 +
 +Parameters:
 +
 +^IN/OUT^VARIABLE TYPE^EXAMPLE NAME^DIM^^
 +|  IN  |  ARRSYS  |  Buffer  |  B/W/L/ |Array containing the Buffer|
 +|  OUT  |  GLOBAL  |  ErrCode  |  F  |Error Flag (see below)|
 +
 +==== Error ====
 +
 +ErrCode variable\\
 +0 = No error\\
 +1 = Array dimension less than 3 elements
 +
 +=== Example ===
 +
 +<code QCL>
 +INIZ:                 
 +     BC10InitBuf (Buffer, ErrCode)
 +MAIN:                 
 + WAIT 1
 + JUMP MAIN
 +END
 +</code>
 +
 +=== Note ===
 +
 +  * The function must be called at least once (not necessarily every time, just once in a lifetime of the application) if you wish to use the functions __BC10PushBuf__ or  __BC10PopBuf__.