Réponse apportée
Get simulation status of simulink model with event listener
You can *<https://in.mathworks.com/help/simulink/ug/model-callbacks.html#btoznm0 Model Callback functions>* to capture the simul...

plus de 6 ans il y a | 2

Réponse apportée
Does fixed point tool has any influence on MIL or SIL?
Fixed point data types are less accurate (but fast in execution) alternative for floating point data types (single & double). ...

plus de 6 ans il y a | 0

Réponse apportée
How can I implement a custom datatype in Simulink model So, that the generated code is same as Union datatype in C.
As far as I know, Simulink never generates *Union* for any built-in data class. For your requirement, you need to create your...

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
Read nx1 matrix from Matlab workspace into Simulink, but get the values one at a time
Use an index counter and extract the one array elements at every sample. It can be done in both Simulink and Stateflow. Below...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
Simulink write to array index
Use *<https://in.mathworks.com/help/simulink/slref/assignment.html Assignment>* block. OR Split the array signal using Dem...

plus de 6 ans il y a | 1

Réponse apportée
How do I get the default case(switch case) in auto code for if-else logic in Simulink model implementation?
You should check below options in *Model Configuration Parameters > Code Generation > Code Style* <https://in.mathworks.com/h...

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
How to apply 'For Iterator" in simulink?
Use *For Iterator Subsystem* SubSystem: * Set *Iteration limit* to 9 (for iterating 1 to 9) * Add inport to iterator Subsyst...

plus de 6 ans il y a | 0

Réponse apportée
How to reorganize blocks programmatically based on another block.
Check this submission on file exchange: *<https://in.mathworks.com/matlabcentral/fileexchange/16129-simulink-i-o-align-tool S...

plus de 6 ans il y a | 0

Réponse apportée
How to use Listener for plot data to App Designer graph from SIMULINK model when simulating ?
This is a good example. <https://in.mathworks.com/matlabcentral/fileexchange/24294-simulink-signal-viewing-using-event-listen...

plus de 6 ans il y a | 0

Réponse apportée
How to convert Simulink model into XML file ?
You need to first load or open the model. sys='Example'; % Model name is Example open_system(sys); % Example model must ...

plus de 6 ans il y a | 0

Réponse apportée
How can I add the Check Static Range block to my model using add_block?
add_block(sprintf('%s\n%s\n%s', 'simulink/Model', 'Verification/Check ', 'Static Range'), 'untitled/checkstaticrange') Ple...

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
How to retrieve the library block path once a block is created in Simulink?
Its not possible to retrieve the source of model blocks which are from built-in library. But you can search the in the *Simul...

plus de 6 ans il y a | 0

Réponse apportée
Simulink: is there something like a “pre-build” callback function?
Make a function to build your model. In the function check the required paths before starting the build. You can add the ...

plus de 6 ans il y a | 0

Réponse apportée
Simulink exclusive area Autosar
In my knowledge until Matlab R2015b, Exclusive area is not supported by Mathwork's AUTOSAR toolbox. To place some section of ...

plus de 6 ans il y a | 0

Réponse apportée
Simulink.Parameter trouble
evalin('base', [get_param(gcb, 'Name') '=Simulink.Parameter']);

plus de 6 ans il y a | 0

Réponse apportée
Code generation: Define own function name for "interp1"
You can control the function name using <https://in.mathworks.com/help/simulink/slref/codereusesubsystem.html#brp1xt9-91 Functio...

plus de 6 ans il y a | 0

Réponse apportée
How to simplify the name of component's ports when importing an ARXML file in SIMULINK?
As far as I know, port naming is build-in into AUTOSAR toolbox and can not be configured or changed. This is more or less be...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
Mask editor problem.
In Mask Initialization function aVal = str2double(get_param(gcbh, 'a')); % a is existing mask parameter bVal = str2doubl...

plus de 6 ans il y a | 1

| A accepté

Réponse apportée
Simulink: Assigning values at a memory location (on a DSP) to constants
* In Simulink define those constants as *Simulink.Parameter*. * Set the storage class of those parameters so you can import the...

plus de 6 ans il y a | 0

Réponse apportée
[Simulink] Output only non-zero values
You can not stop Simulink to generate the output at any time step. In simple words, at every time step, Simulink works as bel...

plus de 6 ans il y a | 0

Réponse apportée
Is there a setting somewhere in the Data Store Memory block I can set to force the data store to use my previouly declared definition of a bus type when generating code?
Check definition of your tireParamBus. Assuming that its is "Simulink.Bus" object, you should assign the data scope propertie...

plus de 6 ans il y a | 0

Réponse apportée
How can I name Outputports with the same name like a Subsystem in the model.
This is not possible. In simulink model, two blocks can not have same name on same level of hierarchy. You can use Prefix/Su...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
Siumlink functionality (load_system) not supported by Compiler
Simulink models works only with Simulink engine which runs under Matlab. Simulink is not provided with Matlab Runtime Environ...

plus de 6 ans il y a | 0

Réponse apportée
Is it possible to open the default block dialog after a custom OpenFcn callback?
In the OpenFcn of the block, run your script and the call open_system to open block dialog. % In OpenFcn of block exampl...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
How to convert MATLAB variables(in the excel sheet) to Simulink Parameters ?
Same question answered in old post: *<https://in.mathworks.com/matlabcentral/answers/402286-convert-matlab-variables-to-simul...

plus de 6 ans il y a | 0

Réponse apportée
Defining sample Time of Model Reference block by using model mask
Model can resolve the sample time from base workspace only. Just create the variable "sampleTime" in base workspace. In your...

plus de 6 ans il y a | 0

Réponse apportée
How can I programmitcally "click" on a block mask action button?
In my understanding, Dialog Control callback is *not executed in Mask workspace*. It is executed in Base workspace. Even thou...

plus de 6 ans il y a | 0

Réponse apportée
Data dictionary and model reference
According to Simulink documentation, if a Parent model uses the data dictionary, its child models (used by model reference) shou...

plus de 6 ans il y a | 0

| A accepté

Réponse apportée
how to update parameters from simulink model to the workspace and use it again during the simulink running??
Simulink evaluates the parameters at compilation phase only. Once the simulation started, parameters changes in base workspace w...

plus de 6 ans il y a | 0

Réponse apportée
Assign vectors from MATLAB workspace structure to Simulink Model inports
See <https://in.mathworks.com/help/simulink/ug/load-data-to-root-level-input-ports-1.html Load Data to Root-Level Input Ports> ...

plus de 6 ans il y a | 1

| A accepté

Charger plus