vssGetOparData
Get a given Object parameter that is defined in the Parameters tab.
Syntax
obj = vssGetOparData(block,objidx)
Inputs
- block
- Handle of the block used in the evaluation, compilation and simulation phases. The handle refers to an engine/core block structure.
- objidx
- Parameter index
Outputs
- obj
- Object parameter of the block.
Example
Get in an OML custom block the system stiffnesses defined as the 1st and 2nd parameters, the force defined as the 3rd parameter and the massa defined as the 4th parameter of a model. These 4 variables are defined in the Parameters tab the OML custom block.
function OmlBlockFunction(block,flag)
...
k_s=vssGetOparData(block,1);
k_d=vssGetOparData(block,2);
F=vssGetOparData(block,3);
M=vssGetOparData(block,4);
end