Syntax

rtobj.setRTDBParamValue(parameterid, parametervalue)

parameterid, parametervalue are required.

Arguments

parameterid
ID of the parameter whose value you wish to set. ID must be numeric. In order to display a list of parameters and their corresponding id's please use the getSharedMemRTDBVarList('params') method.
parametervalue
Value you wish to set. Parameter value must be numeric.

Description

setRTDBParamValue is a method of the simwb.rtobj object. The setRTDBParamValue method returns the value of the RTDB parameter in shared memory. For this function to set the value of the RTDB item, a test has to be started on the real-time host and the test RTDB should contain the RTDB parameter whose value needs to be obtained. In order to get a list of parameters id's, please use the getSharedMemRTDBVarList('params') method. resetOperatorOverride has no effect on parameters.

See also:

     startTestSession   getSharedMemRTDBVarList   getRTDBItemValue   getRTDBParamValue

Example: rtobj_setRTDBParamValue.m