C code subsystem building fails because of error in different subsystem

조회 수: 4 (최근 30일)
Alexander Keijzer
Alexander Keijzer 2017년 5월 8일
댓글: Alexander Keijzer 2017년 5월 12일
I'm trying to export my subsystem to C code. The subsystem I'm exporting doesn't have any errors, however some of the inputs are generated using blocks from missing libraries on my machine. All the inputs are rate transitioned to the frequency we want our exported block to work at. When exporting Simulink tries to compile the inputs to our subsystem and which errors. On a machine where we do have the library installed there are no problems, we can even export our subsystem as referenced model so our subsystem is independent of the inputs (doing this would be a workaround of the issue we have now).
We are using Simulink 2016a.

답변 (1개)

Mandar Patwardhan
Mandar Patwardhan 2017년 5월 12일
Based on the description of the issue, I think that this an expected behavior. As the inputs to the subsystem are being created by the blocks which are present in the libraries, you will have to always do this on a machine where you do have the libraries installed to avoid any errors.
  댓글 수: 1
Alexander Keijzer
Alexander Keijzer 2017년 5월 12일
Maybe I wasn't clear. The inputs are not being exported. Replacing the inputs with constants or just removing everything around the subsystem I want to export fixes the issue. It seems like weird behavior if Simulink can't compile subsystems separately from the whole project while giving to option to separately export.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Subsystems에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by