when the <model_name>.param file has these MATLAB variables defined. MATLAB variables get added to the these variables if they are assigned inside the MATLAB command before opening model box of the Simulation Tool tab (in the model explorer window). The MATLAB variables can also be added inside the model |
Usage | RtlabApi.SetVariables(((varID1, varVal1),(varID2, varVal2), ... )) |
---|
Input | varID1: ID of a MATLAB variable varVal1: Value of the related MATLAB Variable. ((varID1, varVal1), ...): A Tuple of pair-like tuples with each pair consisting of variable ID & its related value, e.g. (varID1, varVal1) represents one such pair-type tuple.
|
---|
Output | None |
---|
Exception | EOK: Success. EINVAL: One of the variables doesn’t exist. ENOMEM: Memory allocation error. EIO: Error sending the request or receiving the reply. EBADF: Model not specified by previous Connect or
|
---|