Differences
This shows you the differences between two versions of the page.
en:software:qview:qview_6:qcl_library:bc10initbuf [2017/02/07 16:59] – created qem103 | en: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 = **// | ||
+ | |||
+ | **C = **// | ||
+ | |||
+ | 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/ | ||
+ | | IN | ARRSYS | ||
+ | | OUT | GLOBAL | ||
+ | |||
+ | ==== Error ==== | ||
+ | |||
+ | ErrCode variable\\ | ||
+ | 0 = No error\\ | ||
+ | 1 = Array dimension less than 3 elements | ||
+ | |||
+ | === Example === | ||
+ | |||
+ | <code QCL> | ||
+ | INIZ: | ||
+ | | ||
+ | MAIN: | ||
+ | WAIT 1 | ||
+ | JUMP MAIN | ||
+ | END | ||
+ | </ | ||
+ | |||
+ | === 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__. | ||