What I'm trying to do:
To develop a motion VI that rotates a stepper motor and collects data. The user inputs the degrees of rotation (e.g 45 degrees). While the motor is rotating I will collect force data from a analog input channel. The test will rotate the motor 1 degree, collect the force data, rotate another degree, collect onother data point......until the end of the test.
What the output of the test will be:
The user wants a spreadsheet file that has one data point per degree of rotation. Ideally, the degrees of rotation will be an integer. This way they can easily compare the force at 20 degrees for each test.
What I've done so far:
Modified the Sequence of blended One axis moves VI example by replacing the 5 element array with my own array . The purpose of this array is to generate the number of iterations depending upon the user input. They may want to rotate 30 degrees instead of 45.
Currently (See attached) the array size is 20 with 750 motor steps per iteration.
My Problem:
If the motor step value us under 750 or so, the motor moves in a jerky fashion. Above that it appears to be fine. Ideally I would like to move the motor 69 steps at a time. This is about equal to 1 degree of rotation. The motor is set for 25,000 steps /rotation.
I did a motion application about 2 years ago using three axes and I did not experience the jerkyness. I've tried my best to leverage that vi, but I'm still stuck. I am confident that the problem is me and my limited programming experience.
Thanks in advance for your help