MPI 04.00 Reference >> mpiMotion

mpiMotionConfigSet

Declaration

long mpiMotionConfigSet(MPIMotion            motion,
                        cont MPIMotionConfig  *config) 

 

Required Header: stdmpi.h

Change History: Modified in 04.00.

Description

mpiMotionConfigSet sets (writes) the configuration of a Motion object (motion) using data from the structure pointed to by config.

motion A handle to an Motion object.
*config A pointer to the MPIMotionConfig structure.
Return Values
MPIMessageOK

Sample Code

void modifyFeedrate(MPIMotion motion,
double normalFeedrate,
double pauseFeedrate)
{
MPIMotionConfig motionConfig;
long returnValue; 
returnValue = mpiMotionConfigGet(motion, &motionConfig);
msgCHECK(returnValue); 
printf("Before: normalFeedrate %g, pauseFeedrate  
%g\n",motionConfig.normalFeedrate,motionConfig.pauseFeedrate); 
motionConfig.normalFeedrate  = normalFeedrate;
motionConfig.pauseFeedrate = pauseFeedrate; 
returnValue =  mpiMotionConfigSet(motion, &motionConfig);
msgCHECK(returnValue); 
printf("After: normalFeedrate %g, pauseFeedrate  
%g\n",motionConfig.normalFeedrate,motionConfig.pauseFeedrate);
}

See Also

mpiMotionConfigGet | MPIMotionConfig