mpiControlConfigSet

Declaration

MPI_RESULT
   mpiControlConfigSet(MPIControl         control,
                       MPIControlConfig   *config);

 

Required Header: stdmpi.h

Change History: Modified in 04.00.

Description

mpiControlConfigSet sets (writes) the Control object's (control) configuration using data from the structure pointed to by config.

WARNING! Configuring the control dynamicMemAlloc object counts will clear the dynamic memory of the controller and any configurations previously written to the dynamic memory of the controller will be lost. The SynqNet network will also be shutdown and re-initialized. This method should be executed in your application before configuring any other MPI objects.

control A handle to an Control object.
*config A pointer to the MPIControlConfig structure.
Return Values
MPIMessageOK
MPISynqNetMessageSAMPLE_PERIOD_NOT_MULTIPLE
MPISynqNetMessageTOPOLOGY_MISMATCH

Sample Code

MPIControlConfig	controlConfig;

mpiControlConfigGet(control, &controlConfig);
/* Allocate 16 captures and enable 4 */ controlConfig.dynamicMemAlloc.captureCount = 16; controlConfig.enabled.captureCount = 4; mpiControlConfigSet(control, &controlConfig);

See Also

mpiControlConfigGet | MPIControlConfig |