Community Profile

photo

Jonas


Active since 2019

Statistics

  • 12 Month Streak
  • Thankful Level 2
  • Knowledgeable Level 3
  • First Review
  • Revival Level 1
  • First Answer

View badges

Content Feed

View by

Answered
Access and change variable in Model Workspace within the Simulink simulation
You cannot change objects in the Model Workspace during simulation. Or it's not intended for this at least. Use Data Store Memo...

1 día ago | 0

Answered
Simulink: Can you invert the constant block?
To Workspace block

1 día ago | 0

Answered
How to use a real current source?
Instead of using an ideal current source, use an ideal voltage source with a resistor in parallel.

2 días ago | 0

Answered
How to allow only sequences that have had the same value for 5 seconds (in Simulink)?
Using only blocks, I think this should do the trick:

3 días ago | 1

Answered
How to decode a UDP packet without byte unpack
You can reassemble those 8 bytes into a 64 byte double by applying a bitshift to each byte to its correct position, using a bito...

3 días ago | 0

Answered
Matlab/Targetlink Commands & Documentation
TargetLink is not a MathWorks product. You should find documentation from dSPACE support.

7 días ago | 0

Answered
Where is the "Treat as atomic unit" option for Function-Call Subsystem?
On my installation (R2020b) the 'Treat as atomic unit' is checked and greyed out. I believe a Function-Call Subsystem is always ...

9 días ago | 0

| accepted

Answered
Simulation or Simulink?
I believe you want to compare performing image processing and classification using a MATLAB script or using a Simulink model. U...

9 días ago | 0

Answered
Online polynomial linear curve fitting in Simulink
If you have the DSP Systems Toolbox you can use the Least Squares Polynomial Fit block. Standard Simulink does not have an alte...

24 días ago | 0

| accepted

Answered
Resetting Integrator by output of state flow in Simulink
Simulink cannot know which action to do first, since they depend on eachother. If you take output of the Stateflow s, reset the ...

24 días ago | 0

| accepted

Question


Get exact value from Scope cursor in Simulink
I am using the vertical Cursors in a Scope window to find the signal value. However, the value only displays three significant n...

25 días ago | 1 answer | 0

1

answer

Answered
How to change evaluation time of a Matlab Function in Simulink
If you put a MATLAB function block in your model, it will evaluate the MATLAB function code at each sample time. (depends on you...

25 días ago | 0

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

25 días ago | 1

| accepted

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

25 días ago | 0

Answered
Protect a Simulink model but keep the possibility to modify it
You will need the Simulink Coder toolbox.

28 días ago | 0

| accepted

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

29 días ago | 0

| accepted

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

alrededor de 1 mes ago | 0

| accepted

Answered
Turn of slider switch automatically
Use a push button instead of a slider switch.

alrededor de 1 mes ago | 0

| accepted

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

alrededor de 1 mes ago | 1

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

alrededor de 1 mes ago | 0

| accepted

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

alrededor de 1 mes ago | 0

| accepted

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

alrededor de 1 mes ago | 1

| accepted

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

alrededor de 1 mes ago | 0

Answered
Single use switch in Simulink Real-Time
Enabled Subsystem?

alrededor de 1 mes ago | 0

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

alrededor de 1 mes ago | 0

| accepted

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

alrededor de 1 mes ago | 1

| accepted

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

alrededor de 2 meses ago | 0

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

alrededor de 2 meses ago | 0

| accepted

Answered
How to get multiple axes in floating scope ? There is no axes point out under parameter button.
View -> Layout

alrededor de 2 meses ago | 0

| accepted

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

alrededor de 2 meses ago | 0

Load more