Answered
Pacing option not active in external mode
When running external mode, the code from the Simulink model is running in real-time using target OS timers/threads. It is not ...

2 mesi ago | 0

Answered
I want to write a MATLAB script that tests all test suites in Simulink with extension .mldatx?
https://www.mathworks.com/help/matlab/ref/matlab.unittest.testsuite.fromfolder.html

2 mesi ago | 0

Answered
Syntax error in simulink
The following variables need to be defined in the MATLAB workspace: I, g, b, m, l, M thetadot is missing a paren. It hsould ...

2 mesi ago | 0

Answered
MATLAB Crashing while simulating C MEX S functions with Structure with array data members.
These types of errors are best resolved by using a debugger to step through the generated code. In the S-Function Builder GUI, ...

2 mesi ago | 0

| accepted

Answered
Error generating c/c++ code
Do any of the directories in your working directory path have any strange characters or spaces in it? If so, try moving to a di...

2 mesi ago | 0

Answered
Simulink repeated operations (for loop)
create a subsystem and use simulink blocks to create your equation inside the subsystem. The subsystem will have one input and ...

2 mesi ago | 0

Answered
Block settings of "Code generation storage class" missed in Simulink R2020b
The use the "Code Mappings" dialog to set storage class. This can be found in the lower left-hand corner of the Simulink Canvas...

3 mesi ago | 0

Answered
Variant Subsystem for code generation
Variant subsystems only support compile time selection of a variant subsystem via #ifdef macros inserted in the genearted code a...

3 mesi ago | 0

| accepted

Answered
Simulation Pacing Raspberry Pi
The configuration parameter "Fixed-step size" units are seconds, so you need to set this parameter to 0.030 in order to get prop...

3 mesi ago | 0

Answered
coder.extrinsic may not occur inside an expression. It may only occur at the top-level.
coder.extrinsic('jsonencode'); jdata - jsonencode(data);

5 mesi ago | 0

Answered
Unable to Build Simulink model with embedded coder
It looks to me like the minGW make command is having a problem with the directory name "ruhi.phulbandhe". My suggestion would be...

5 mesi ago | 0

Answered
Does Simulink support CORBA?
MathWorks does not provide CORBA capability and I am alson not aware of any third party add-on support for CORBA. MathWorks d...

6 mesi ago | 1

| accepted

Answered
Use struct data from MATLAB workspace in Stateflow
Added 19b version.

6 mesi ago | 0

Answered
Use struct data from MATLAB workspace in Stateflow
In Stateflow, define your struct A as a Parameter. See attached example.

6 mesi ago | 0

| accepted

Answered
Passing bus signals through a switch block
Are you using Simulink Bus Objects to define the child buses? If not, try creating a Simulink.Bus object and setting the dataty...

6 mesi ago | 0

| accepted

Answered
Generate Parameters as input to step function
I don't believe this is possible for C++ code gen, but is possible for C code generation. You have to place the parameters in t...

7 mesi ago | 0

Answered
Interface/communicate data between SIMULINK and a C-program running on the same computer
If you have the source code for the C program, the best approach is to create a new Simulink block that contains your C code mod...

7 mesi ago | 0

| accepted

Answered
Vacuum and Radiative Heat Model
You should be able to use the Simcape Thermal library. The vacuum would be modeled with ~zero convection https://www.mathwor...

7 mesi ago | 0

Answered
Circuit Analysis using MATLAB
https://www.mathworks.com/help/symbolic/solve-differential-equations-using-laplace-transform.html

7 mesi ago | 0

Answered
Simulink. Is it possible to get the area's position by programming?
handle = find_system(gcs, 'FindAll', 'on', 'type', 'annotation', 'AnnotationType', 'area_annotation', 'selected', 'on') get_par...

7 mesi ago | 1

| accepted

Answered
How to compile simulink models with variables of big size in the simulink workspace?
The problem is that the array is so big it causes the visdual studio compiler to fail due to lack of heap space. You can try to...

7 mesi ago | 0

Answered
SIMULINK Datatype mysmatch error
In Shift Arithmetic block, make sure the "Binary points to shift" is set to zero.

7 mesi ago | 0

Answered
Single-Instance vs Multi-Instance Embedded Coder?
For single instance the generated code will use global data to hold state and parameter information. For multiple instance, st...

7 mesi ago | 0

| accepted

Answered
Motor Control Blockset examples: Using variant source block
Those are functions, not variables. They are p-coded M-Files that are shipped with the example. Type the following to see wher...

7 mesi ago | 1

| accepted

Answered
How to check files in a specified directory through Simulink?
As long as you don't need to generate C code from your SImulink model, use the coder.extrinsic function to notify Simulink that ...

7 mesi ago | 1

Answered
Custom data types for S-function parameters
The easiest way to do this is to use the legacy_code tool to create the s-function for you. You will have to create a dummy c-f...

8 mesi ago | 0

| accepted

Answered
Bus communication between charts in Stateflow
Simulink buses become structures in Stateflow. This link expains how a bus in a Simulink model becomes a structure in stateflow...

8 mesi ago | 0

Answered
How can I stop the recompile of the model after first run to quicken the simulation time ?
make the parameters for INputX and InputY to be tunable workspace parameters. https://www.mathworks.com/help/xpc/ug/tuning-bloc...

8 mesi ago | 0

Answered
How to get all input signal names connected to my simulink block exported in excel file?
Here is one approach: Write MATLAB code that: use find_system() command to get list of all input ports at top level of model...

8 mesi ago | 0

Answered
Simulink: Access bus element properties
Here is one approach that might work. It requires some knowledge of block masking. Create a subsystem. Inside the subsystem...

8 mesi ago | 0

| accepted

Load more