06-04-2012 10:38 AM
Hi everyone,
I'm having issues on running this program. I am new to labview (1 week) and am trying to use the picomotor to move it in one direction for now. I have nested a While-Loop within a For-Loop. The user puts in 3 inputs:
1. xStart - The starting position.
2. xStepSize - The size of stepsize sample points the user desires.
3. xEnd - The ending position.
For example, if a user wants to start at 1 micron away from the starting position and wants to take 1 micron sample points and then can enter where they want to end, 11 microns away from the starting point of 1 micron. So it will take 10 sample points at 1 micron each until it reaches 11 microns. Hope this makes sense.
I decided to use the While-Loop for the stepsizes and add it up by each iteration until it is greater than or equal to the xEnd. This was then nested within a For-Loop that iterates it once and the xStart is on the outside of all this. I have attached the diagram for a better understanding. If anyone can help me out with this I would really appreciate it!
06-05-2012 05:12 PM
Hi JonRod,
Does the picomotor move, just not in the way that you wanted it to? Does it not move at all? If you can give more specific details explaining exactly how your code isn't working I may be able to offer you some advice.
06-06-2012 08:28 AM
Hi Jared,
Thanks for the reply. I believe I have fixed the problem in the block diagram. Thanks!
Jon