05-19-2022 10:16 AM
Hi all,
I'm stuck on a project in which I need to use an array to control the back-and-forth movement of two Servo motors. The array is creating a circular area of values. I already have the array but I have absolutely no clue on how to use it to command the two motors in this fashion.
The issue here being that the servos require a 'distance command' (e.g. FL 20000, where FL = Feed to Length command and 20000 = the number of steps that the motor takes) and I'm unsure of how to do this for more than one linear movement. Could anybody suggest where to begin with this?
05-19-2022 10:46 AM
It would be better if you posted what you have attempted so far.
That way it shows that you have tried instead of waiting for someone to hand you the answer.
05-19-2022 10:58 AM
Hi onl,
@CNLSN wrote:Could anybody suggest where to begin with this?
When you want to process an array of values one after the other you should use an autoindexing loop...
05-19-2022 11:03 AM
@psuedonym here you go. The files are saved as a 2012 version.
There are obviously other issues at play here but the motor integration is my current concern.
05-19-2022 11:11 AM
@GerdW
When you want to process an array of values one after the other you should use an autoindexing loop...
I'm still too new to LabVIEW to know what an autoindexing loop is without looking it up... I believe (I could be completely wrong) that the For loop that I'm using here to create the shape is already autoindexing. Am I wrong? Would that help in relation to commanding the motors?