Answered
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). ...

1 year ago | 0

Answered
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...

1 year ago | 1

| accepted

Answered
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...

1 year ago | 0

| accepted

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

1 year ago | 1

Answered
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...

1 year ago | 0

Answered
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...

1 year ago | 0

Answered
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...

1 year ago | 0

Answered
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...

1 year ago | 0

Answered
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 ...

1 year ago | 0

Answered
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...

1 year ago | 1

| accepted

Answered
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...

1 year ago | 0

Answered
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 ...

1 year ago | 0

Answered
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 ...

1 year ago | 0

Answered
Simulink.Parameter trouble
evalin('base', [get_param(gcb, 'Name') '=Simulink.Parameter']);

1 year ago | 0

Answered
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...

1 year ago | 0

Answered
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...

1 year ago | 0

| accepted

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

1 year ago | 1

| accepted

Answered
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...

1 year ago | 0

Answered
[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...

1 year ago | 0

Answered
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...

1 year ago | 0

Answered
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...

1 year ago | 0

| accepted

Answered
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...

1 year ago | 0

Answered
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...

1 year ago | 0

| accepted

Answered
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...

1 year ago | 0

Answered
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...

1 year ago | 0

Answered
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...

1 year ago | 0

Answered
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...

1 year ago | 0

| accepted

Answered
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...

1 year ago | 0

Answered
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> ...

1 year ago | 1

| accepted

Answered
How to extract timeseries datasets from Matlab Workspace to 'Matlab function' block in SImulink?
*From Workspace* (Simin) block directly accepts the time series as input data. Just replace "simin" with your timeseries vari...

1 year ago | 0

Load more