I configured a position data buffer to use with contouring mode. I intend to use this buffer as an circular buffer an write new data points on demand (due to a large quantity of data). So, I configured this buffer with buffersize = 1000 and totalPoints = 14342 (2D XY coordinates). Inside my write data loop I call flex_check_buffer_rtn to know how many new data points I can safely write without violating the oldDataStop condition. The problem is that this function is returning NIMC_BUFFER_DONE before all those 14342 are written (in this particular case I can only wrote 2322 data points to the buffer) and the card report no errors (modal or non-modal).
I can't figure out why I'm getting NIMC_BUFFER_DONE. With other data points
sets my routine works.
Thanks in advance.