LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

control motion simultaneously

Hi,I want to build a simultaneous control motion system. I tried to use load_pos function to trace the motion command, but the problem is these function perform too slow. Is there any other way to move the axis more quickly? Another probem is I want to read postion values .
0 Kudos
Message 1 of 2
(2,813 Views)
Moving the axis and tracking the position are two different things. Generally it's better to give the motion control to the motion controller, and just monitor the position. Each motion controller has its own command set, but all have the capability to command the motion controller to go a relative (i.e. 10 units in the positive direction) or absolute distance (i.e. go to position 24 on axis 1) and let the controller take some control over the motion. During these moves you should be able to monitor the movement using another command in the command set, such as load_pos(1) for axis 1, for instance. However, using rs232 sometimes this communication can be slower than you would like. You can put a do..while loop that monitors a motion_done flag and in the loop
constantly query the controller for the current position. Or, some controllers have a method by which the user can toggle on a constant echo of the position. Refer to your motion controller user manual. Certainly at the end of your motion you can query the position to see where you are.

Hope this helps.
0 Kudos
Message 2 of 2
(2,813 Views)