mpiControlSecondsToSamples
Declaration
MPI_RESULT mpiControlSecondsToSamples(MPIControl control, double seconds, int32_t *samples);
Required Header: stdmpi.h
Change History: Modified in 04.00.
Description
mpiControlSecondsToSamples writes to samples the number of servo cycles that will take place in seconds number of seconds (at the current sample rate). Use this function to convert seconds to samples.
control | A handle to a control object. |
---|---|
seconds | A time interval in seconds |
*samples | A pointer to the number of controller sample periods converted from seconds. |
Return Values | |
---|---|
MPIMessageOK |
See Also
mpiControlSamplestoSeconds | mpiControlSampleCounter | mpiControlSampleWait