Compiling Simulink Model based on NI Veristand and error: The name cannot start or end with / character - matlab

When Compiling Simulink Model based on NI Veristand
, I get a Model error - Error: NI Veristand Error: Invaild character in ‘model path’, exiting code generation. The name cannot start or end with / character.Then I check the model in model of the path, but don’t find relative character.
Finally I need to do something to solve this problem.

Name of simulink model hides part. And Compiling Simulink Model is correct after deleting hidden part.

This error may appear if some of the Simulink blocks are unnamed. Please make sure all blocks are named and try compiling again.

Related

Simulink XCP DWARF Parser internal error: Parser::describeSymbol xcpDummyDoubleVariable is not a global variable

I'm currently changing Simulink Ext Mode to xcp. Now i'm running into the Issue DWARF Parser internal error: Parser::describeSymbol xcpDummyDoubleVariable is not a global variable. According to this post, the issue should have been fixed but it still doesn't work.
https://de.mathworks.com/matlabcentral/answers/703597-dwarf-parser-internal-error-parser-describesymbol-xcpdummydoublevariable-is-not-a-global-variable
I also tried the first approach (the second one is already active in version 22b) but the Error still occurs.
Have u got any suggestions why the error still occurs?

Dymola-Simulink interface: Error in newDymolaGuiJava

I am working on a model in Dymola and use the Dymola S-block in Simulink to compile the model and then run the model in Simulink. After a few compilations, the interface stops working with the error in the Matlab workspace as
Error using ddereq
The first argument 'channel' is not valid.
Error in newDymolaGuiJava
Error in newDymolaGuiJava
Error in newDymolaGui Error while evaluating UIControl Callback.
I have to restart Matlab every time I encounter this to make it work. And it happens very frequently. I'm not sure what the problem is.

How to get details in Matlab/Simulink about the error "Struct contents reference from a non-struct array object"?

I have a model designed with Matlab/Simulink R2017a and it is running well with no errors or warning messages in Diagnostic Viewer or MATLAB Command Window when I run it diretly from the Simulink.
However, when I start a build process on ConfigurationDesk from dSPACE to use this model in an embedded application the build process is aborted and the following message is shown:
Could not generate model code for model 'Model'. See MATLAB Command Window for details.
In MATLAB Command Window the following message is shown:
Struct contents reference from a non-struct array object.
================================================================================
Aborted Model-Code Generation for Model "Model".
================================================================================
As you can observe In MATLAB Command Window, there is no enough details about the error and due that I'm not being able to fix it.
There is any way to get more details about the error in order to track down it?
Thank you so much in advanced!

S-function not found by Simulink unless rebuild

I am currently using Matlab Simulink with a Raspberry Pi. I have been using the S-Function Builder block to generate an S-Function that I am using with the S-Function Block. However, I always need to keep a copy of the S-Function builder that I need to build at the first start, as Simulink otherwise tells me :
"Error in S-function 'read_accelerometer/S-Function': S-Function 'sfun_read_adxl345' does not exist"
I am keeping the .c and the wrapper.c file, as well as the mexw64 and the tlc files. But that does not matter - I still have to rebuild the S-Function using the Builder block every time I reload my model.
How to circumvent this issue?
Ok, this is kinda sad that I am answering my own question ...
I had a startup script that messed with the mexw64. So, always keep the mexw64 file, even if it is not needed. (recompilation on Raspberry Pi)
Also, specify the generated wrapper function as a module in the S-Fun block.

Cannot change the dimensions of run-time parameter in Model block

I have a Simulink model with a Model block I am using to avoid duplication of some functionality.
When I try and run the parent model, I get the following errors:
Cannot change the dimensions of run-time parameter 'Gain' in
'TranslationChannel/First-Order Filter1/Model/Continuous/A' from
[1x1] to [0x0] while model is executing
Invalid setting in
'TranslationChannel/Second-Order Filter/Model/Continuous/A*x/A11' for
parameter 'Gain'
Error evaluating parameter 'Gain' in
'TranslationChannel/Second-Order Filter/Model/Continuous/A*x/A11'
Reference to non-existent field 'A11'.
Invalid setting in
'TranslationChannel/Tilt/Model/Continuous/A*x/A11' for parameter
'Gain'
Error evaluating parameter 'Gain' in
'TranslationChannel/Tilt/Model/Continuous/A*x/A11'
Reference to
non-existent field 'A11'.
The sub-model is below:
The block the error refers to is First Order Fliter 1, the parameters are which are:
How do I resolve this error, or, is there a better way of calling the same series of blocks multiple times in a model?
The parent model is below:
EDIT:
After my discussion with Ander, I tried connecting a step source directly to the model block to eliminated any possibility of a null signal and got the same error, suggesting the problem is due to calling the second model. If anyone can assist further, that would be great.
EDIT 2: I have confirmed that data is being passed into the model. Removing the filters from the sub-model makes it work fine. The error occurs in the masked portion of the filters.
I have resolved this my using a library instead of a model, and putting the filter blocks into a subsystem inside the library that I then drag to my main model.
This allows me to tune the parameters once and have it change all the blocks at once.