Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem using PCI 7344 buffer for contouring move

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.
0 Kudos
Message 1 of 3
(3,284 Views)
Can you please post an example of the code you are running here? It would also be useful to get the MAX settings file for your system as it would help us check how you are configuring the board and if this could cause the problem you are seeing. Finally, which versions of the NI-Motion driver and firmware are you using?
0 Kudos
Message 2 of 3
(3,284 Views)
In the attached zip file you will find my settings for MAX, the example code and the data points files pos.txt (this is the one that causes the problem discribed) and posOk.txt. The example program will ask for a data file when you run it.
I'm using NI-Motion 6.1.2 and the firmware versions are:
- 68331 :6.12.3003
- DSP :6.12.3001
- FPGA1: 6.12.3001
- FPGA2: 6.12.3001

Thanks!
0 Kudos
Message 3 of 3
(3,284 Views)