Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Picomotor 8751-C labview block diagram issues

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!

Download All
0 Kudos
Message 1 of 3
(3,145 Views)

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.

Regards,

Jared R.
Precision DC Product Support Engineer
National Instruments
0 Kudos
Message 2 of 3
(3,109 Views)

Hi Jared,

 

Thanks for the reply.  I believe I have fixed the problem in the block diagram. Thanks!

 

Jon

0 Kudos
Message 3 of 3
(3,104 Views)