linkToFMU - Link component to FMU - MATLAB (original) (raw)

Create an FMU behavior by linking an FMU file named actuator.fmu to theactuatorComp component.

Create a model named archModel.

model = systemcomposer.createModel("archModel"); systemcomposer.openModel("archModel"); arch = get(model,"Architecture");

Add a component named actuatorComp to the model.

comp = addComponent(arch,"actuatorComp");

Link the actuatorComp component to an FMU file so the component references the FMU file actuator.fmu.

fmuHandle = linkToFMU(comp,"actuator.fmu");