en:software:qview:qview_6:qcl_library:bc10initbuf

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

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.

BC10InitBuf (Buffer, ErrCode L)

Parameters:

IN/OUTVARIABLE TYPEEXAMPLE NAMEDIM
IN ARRSYS Buffer B/W/L/S Array containing the Buffer
OUT GLOBAL ErrCode F Error Flag (see below)

ErrCode variable
0 = No error
1 = Array dimension less than 3 elements

Example

INIZ:                 
     BC10InitBuf (Buffer, ErrCode)
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.
  • Last modified: 2019/08/29 17:01