mpiAxisConfigSet

Declaration

long mpiAxisConfigSet(MPIAxis       axis,
                      MPIAxisConfig *config;

Required Header: axis.h

Change History: Modified in 04.00. Modified in 03.03.00.

Description

mpiAxisConfigSet sets the configuration of an Axis (axis) using data from the structure pointed to by config.

axis A handle to an Axis object.
*config A pointer to the MPIAxisConfig structure.
Return Values
MPIMessageOK

Sample Code

    /* Configure axis */
    returnValue =
        mpiAxisConfigGet(axis, &axisConfig);

    axisConfig.settle.tolerance.distance = 50.0;
    axisConfig.settle.tolerance.speed    = 100.0;
    axisConfig.settle.time               = .1;	/* seconds */

     if (returnValue == MPIMessageOK) {
        mpiAxisConfigSet(axis, &axisConfig);	
     }

See Also

mpiAxisConfigGet | MPIAdcConfig | MPIAxisConfig