Syntax

rtobj.getRTDBParamValue(parameterid)

parameterid is required.

Arguments

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

Description

getRTDBParamValue is a method of the simwb.rtobj object. The getRTDBParamValue method returns the value of the RTDB parameter in shared memory. The parameterid is passed as an input argument to this function. For this function to return the value of the parameter, 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.

See also:

     startTestSession   getSharedMemRTDBVarList   setRTDBParamValue

Example: rtobj_getRTDBParamValue.m