06-12-2011 05:45 AM
in my program i need to send array for control 5 servo motors , but i need to send them with delay between each number, it suppose to control pick and place robot, any idea ?
is it possible to apply delay within array? its urgent thanks
06-12-2011 10:06 AM
I get the feeling I am missing something but here you go.
06-12-2011 11:24 AM
Hi thanks for replay , but actually sir i dun think that it works , let me show you my block diagram then you can help better , thanks for your help sir
06-12-2011 11:28 AM
I need delay between arrays, for instance if i send 45 56 78 87 54 for my servo motors (there are five servo motor ), i need delay between this number, if is essential I can make video that how this robot works (working not properly) for better understandgin,
06-12-2011 12:03 PM
@erfan wrote:
I need delay between arrays, for instance if i send 45 56 78 87 54 for my servo motors (there are five servo motor ), i need delay between this number,..,
Your statements are confusing and conflicting. You talk about "this number" but show five numbers. Do you need delays between arrays (as you just said and as your code already does) or delays between the elements of the array?
If you need a delay between the elements, you need to add a small inner FOR loop containing the write node and autoindex over the blue 1D array, similar to steve's suggestion..
If this is not the solution, you need to be much clearer in your description, for example describe in detail how the delay should look, e.g.:
06-12-2011 02:07 PM
Hi i need delay like 45 delay 55 delay 55 delay and so on, between element
06-12-2011 02:13 PM
So, did you try what I suggested above? Any problems?
06-12-2011 10:03 PM
I uses vi like this for a stepper motor
I forgot in this the stop button, but it worked well for me.
Regards
06-12-2011 10:47 PM
hi,
i think Steve's suggest is a good ideal and it can work well.
you can try it.
i used this structure to control my step motor 4 years ago.
06-15-2011 05:02 AM
hi i have followed the suggestion but it doesn't work , here is my program which I attached it , do you have any idea how to apply delay between each element of arrays? I send these arrays for servo motors of my robot, but I dun want that motors move simeltanusly, I need delay between each movement.
thanks