10-28-2013 03:31 PM
Hello,
I am using a cRIO-9074 to move a Newport Stage. I want to do repeated movements in a Timed Loop (synchronized with scan engine).
My code looks like the following:
My code should do the following:
1) Press Execute on Front Panel and enable axis/drive with Power function block
2) Power function block will send Done/True when enable axis/drive is complete
3) True goes into case structure and makes loop wait a predefined amount of time
4) After waiting - True is sent to Straight-Line Move function block
5) Once move is complete, Straight-Line Move function block outputs Done/True which is sent to Feedback Node
6) On next scan engine loop True from Feedback node is sent into case structure, process should repeat
Currently what is happening is the move only executes once. I believe this is because the Straight-line move function block only executes on the rising edge of True and my code remains true after the first execute.
I have looked through the NI example "Blending Multiple Axis Line Moves" and it uses the Feedback Node as well.
Does anyone know how to get the move to repeat instead of executing just once?
Thanks for help,
Kyle
Solved! Go to Solution.
10-29-2013 05:19 AM
You should be able to AND the execute input of the move with NOT Done from the feedback node.
10-30-2013 02:49 PM
Thanks for your input.
Here is how I solved the issue: