답변 있음
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...

약 2달 전 | 0

| 수락됨

답변 있음
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...

약 2달 전 | 0

| 수락됨

답변 있음
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...

약 2달 전 | 1

| 수락됨

답변 있음
(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...

약 2달 전 | 0

답변 있음
Single use switch in Simulink Real-Time
Enabled Subsystem?

2달 전 | 0

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

2달 전 | 0

| 수락됨

답변 있음
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...

2달 전 | 1

| 수락됨

답변 있음
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...

2달 전 | 0

답변 있음
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 ...

3달 전 | 0

| 수락됨

답변 있음
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...

3달 전 | 0

답변 있음
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);

3달 전 | 1

| 수락됨

답변 있음
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.

3달 전 | 0

답변 있음
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...

3달 전 | 0

답변 있음
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 ...

3달 전 | 1

답변 있음
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...

3달 전 | 0

답변 있음
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...

3달 전 | 0

| 수락됨

답변 있음
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...

3달 전 | 0

답변 있음
Deactivate a switch block once the threshold is achieved.
https://nl.mathworks.com/help/simulink/ug/enabled-subsystems.html

4달 전 | 0

답변 있음
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...

4달 전 | 0

| 수락됨

답변 있음
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...

4달 전 | 1

| 수락됨

답변 있음
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...

4달 전 | 0

답변 있음
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.

4달 전 | 0

답변 있음
Size mismatch when i am using simulink
You have an input named 'u' and an output named 'u', with different sizes. On line 9, the compiler thinks you are assigning the...

4달 전 | 0

| 수락됨

답변 있음
S-function is eliminated through code optimization
One solution is to create a Simulink.Parameter object with the value of the index, and Storage Class Const. Then use the paramet...

4달 전 | 0

| 수락됨

질문


S-function is eliminated through code optimization
Hi all I want to create an S-function by using the S-function Builder to generate a wrapper function which calls external code....

4달 전 | 답변 수: 1 | 0

1

답변

답변 있음
Branch wires in Simulink
You can branch a wire by holding the ctrl key and then click and drag. For this particular case, you could also add a second El...

4달 전 | 0

답변 있음
How to keep a boolean true value once it has been reached?
Use the Boolean signal to trigger a Triggered Subsystem which triggers on rising edge, which contains a Constant 'true' which co...

4달 전 | 0

답변 있음
Why do I receive a warning on bus-capable blocks + matlab function from r2017 and not before?
I get no warnings when running your model or searching objects. Maybe it is related to the fact that you create the Bus object ...

4달 전 | 0

답변 있음
Implementing While loop in Simulink
https://nl.mathworks.com/help/ecoder/ug/while-loop.html The documentation demonstrates the While Iterator subsystem and alter...

4달 전 | 0

더로드