Differences
This shows you the differences between two versions of the page.
en:software:qview:qview_6:qcl_library:bc10arrfifo [2017/02/24 15:51] – created qem103 | en:software:qview:qview_6:qcl_library:bc10arrfifo [2019/08/29 17:01] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== BC10ArrFifo ====== | ||
+ | |||
+ | **B = **// | ||
+ | |||
+ | **C = **// | ||
+ | |||
+ | The BC10ArrFifo function __manages a buffer of first input - first output type__. The function requires an input value in the ' | ||
+ | |||
+ | ===== IMPLEMENTATATION ===== | ||
+ | |||
+ | **BC10ArrFifo (Buffer, elementIn, elementOut, PuntatIn, PuntatOut)** | ||
+ | |||
+ | Parameters: | ||
+ | |||
+ | ^IN/ | ||
+ | | IN | ARRSYS | ||
+ | | IN | SYSTEM | ||
+ | | IN | SYSTEM | ||
+ | | IN | SYSTEM | ||
+ | | OUT | SYSTEM | ||
+ | |||
+ | === Ezample === | ||
+ | |||
+ | Inserts each according to the count value to a device in the buffer (eliminating the first introduced) | ||
+ | |||
+ | <code QCL> | ||
+ | MAIN: | ||
+ | IF tmTimer | ||
+ | tmTimer = 1000 | ||
+ | elementIn = count:posit | ||
+ | BC10ArrFifo (BufferS, elementIn, elementOut, PuntatIn, | ||
+ | ENDIF | ||
+ | </ | ||
+ | |||
+ | === Note === | ||
+ | |||
+ | *If the **PuntatIn** parameter or **PuntatOut** parameter is 0, the function take as value, the first element of the buffer and the last element of the buffer. | ||
+ | *The function executes a WAIT every 150ms. | ||