Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error exporting fmu of rtwsfcnfmi.tlc using matlab 2021b #337

Closed
qilianshanlgz opened this issue Feb 20, 2022 · 2 comments
Closed

Error exporting fmu of rtwsfcnfmi.tlc using matlab 2021b #337

qilianshanlgz opened this issue Feb 20, 2022 · 2 comments
Labels
bug Something isn't working RTWSFCN This issue is related to the S-Function based FMU export

Comments

@qilianshanlgz
Copy link

Error: File: C:\FMIKit-Simulink-3.0-alpha.4\rtwsfcnfmi\rtwsfcnfmixml.tlc Line: 116 Column: 36
Unable to find CGTypeIdx within the DataType scope

@t-sommer
Copy link
Contributor

Can you provide steps to reproduce the problem?

@qilianshanlgz
Copy link
Author

qilianshanlgz commented Feb 21, 2022

Can you provide steps to reproduce the problem?
Thank you for your reply.
Step1:open simulink model;
Step2:ctrl+E→Code Generation→System target file:rtwsfcnfmi.tlc
Step3:ctrl+B
Step4:Then,The following error message is displayed:
=========================================================
Writing source file rtGetInf.c

TLC code generation complete.

Writing modelDescription.xml

Error: File: C:\FMIKit-Simulink-3.0-alpha.4\rtwsfcnfmi\rtwsfcnfmixml.tlc Line: 116 Column: 36
Unable to find CGTypeIdx within the DataType scope
Main program:
==> [00] C:\FMIKit-Simulink-3.0-alpha.4\rtwsfcnfmi\rtwsfcnfmixml.tlc:(116)
Error: File: C:\FMIKit-Simulink-3.0-alpha.4\rtwsfcnfmi\rtwsfcnfmixml.tlc Line: 116 Column: 36
Unable to find CGTypeIdx within the DataType scope
Main program:
==> [00] C:\FMIKit-Simulink-3.0-alpha.4\rtwsfcnfmi\rtwsfcnfmixml.tlc:(116)
Error: File: C:\FMIKit-Simulink-3.0-alpha.4\rtwsfcnfmi\rtwsfcnfmixml.tlc Line: 116 Column: 36
Unable to find CGTypeIdx within the DataType scope
Main program:
==> [00] C:\FMIKit-Simulink-3.0-alpha.4\rtwsfcnfmi\rtwsfcnfmixml.tlc:(116)
Error: File: C:\FMIKit-Simulink-3.0-alpha.4\rtwsfcnfmi\rtwsfcnfmixml.tlc Line: 116 Column: 36
Unable to find CGTypeIdx within the DataType scope
Main program:
==> [00] C:\FMIKit-Simulink-3.0-alpha.4\rtwsfcnfmi\rtwsfcnfmixml.tlc:(116)
Build Summary
Top model targets built:

Model Action Rebuild Reason

controller Failed Code generation information file does not exist.

0 of 1 models built (0 models already up to date)
Build duration: 0h 0m 6.805s
Error: File: C:\FMIKit-Simulink-3.0-alpha.4\rtwsfcnfmi\rtwsfcnfmixml.tlc Line: 116 Column: 36
Unable to find CGTypeIdx within the DataType scope

If the 'System target file' was 'grtfmi.tlc', the fmu file can be builded successfully.

t-sommer added a commit that referenced this issue Feb 22, 2022
@t-sommer t-sommer added bug Something isn't working RTWSFCN This issue is related to the S-Function based FMU export labels Feb 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working RTWSFCN This issue is related to the S-Function based FMU export
Projects
None yet
Development

No branches or pull requests

2 participants