回答済み
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...

6年弱 前 | 1

| 採用済み

回答済み
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...

6年弱 前 | 1

| 採用済み

回答済み
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 ...

6年弱 前 | 1

回答済み
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...

6年弱 前 | 0

| 採用済み

回答済み
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...

6年弱 前 | 0

回答済み
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...

6年弱 前 | 0

回答済み
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...

6年弱 前 | 0

回答済み
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...

6年弱 前 | 0

| 採用済み

回答済み
S-Function does not exist
Make sure that the .m files are in the MATLAB current working directory or on the MATLAB path.

6年弱 前 | 0

回答済み
S-function for static library
The library you built in Code COmposer studio is for a TI processor. S-Functions are built to run on Windows ( or LInux) and th...

約6年 前 | 0

| 採用済み

回答済み
How to call C custom variable or constant in Simulink Model
not sure what you mean by "call", but one solution would be to put the variable inside a C function that simply returns the cons...

約6年 前 | 0

回答済み
To worspace not showing
To Workspace should work in rapid accel mode. Does TIME appear in the workspace? Does your data appear on workspace in norma...

約6年 前 | 0

回答済み
Why I get an error when generating a cell array as an output of a simulink function?
First, it looks like you ahve a typo... should "Counter" be "count"? But that isn't the reason for the error. I think the prob...

約6年 前 | 0

回答済み
Removal of RT_MODEL variables in code generation
Look in TEST.h. What is in the data structure RT_MODEL_TEST? If there is an error_status variable, you can disable via this co...

約6年 前 | 2

| 採用済み

回答済み
Use Mfile's user defined function in the Simulink's Matlab Function Block.
Your function isn't named RhosatLiq, it is named fcn. Change it to be : function RSL = RhosatLiq(Tsat) %Calculate the Saturat...

約6年 前 | 0

回答済み
Errors while building mex
I believe the 4 missing symbols are functions normally provided by the AUTOSAR RTE. Simulink and Embedded coder do not generate...

約6年 前 | 0

回答済み
Dimension Mismatch between Simulink Bus and Calculation Results
The easiest approach is to set the variable that holds the result to be a fixed length vector with a length equal to the larges...

約6年 前 | 0

| 採用済み

回答済み
Why have some bus signals wrong datatypes?
Did you specify a Simulink Bus in the Bus Creator dialog? If so, then the signals feeding the bus creator must match the types ...

約6年 前 | 0

回答済み
Global Simulink static/constant inside Matlab function
If you add an argument to your MATLAB function and mark it as a parameter. Simulink will then look for this parameter in the MA...

約6年 前 | 0

回答済み
Running Matlab simulation from a C++ code
Option 1: Modify your C++ code so that it writes the data to a comma delimited file, where the first column is the simulation t...

約6年 前 | 2

回答済み
How can I initialize internal variable of s-function every simulation?
Add code to the mdlStart() or mdlInitialize() functions in the SFunctionto reset state variables.

約6年 前 | 0

| 採用済み

回答済み
Simulink Code Generation - Variable names changes of MATLAB function blocks in C++ generated code
Try adjusting the "Loop unrolling threshold" to 0 or 1. What you are encountering is an optimization. It is usually more effic...

約6年 前 | 0

| 採用済み

回答済み
From generated code (Simulink Embedded coder) to Simulink model, for verification
Put the Simulink model in Software In the Loop Mode(SIL). When this is done, Simulink will automatically replace the Simulink m...

約6年 前 | 0

解決済み


Knight's Tour Checker
Given a matrix a, determine whether or not a legal <http://en.wikipedia.org/wiki/Knight's_tour knight's tour> is present. The kn...

6年以上 前

解決済み


Find the two most distant points
Given a collection of points, return the indices of the rows that contain the two points most distant from one another. The inpu...

6年以上 前

解決済み


QWERTY coordinates
Given a lowercase letter or a digit as input, return the row where that letter appears on a <http://en.wikipedia.org/wiki/Keyboa...

6年以上 前

回答済み
How can I group a number of similar Simulink Outports so that Embedded Coder will define them as an array of variables in the resultant C code?
As long as all signals are of the same type, you can merge them together into a vector using the vector concatenate block. https...

6年以上 前 | 0

| 採用済み

回答済み
How to pause signal at specific time for specific time?
Use the SImulink Clock block to get the current simulation time. https://www.mathworks.com/help/simulink/slref/clock.html and t...

6年以上 前 | 0

| 採用済み

回答済み
Simulink Project ignore files and folders
right mouse click on the file/folder and select "Remove from Project" https://www.mathworks.com/help/matlab/matlab_prog/manag...

6年以上 前 | 1

回答済み
How can I SEND midi commands from within Simulink?
The audio toolbox comes with Simulink blocks for midi send/receive. https://www.mathworks.com/help/audio/examples/using-a-midi-...

6年以上 前 | 0

さらに読み込む