Thank you for contacting National Instruments. From your description, it sounds like you are running into the problem because the expected error is being generated and causing your application to terminate. If I understand your problem correctly, then it sounds like you simply need to check for and examine the error cluster and handle it appropriately.
You can use the Check Buffer VI to examine the buffer and check how many remaining points are left. When that buffer reaches zero, meaning you have not inputted a new data set yet, then you can handle the error appropriately. I would recommend using a Case Structure where, if an error occurs, you clear out that error using the Clear Errors VI. At this point, you can also begin the constant velocity move that will co
ntinue until you enter in a new set of points. When you enter in the new set, have your application stop the constant velocity and continue on with the next contour move.
It sounds like your code is working and that you just need to add in a little more code to handle the two cases: when an error occurs and when your buffer still has valid points in it. Hopefully this will help give you a few more ideas and let us know if you have any more questions or comments.
Regards,
Michael
Applications Engineer
National Instruments