en:software:qview:qview_6:qcl_library:vi10getunusedbuffersize

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

VI10GetUnusedBufferSize

V = Vector

I = Image

Function that is used to manage the Vector Image feature (object that resides on some Qpaint versions).

The VI10GetUnusedBufferSize function used to get the number of unused Buffer elements.
The buffer size is specified as the number of items directly in defining the array in the configuration file. Not all array buffer will be used for drawing operations, only part of it is actually used to process transactions. The part that is not used you learn through this function.

VI10GetUnusedBufferSize (awBuffer, Elem)

Parameters:

IN/OUTVARIABLE TYPEEXAMPLE NAMEDIM
IN ARRSYS /
ARRGBL
awBuffer W Array that serves as a buffer for instructions/data
OUT GLOBAL Elem W A variable that contains the number of elements not exploited in the Buffer

Example

TASK_00

MAIN:
 
VI10InitBuffer (awBuffer)				;Initializes the Buffer
 
VI10GetUnusedBufferSize (awBuffer, Elem)         	;Counts the number of items that aren't used in the buffer
 
glElemNoUsed = Elem	  			        ;Copy number of unused in a variable
 
.... 
 
WAIT 1
JUMP MAIN
 
END

Note

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