how to import fmu from AMESim to Simulink?
63 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
can anybody help in import in FMUs (functional mockup units) from AMESim to Simulink?
i created a simple fmu interface in AMESim (difference of 2 inputs)
the signals are named in1, in2, out1
![fmu.JPG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/256881/fmu.jpeg)
in simulink i used fmu import block
![simulink.JPG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/256882/simulink.jpeg)
from help on fmu import block, i understand that bus has to be created so did the following
![bus.JPG](https://www.mathworks.com/matlabcentral/answers/uploaded_files/256883/bus.jpeg)
on running simulink model i get error as
The bus data type 'model' specified in 'untitled/Bus Creator' is not valid; the number of signals at the input to the block must match the number of object elements.
i request somebody kindly help in detailing steps to create the fmi interface
thanks in advance
0 Commenti
Risposte (1)
Kavya Vuriti
il 1 Apr 2020
Hi,
From the model you provided, it is clear that you are using a Bus Creator block to create bus. The error can be resolved by unchecking the "Override bus signal names from inputs" parameter in the "Bus Creator" block dialog parameters.
For more information on what is causing this error, you can refer the following link: https://www.mathworks.com/matlabcentral/answers/458312-what-does-the-error-the-number-of-signals-at-the-input-to-the-block-must-match-the-number-of-object
0 Commenti
Vedere anche
Categorie
Scopri di più su Create Standalone FMU in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!