RobotStudio event

Large dataset and Rapid.

Hello, 

Im working on a project witch uses matlab to generate points i XYZ, (about 120k  points). I wanna transfor all the points from matlab to rapid. Atm im using an array of 30x3 in rapid, whitch in controll from matlab, its working ok, but every time i have to transfor a new set of points the robot stop. Im looking for some tips on how to speed this prosess up. I have tryed using 2 arrys in rapid, but im having a hard time, getting matlab and rapid in sync.(tryed using a flag to tell rapid what array to use).

Thanks!:)