en:software:qview:qview_6:qcl_library:bc21inspect

This translation is older than the original page and might be outdated. See what has changed.

BC21Inspect

B = Buffer

C = Calculation functions

The BC21Inspect function allows you to acquire a data in FIFO memory without affecting the memory. The data is not extracted but only acquired. Through the input variable index you can capture a different data other than the first inserted, index represents the number of operations would be required to extract the data with the BC21Pop function.

BC21Inspect (Buffer, Index, Element, ErrorCode, head, tail)

Parameters:

IN/OUTVARIABLE TYPEEXAMPLE NAMEDIM
IN ARRGBL/ ARRSYS Buffer B/W/L/S Array containing the Buffer
IN GLOBAL Index L Variable containing the index of the value to be captured. It is the number of operations required to extract data from the FIFO.
IN GLOBAL Element L/S/W/B Variable containing the value to be placed in the buffer
OUT GLOBAL ErrorCode F Variable containing the error possibly occurred during insertion of the value
IN GLOBAL / SYSTEM head L Internal index
IN GLOBAL / SYSTEM tail L Internal index

After calling the function if there are any errors the error (ErrorCode) variable takes the following values:
0 - No error
1 - No data in the FIFO.
2 - Invalid index.

  • Last modified: 2019/08/29 17:01