Réponse apportée
Electrical Switch doesn't work
You are using an ideal current source set to 1 A. This means that whichever load you attach to it, it will maintain 1A. By open...

presque 3 ans il y a | 1

| A accepté

Réponse apportée
connection port bus for simulink
Connection Ports are different from regular signals which have a data type, can be vectorized with a mux or can be combined in a...

presque 3 ans il y a | 0

Réponse apportée
Protect a Simulink model but keep the possibility to modify it
You will need the Simulink Coder toolbox.

presque 3 ans il y a | 0

| A accepté

Réponse apportée
How to load matrix variables as constant on Simulink?
Load the .mat file into the Base Workspace of MATLAB, and in Simulink use the From Workspace block to enter the variable name th...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
strcat not supported for code generation simulink
See documentation for the MATLAB Function block. There it is mentioned that: "In addition to language restrictions, the MATLAB F...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
Turn of slider switch automatically
Use a push button instead of a slider switch.

presque 3 ans il y a | 0

| A accepté

Réponse apportée
Simulink custom (non rectangular) Block Shapes
I do not think it is possible to give subsystems an other shape than rectangular. It could conflict with the positioning of the ...

presque 3 ans il y a | 1

| A accepté

Réponse apportée
Compilation of variant subsystem
In a Variant Subsystem, only the active subsystem will be compiled. Any other variants inside the Variant Subsystem will be igno...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
Data type work vector name must less than 31 characters long
Try to increase the setting 'Maximum identifier length' from 31 to 63. It can be found in the Configuration Parameters under 'Co...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
co-simulation within Simulink
I would put each subsystem inside an Enabled subsystem, and enable the second subsystem after the first subsystem had finished a...

presque 3 ans il y a | 1

| A accepté

Réponse apportée
(Matlab) S-function - delayed output
To generate a PWM signal you need to sample much faster than only the switching frequency. You need the higher sample time to be...

presque 3 ans il y a | 0

Réponse apportée
Single use switch in Simulink Real-Time
Enabled Subsystem?

presque 3 ans il y a | 0

Réponse apportée
Temperature measurement on electrical circuit
When constructing your Simscape Electrical circuit, you will need to enable thermal ports of the relevant components which gener...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
How to control the CAN transmit Simulink block to send messages on command?
Put the CAN transmit block inside a Triggered subsystem and provide a Boolean with 'true' when you want to send the message. Al...

presque 3 ans il y a | 1

| A accepté

Réponse apportée
How to get cyber attack models/blocks such as DOS attack, Man in the middle attack in Matlab/Simulink ?
Hi You may want to check the SimEvents package, it is designed to simulate communication and event structures. You can use it t...

presque 3 ans il y a | 0

Réponse apportée
Best way to buffer vector data in Simulink for processing over a time window
Using Data Stores would indeed be a solution. However, the dimensions of your matrix increases over time, making it a variable ...

presque 3 ans il y a | 0

| A accepté

Réponse apportée
How to get multiple axes in floating scope ? There is no axes point out under parameter button.
View -> Layout

presque 3 ans il y a | 0

| A accepté

Réponse apportée
What is the different between in "Monitor & Tune" and "Build, Deploy & Start" ?
Monitor & Tune means that you just read signals or write parameters to the connected target hardware. The application program ru...

presque 3 ans il y a | 0

Réponse apportée
How to display the current value of a TagetPC-Signal in a numeric edit field (App Designer) and update the value automatically every timestep ?
Inside the myTimerFcn, write: app.AEditField.Value = getsignal(tg,'Path',1);

environ 3 ans il y a | 1

| A accepté

Réponse apportée
How can I generate code for a Matlab function block in Simulink that contains a ''quadprog function''?
See the C/C++ Code Generation notes here. See an example for generating code with quadprog function here.

environ 3 ans il y a | 0

Réponse apportée
How to display the current value of a TagetPC-Signal in a numeric edit field (App Designer) and update the value automatically every timestep ?
You need to create a timer object Attach a function call to the timer object Put your code to assign the realtime value to the...

environ 3 ans il y a | 0

Réponse apportée
Interpretation of Simulink block warning
You have defined minimum and maximum values of a certain output or signal, and then probably created a vector of it using a Mux ...

environ 3 ans il y a | 1

Réponse apportée
How to convert decimal into hexadecimal in "S function" Matlab ?
input = uint16(2748) output = zeros(2,1,'uint8'); output(1) = bitshift(input,-8); output(2) = bitand(input,255); output Hex...

environ 3 ans il y a | 0

Réponse apportée
Cell arrays as top-level function outputs are not supported in MATLAB Function Block
The input and output of a MATLAB Function block in Simulink needs to be of a data type supported by Simulink. The data types sup...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
make a static const variable in generated code with Embedded Coder
In either the Model Workspace or a Data Dictionary linked to your model, create a Simulink.Parameter object and name it "MyNumbe...

environ 3 ans il y a | 0

Réponse apportée
Deactivate a switch block once the threshold is achieved.
https://nl.mathworks.com/help/simulink/ug/enabled-subsystems.html

environ 3 ans il y a | 0

Réponse apportée
Just want to display the scope's parameters for a period not from 0
Put the Scope block inside an Enabled Subsystem. Use the Digital Clock block to get the simulation time Use Relational Operato...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
How to run cyclic Simulink block once
Put it inside a Function-call Subsystem and use a function-call signal to trigger it Put it inside a Triggered Subsystem and to...

environ 3 ans il y a | 1

| A accepté

Réponse apportée
How to input time series in a block parameter in Simulink?
https://nl.mathworks.com/help/simulink/slref/fromworkspace.html https://nl.mathworks.com/help/simulink/ug/load-data-using-the-f...

environ 3 ans il y a | 0

| A accepté

Réponse apportée
How to stop if else condition after it executes only once.
Put your blocks inside an enabled subsystem, and use the outputs of your if-else block to disable the subsystem itself.

environ 3 ans il y a | 0

Charger plus