09-22-2008 07:12 PM
Hello,
I am trying to send an output every time a vector space position is reached. The motion is usually a multiple number of points (say 6), that repeat for about 120 cycles at 1 Hz. I can get excellent performance with using flex_blend, and it is perfect for application as there needs to be a delay of about 10 ms between each move. At the end of each move a breakpoint needs to be output.
I am using a 7340 controller. As of right now I am not even able to set up a buffer with NIMC_BREAKPOINT_DATA as for some reason it is not supported by this controller. I thought it was. However, even if I set it up, I would need to do this on 2 axes, and I will run a chance of getting multiple triggers (one axis reaching the target position sooner than the other).
I tried using flex_start for every point, instead of just the first one. However, for some reason the flex_check_move_complete returns true way too soon, and the loop to load the points gets disrupted. If I put in a pause between the start and the check move complete, then the loop proceeds fine. For some reason the card returns move complete, before the motion is actually stopped. At any rate this would be suboptimal as I would have to implement the delays in the program rather than on the onboard controller.
Could you please suggest what to do? I also have a 7350 controller as the successor of this current one. Is there an easier solution with it?
Thanks so much!
09-23-2008 06:56 AM
Hi bosonoga,
As breakpoints don't work in a vector space, here is an idea. This idea requires a spare axis:
That's just an idea and I'm sorry, that I can't try this within the next days, but you could give it a try.
Alternative options involve onboard programming or the use of an additional counter board.
I hope this helps,
Jochen Klier
National Instruments
09-23-2008 08:31 AM
Thanks a lot for a quick reply and confirming/clearing up everything:)
I will try this. It would be a shame if I had to wait on move complete in the software just because of breakpoints.
If anyone else has done anything similar successfully, please let us know.
Aleksandra