Motion Control and Motor Drives

cancel
Showing results for 
Search instead for 
Did you mean: 

7342 too slow on loading

HI
 
I use 7342, it seems too slow to load parametres to the card between 20 ms and 40 ms : ( i have used canalyzer to check the time with 2 frames like below)
 
{
CANTx_CVI_CMF();// can frame
 
                             // Load motion parameters to the FlexMotion controller
                            flex_load_rpm (boardID, axisNum, Vitesse , HOST); 
                            flex_load_rpsps (boardID, axisNum, NIMC_BOTH, acceleration_RPSPS, HOST);
 
                            // Start motion
                            flex_load_target_pos (boardID, axisNum, targetPosition, HOST);
                            flex_start (boardID, axisNum, 0);
 
 
CANTx_CVI_CMF();// can frame
}
 
is there any option to make that faster ?
 
thank you
0 Kudos
Message 1 of 3
(3,484 Views)
20 to 40 ms sounds a bit long but depending on your CPU, chipset and so on it's not extremely extraordinary.

If you want to reduce the time between two or more moves you should either use blending or contouring. In blend mode you can load the new move constraints for the next move while the current move is still running. With the blend factor you can either decide to accelerate the next move when the first move starts to decelerate (blend factor = -1) or wait for an adjustable number of ms between the moves.

Contouring allows you to download buffers with position data to the board. To learn more about both features please follow this link. Most of the examples in this tutorial are written in LabVIEW but it works the same way in C.

Here you can find some C examples (example1, example2) for blending. You will find more examples in the NI-Motion driver installation directory.

I hope that helps,

Jochen Klier
National Instruments Germany
0 Kudos
Message 2 of 3
(3,476 Views)
thank you Jochen Klier
0 Kudos
Message 3 of 3
(3,473 Views)