Answered
Hyperlink in Excel cell to open Simulink model?
You can launch Matlab from Windows system prompt, see the documentation. Maybe you can find a way to execute a command line code...

5 years ago | 0

Answered
Making the dashboard scope scroll
Go to the configuration properties of the scope block, and set the 'Time span overrun action' to 'Scroll' instead of 'Wipe'.

5 years ago | 0

Answered
How to select port in Multi Switch ?
Since you are using look-up tables with the monthly data anyway, I assume that the data for for example August will be zero in t...

6 years ago | 0

Question


Array as a #define instead of scalar
Hi all I want to use a small array as a Storage Class 'define': However, when I use this in my model and try to generate cod...

6 years ago | 1 answer | 0

1

answer

Answered
Data variants in Simulink Data Dictionary
I would suggest to put the Simulink.Parameter variables inside a separate Data Dictionary. Then, create two seperate files of th...

6 years ago | 1

Answered
How can I exctract 2 values from a 1-by-3 array in Simulink ?
Use a Demux block with three outputs to extract the three signals, and then another Mux block with two inputs to combine the two...

6 years ago | 0

Answered
Column-by-Column (SIMULINK)
You need the Selector block to capture the column you need, and then a Trigger Subsystem which executes on your command. You can...

6 years ago | 1

| accepted

Answered
Geoplot map low resolution
There are higher resolution maps available with version R2019b, without needing the Mapping Toolbox. You can change the base map...

6 years ago | 0

Answered
Power–frequency swing equation
You have the implementation wrong. It should be like this:

6 years ago | 0

Answered
How to limit operating element size of array in Simulink
The difficulty with referenced models is that they should be reusable inside other models with the exact same input and output i...

6 years ago | 0

| accepted

Answered
Which block are those? form simulink.
Purely based on your screenshot, not on the dynamics you want to achieve: Pink is 'Sign' Blue is 'Dead zone' in series with 'S...

6 years ago | 0

Answered
Why there is a problem coming in the connection although I am using a Voltage sensor compatible block for this?
Also, you are mixing Simscape Electrical and Simscape Specialized Power Systems. They don't mix.

6 years ago | 0

Answered
Converting Simulink Signal to Electrical Signal
https://nl.mathworks.com/help/physmod/simscape/ref/pssimulinkconverter.html https://nl.mathworks.com/help/physmod/simscape/ref/...

6 years ago | 0

| accepted

Answered
Changing Simulink Real-Time Workspace Variable
You should use the command setparam. Typical command is: setparam(tg,'speed_setpoint',100) for changing parameter 'speed_setpoin...

6 years ago | 0

Answered
Is there any way to change default data type of simulink models, including embedded matlab functions in simulink?
You can choose between double or single in the 'Default for unspecified data' menu as you mentioned. If you see no or little ef...

6 years ago | 0

Answered
Ignore certain blocks for production code generation
Found the solution. I have made a variant subsystem, wherein the production code variant I have used 'Ground' blocks as sources...

6 years ago | 0

| accepted

Question


Ignore certain blocks for production code generation
Hi all I have a controller model that I develop and reference in three different harnesses: simulation rapid prototyping pro...

6 years ago | 1 answer | 0

1

answer

Answered
Embedded Coder 2019b settings: Randomized file ending in typedef
You can set auto-generated identifier naming rules in your 'Configuration Parameters' window, under 'Code Generation' then 'Symb...

6 years ago | 0

| accepted

Question


Maximum identifier length '31' does not provide sufficient space to make symbol names unique
I am getting the following warning when generating code from my model: Insufficient space for computing symbol names in model '...

6 years ago | 2 answers | 1

2

answers

Question


System-generated identifiers does not use 'Shortened' names
I have set the 'System-generated identifiers' option to 'shortened'. However, for my global parameters the Embedded Coder sti...

6 years ago | 0 answers | 0

0

answers

Answered
Negative thermal resistance in SimScape
When you check the source code of the Thermal Resistance block, it is indeed hard-coded that the thermal resistance is larger or...

6 years ago | 0

| accepted

Answered
Can someone provide me a model for this?
I know it might sound a little crazy, but you could try to contact the authors of the paper if you want their model.

6 years ago | 0

Answered
Retaining previously held values in simulink
It is not completely clear to me what your set-up looks like, but you may want to investigate 'Enabled Subsystems'. You can set ...

6 years ago | 0

Answered
Simulink Library Browser Shortcut
In Simulink: CTRL+SHIFT+L. You cannot open the Simulink Library directly from within MATLAB.

6 years ago | 0

Question


Change parameters depending on Configuration Parameters
Hi all I have a controller model that I am referencing to in three different harnesses: Simulation (laptop simulations) Real-...

6 years ago | 0 answers | 0

0

answers

Answered
Is the a way to convert a non-virtual bus structure into a multi dimensional single element bit field/array?
I suggest you investigating For Each subsystems.

6 years ago | 0

| accepted

Answered
How to input six signals to a case statement without getting an error.
I don't know exactly what you want to achieve, but I am feeling that the 'cases' block is not the best choice. You might want to...

6 years ago | 1

Answered
How can I solve this simple Simulink discrete time solver problem?
The simulation is behaving exactly as how you want it. The plotter is just putting linear lines in between discrete data points....

6 years ago | 1

| accepted

Load more