Author: PuTI
How are RFDC block and AXI4-Stream to Software block settings applied to the target board by SoC Builder?
Dear all,
I am using SoC Blockset for a simple receiver design for AMD Zynq Ultrascale+ ZCU111 evaluation board.
The Top model consists of the following parts: Signal generation subsystem (part of a testbench) -> RF data converter block -> FPGA referenced model -> AXI4-Stream to Sofrtare block (PS memory is selected) -> Processor subsystem (with Task Manager block and Processor referenced model inside) -> Subsystem with logic to view the output of the design from the Processor side (part of the testbench).
Now I want to deploy the design: using SoC Blockset I generate a bitstream and open an external mode model for the processor.
The question is: At which step of the deployment are the settings of RFDC and AXI4-Stream to Software blocks are applied to HW? First, the bitstream for FPGA model is generated and loaded, FPGA starts running, are the DACs/ADCs and PS memory already configured and working by that point? Or do they start as soon as code for the external mode model is generated and the processes are run on the target Processor?
This is important because if I, for example, I want to deploy the processor application and FPGA degisn separately at different time, bypassing SoC Bulder workflow, I need to know how to configure data converters and memory manually.
Thank you!Dear all,
I am using SoC Blockset for a simple receiver design for AMD Zynq Ultrascale+ ZCU111 evaluation board.
The Top model consists of the following parts: Signal generation subsystem (part of a testbench) -> RF data converter block -> FPGA referenced model -> AXI4-Stream to Sofrtare block (PS memory is selected) -> Processor subsystem (with Task Manager block and Processor referenced model inside) -> Subsystem with logic to view the output of the design from the Processor side (part of the testbench).
Now I want to deploy the design: using SoC Blockset I generate a bitstream and open an external mode model for the processor.
The question is: At which step of the deployment are the settings of RFDC and AXI4-Stream to Software blocks are applied to HW? First, the bitstream for FPGA model is generated and loaded, FPGA starts running, are the DACs/ADCs and PS memory already configured and working by that point? Or do they start as soon as code for the external mode model is generated and the processes are run on the target Processor?
This is important because if I, for example, I want to deploy the processor application and FPGA degisn separately at different time, bypassing SoC Bulder workflow, I need to know how to configure data converters and memory manually.
Thank you! Dear all,
I am using SoC Blockset for a simple receiver design for AMD Zynq Ultrascale+ ZCU111 evaluation board.
The Top model consists of the following parts: Signal generation subsystem (part of a testbench) -> RF data converter block -> FPGA referenced model -> AXI4-Stream to Sofrtare block (PS memory is selected) -> Processor subsystem (with Task Manager block and Processor referenced model inside) -> Subsystem with logic to view the output of the design from the Processor side (part of the testbench).
Now I want to deploy the design: using SoC Blockset I generate a bitstream and open an external mode model for the processor.
The question is: At which step of the deployment are the settings of RFDC and AXI4-Stream to Software blocks are applied to HW? First, the bitstream for FPGA model is generated and loaded, FPGA starts running, are the DACs/ADCs and PS memory already configured and working by that point? Or do they start as soon as code for the external mode model is generated and the processes are run on the target Processor?
This is important because if I, for example, I want to deploy the processor application and FPGA degisn separately at different time, bypassing SoC Bulder workflow, I need to know how to configure data converters and memory manually.
Thank you! rfdc, code generation, embedded coder, soc builder, fpga, target device, soc, zcu111 MATLAB Answers — New Questions
Zero-Padding Position for FFT
Hi,
I have a time-domain signal x with 5000 samples with period T, and it spans from -0.5*T to +0.5*T.
I want to compute an 8000-point FFT and I am confused about where I should add the zero-padding. Which of the following two methods is correct?
First:
x = [x; zeros(1, 3000)];
X = fftshift( fft( fftshift(x), 8000) );
Second:
x = [zeros(1, 1500); x; zeros(1, 1500)];
X = fftshift( fft( fftshift(x), 8000) );
Thanks!Hi,
I have a time-domain signal x with 5000 samples with period T, and it spans from -0.5*T to +0.5*T.
I want to compute an 8000-point FFT and I am confused about where I should add the zero-padding. Which of the following two methods is correct?
First:
x = [x; zeros(1, 3000)];
X = fftshift( fft( fftshift(x), 8000) );
Second:
x = [zeros(1, 1500); x; zeros(1, 1500)];
X = fftshift( fft( fftshift(x), 8000) );
Thanks! Hi,
I have a time-domain signal x with 5000 samples with period T, and it spans from -0.5*T to +0.5*T.
I want to compute an 8000-point FFT and I am confused about where I should add the zero-padding. Which of the following two methods is correct?
First:
x = [x; zeros(1, 3000)];
X = fftshift( fft( fftshift(x), 8000) );
Second:
x = [zeros(1, 1500); x; zeros(1, 1500)];
X = fftshift( fft( fftshift(x), 8000) );
Thanks! fft MATLAB Answers — New Questions
What is the reference data for default values used in FEM Parameter based PMSM block used in “PMSMDetailedTestBench” model (EV Design SimScape) project found in File exchange
I am looking for a open source platform to simulate and obtain datasets like Healthy PMSM temperature and Demagnetised PMSM. I found "EV Design Simscape;" model in FileExchange where i found one model called PMSM Detailed Test Bench for which parameters like flux linkage is defined via a 3D map of Flux linkage and current. I would like like to vary the flux linkage to simulate demagnetised motor. Here we want to check the reference about default values used in those parameters and how are they opted or selected. Kindly support the sameI am looking for a open source platform to simulate and obtain datasets like Healthy PMSM temperature and Demagnetised PMSM. I found "EV Design Simscape;" model in FileExchange where i found one model called PMSM Detailed Test Bench for which parameters like flux linkage is defined via a 3D map of Flux linkage and current. I would like like to vary the flux linkage to simulate demagnetised motor. Here we want to check the reference about default values used in those parameters and how are they opted or selected. Kindly support the same I am looking for a open source platform to simulate and obtain datasets like Healthy PMSM temperature and Demagnetised PMSM. I found "EV Design Simscape;" model in FileExchange where i found one model called PMSM Detailed Test Bench for which parameters like flux linkage is defined via a 3D map of Flux linkage and current. I would like like to vary the flux linkage to simulate demagnetised motor. Here we want to check the reference about default values used in those parameters and how are they opted or selected. Kindly support the same pmsm detailed test bench MATLAB Answers — New Questions
Two-Level AFE Control Not Working with Resistive Load and Non-Zero Negative Vd Using SOGI Filter
Hello everyone,
I’m working on a Two-Level Active Front-End (AFE) converter model in Simulink. The simulation runs successfully when the load is a battery, but I’m facing issues when I replace the battery with a resistive load.
❗ Issues Encountered:
The control becomes unstable or fails when switching to a resistive load.
I’m using a SOGI-based PLL for synchronization and sequence extraction.
Under balanced input voltage conditions, I’m observing a non-zero negative-sequence Vd (~1.5 V), which ideally should be near zero.
📌 System Configuration:
Two-Level Voltage Source Converter (VSC)
RC-damped LCL Filter
SOGI-based sequence extraction and PLL
dq frame current control
Battery load: DC voltage source
Resistive load: Fixed resistor connected across DC bus
✅ My Questions:
Why does the system behave well with a battery load, but not with a resistive load?
What could cause a non-zero negative-sequence Vd (~1.5 V) under balanced conditions?
How should I tune the SOGI filter or control loops to improve stability and accuracy during resistive loading?
If needed, I can provide block diagrams or simulation waveforms. Any insights or similar experiences would be very helpful.
Thanks in advance,
Thangamuthu NHello everyone,
I’m working on a Two-Level Active Front-End (AFE) converter model in Simulink. The simulation runs successfully when the load is a battery, but I’m facing issues when I replace the battery with a resistive load.
❗ Issues Encountered:
The control becomes unstable or fails when switching to a resistive load.
I’m using a SOGI-based PLL for synchronization and sequence extraction.
Under balanced input voltage conditions, I’m observing a non-zero negative-sequence Vd (~1.5 V), which ideally should be near zero.
📌 System Configuration:
Two-Level Voltage Source Converter (VSC)
RC-damped LCL Filter
SOGI-based sequence extraction and PLL
dq frame current control
Battery load: DC voltage source
Resistive load: Fixed resistor connected across DC bus
✅ My Questions:
Why does the system behave well with a battery load, but not with a resistive load?
What could cause a non-zero negative-sequence Vd (~1.5 V) under balanced conditions?
How should I tune the SOGI filter or control loops to improve stability and accuracy during resistive loading?
If needed, I can provide block diagrams or simulation waveforms. Any insights or similar experiences would be very helpful.
Thanks in advance,
Thangamuthu N Hello everyone,
I’m working on a Two-Level Active Front-End (AFE) converter model in Simulink. The simulation runs successfully when the load is a battery, but I’m facing issues when I replace the battery with a resistive load.
❗ Issues Encountered:
The control becomes unstable or fails when switching to a resistive load.
I’m using a SOGI-based PLL for synchronization and sequence extraction.
Under balanced input voltage conditions, I’m observing a non-zero negative-sequence Vd (~1.5 V), which ideally should be near zero.
📌 System Configuration:
Two-Level Voltage Source Converter (VSC)
RC-damped LCL Filter
SOGI-based sequence extraction and PLL
dq frame current control
Battery load: DC voltage source
Resistive load: Fixed resistor connected across DC bus
✅ My Questions:
Why does the system behave well with a battery load, but not with a resistive load?
What could cause a non-zero negative-sequence Vd (~1.5 V) under balanced conditions?
How should I tune the SOGI filter or control loops to improve stability and accuracy during resistive loading?
If needed, I can provide block diagrams or simulation waveforms. Any insights or similar experiences would be very helpful.
Thanks in advance,
Thangamuthu N simulink, model, converter, battery, resistive load MATLAB Answers — New Questions
MNPBEM Error – Issue with dot product in tripolygon file
Hi,
I’m new to MATLAB and the MNPBEM toolbox – I’m trying to write a code to simulate a gold nanoparticle on a diamond substrate to demonstrate the SERS effect. I keep getting this error:
"Dot indexing is not supported for variables of this type.
Error in tripolygon (line 18)
if all( ~isnan( edge.pos( :, 1 ) ) ) || …"
^^^^^^^^^^^^^^^^
followed by:
Error in aunp_SERS_1 (line 37)
slab = tripolygon(faces, vertices);
^^^^^^^^^^^^^^^^^^^^^^^^^^^
(where aunp_SERS_1 is the name of my project). Not sure how to fix this as I cannot edit the tripolygon file as it is part of the toolbox! Please let me know what to do :)Hi,
I’m new to MATLAB and the MNPBEM toolbox – I’m trying to write a code to simulate a gold nanoparticle on a diamond substrate to demonstrate the SERS effect. I keep getting this error:
"Dot indexing is not supported for variables of this type.
Error in tripolygon (line 18)
if all( ~isnan( edge.pos( :, 1 ) ) ) || …"
^^^^^^^^^^^^^^^^
followed by:
Error in aunp_SERS_1 (line 37)
slab = tripolygon(faces, vertices);
^^^^^^^^^^^^^^^^^^^^^^^^^^^
(where aunp_SERS_1 is the name of my project). Not sure how to fix this as I cannot edit the tripolygon file as it is part of the toolbox! Please let me know what to do 🙂 Hi,
I’m new to MATLAB and the MNPBEM toolbox – I’m trying to write a code to simulate a gold nanoparticle on a diamond substrate to demonstrate the SERS effect. I keep getting this error:
"Dot indexing is not supported for variables of this type.
Error in tripolygon (line 18)
if all( ~isnan( edge.pos( :, 1 ) ) ) || …"
^^^^^^^^^^^^^^^^
followed by:
Error in aunp_SERS_1 (line 37)
slab = tripolygon(faces, vertices);
^^^^^^^^^^^^^^^^^^^^^^^^^^^
(where aunp_SERS_1 is the name of my project). Not sure how to fix this as I cannot edit the tripolygon file as it is part of the toolbox! Please let me know what to do 🙂 mnpbem, tripolygon, error, help, matlab code, matlab MATLAB Answers — New Questions
Figure window not opening with just using plot() in 2025a
Hello everyone, I have a simple yet annoying problem. In previous versions of Matlab, if I wanted to see a plot, I could write plot(a,b) and it would automatically open a figure window and draw the plot. Now, in 2025a, I need to write figure() first and then write plot(a,b) to see the plot. Otherwise the figure is acting like its Visible property is set to ‘off’, yet the property seems to be ‘on’. Any ideas why this might be happening? Is it like this "by design" now?Hello everyone, I have a simple yet annoying problem. In previous versions of Matlab, if I wanted to see a plot, I could write plot(a,b) and it would automatically open a figure window and draw the plot. Now, in 2025a, I need to write figure() first and then write plot(a,b) to see the plot. Otherwise the figure is acting like its Visible property is set to ‘off’, yet the property seems to be ‘on’. Any ideas why this might be happening? Is it like this "by design" now? Hello everyone, I have a simple yet annoying problem. In previous versions of Matlab, if I wanted to see a plot, I could write plot(a,b) and it would automatically open a figure window and draw the plot. Now, in 2025a, I need to write figure() first and then write plot(a,b) to see the plot. Otherwise the figure is acting like its Visible property is set to ‘off’, yet the property seems to be ‘on’. Any ideas why this might be happening? Is it like this "by design" now? plot, figure MATLAB Answers — New Questions
Changing position and resizing image within Image Viewer (imtool)
I am working on an app that will open the Image Viewer app using imtool. I want the Image Viewer window to be in the top right of the screen, and larger than the default opening size, as well as have the image within the app displayed at the largerst possible magnification that shows the entire image.
I have figured out that I can do each of these steps individually, however, when I try to combine them it seem to be that I can only set the position and size of the Image Viewer after I have set the magnification – and the magnification does not seem to adapt to the new size of the window (and I cannot figure out how to code the magnification after the Image Viewer has been launched).
The code I am using is:
screensize = get(0, ‘ScreenSize’) ;
app.ImageAppOn = imtool(app.ImageCell{1}, ‘InitialMagnification’, ‘adaptive’) ;
%display the first image in the set ImageCell
set(app.ImageAppOn, ‘Position’, [650, 20, screensize(3)-650, screensize(4)-100])
%send the Image Viewer to the top right corner and resize to take up more screen
How can I accomplish both the larger window size and the larger magnification?
(I am using Matlab 2018b)
Thanks.I am working on an app that will open the Image Viewer app using imtool. I want the Image Viewer window to be in the top right of the screen, and larger than the default opening size, as well as have the image within the app displayed at the largerst possible magnification that shows the entire image.
I have figured out that I can do each of these steps individually, however, when I try to combine them it seem to be that I can only set the position and size of the Image Viewer after I have set the magnification – and the magnification does not seem to adapt to the new size of the window (and I cannot figure out how to code the magnification after the Image Viewer has been launched).
The code I am using is:
screensize = get(0, ‘ScreenSize’) ;
app.ImageAppOn = imtool(app.ImageCell{1}, ‘InitialMagnification’, ‘adaptive’) ;
%display the first image in the set ImageCell
set(app.ImageAppOn, ‘Position’, [650, 20, screensize(3)-650, screensize(4)-100])
%send the Image Viewer to the top right corner and resize to take up more screen
How can I accomplish both the larger window size and the larger magnification?
(I am using Matlab 2018b)
Thanks. I am working on an app that will open the Image Viewer app using imtool. I want the Image Viewer window to be in the top right of the screen, and larger than the default opening size, as well as have the image within the app displayed at the largerst possible magnification that shows the entire image.
I have figured out that I can do each of these steps individually, however, when I try to combine them it seem to be that I can only set the position and size of the Image Viewer after I have set the magnification – and the magnification does not seem to adapt to the new size of the window (and I cannot figure out how to code the magnification after the Image Viewer has been launched).
The code I am using is:
screensize = get(0, ‘ScreenSize’) ;
app.ImageAppOn = imtool(app.ImageCell{1}, ‘InitialMagnification’, ‘adaptive’) ;
%display the first image in the set ImageCell
set(app.ImageAppOn, ‘Position’, [650, 20, screensize(3)-650, screensize(4)-100])
%send the Image Viewer to the top right corner and resize to take up more screen
How can I accomplish both the larger window size and the larger magnification?
(I am using Matlab 2018b)
Thanks. app designer, image analysis MATLAB Answers — New Questions
how can we debug parfor loop
when i am working using "parfor" condition, i am not able to put a breakpoints for debugging.when i am working using "parfor" condition, i am not able to put a breakpoints for debugging. when i am working using "parfor" condition, i am not able to put a breakpoints for debugging. debug, parfor MATLAB Answers — New Questions
Serial Receive Block Variable Data Size
Hi,
I’m working with a data logger that sends measurements over a USB serial interface. I’d like to read the data using Simulink’s Serial Receive block, but I’m running into a problem: the block requires a fixed message length, while my measurements vary in digit count, so each message can be longer or shorter.
I’ve tried setting a maximum data size, but then the block misses the terminator since it relies solely on the fixed length. I’ve also experimented with a smaller fixed size in non-blocking mode, buffering incoming bytes and then parsing complete messages—but approaches that i tried introduce delays that are unacceptable for my application.
I’d appreciate any suggestions or solutions to handle variable-length serial messages in Simulink without significant latency.Hi,
I’m working with a data logger that sends measurements over a USB serial interface. I’d like to read the data using Simulink’s Serial Receive block, but I’m running into a problem: the block requires a fixed message length, while my measurements vary in digit count, so each message can be longer or shorter.
I’ve tried setting a maximum data size, but then the block misses the terminator since it relies solely on the fixed length. I’ve also experimented with a smaller fixed size in non-blocking mode, buffering incoming bytes and then parsing complete messages—but approaches that i tried introduce delays that are unacceptable for my application.
I’d appreciate any suggestions or solutions to handle variable-length serial messages in Simulink without significant latency. Hi,
I’m working with a data logger that sends measurements over a USB serial interface. I’d like to read the data using Simulink’s Serial Receive block, but I’m running into a problem: the block requires a fixed message length, while my measurements vary in digit count, so each message can be longer or shorter.
I’ve tried setting a maximum data size, but then the block misses the terminator since it relies solely on the fixed length. I’ve also experimented with a smaller fixed size in non-blocking mode, buffering incoming bytes and then parsing complete messages—but approaches that i tried introduce delays that are unacceptable for my application.
I’d appreciate any suggestions or solutions to handle variable-length serial messages in Simulink without significant latency. serial receive, serielle schnitstelle, variable data size MATLAB Answers — New Questions
Please Help! : Unrecognized function or variable ‘crandn’.
% simple SIMO system
m = 2;
l = 20;
alphabet = [ exp(j*pi/4); exp(j*3/4*pi); exp(j*5/4*pi); exp(j*7/4*pi) ];
h0 = crandn(m, 1);
h1 = crandn(l, 1);
h2 = crandn(m, l);
hmatrix1 = diag(h1);
ptx = 1;
vinit = alphabet(round(4*rand(l, 1)+0.5));
htotinit = (h0+h2*diag(vinit)*h1)*sqrt(ptx);
ginit = htotinit/(1+htotinit’*htotinit);
mseinit = 1/(1+htotinit’*htotinit);
gold = ginit;
vold = vinit;
mseold = mseinit;
iter = 1;
while 1 == 1,
a = hmatrix1’*h2’*gold;
b = gold’*h0-1;
vcand = b/abs(b)*a./abs(a);
vnew = zeros(l, 1);
vnew = sqrt(2)*((real(vnew) > 0)-0.5+j*(imag(vnew) > 0)-0.5);
if round(norm(vnew-vold)) == 0,
break;
end
htotnew = (h0+h2*diag(vnew)*h1)*sqrt(ptx);
gold = 1/(1+htotnew’*htotnew)*htotnew;
mseold = 1/(1+htotnew’*htotnew);
msenew = mseold
vold = vnew;
iter = iter+1;
end
disp(sprintf("MSEinit=%f", mseinit))
disp(sprintf("MSEupdated=%f", msenew))
disp(sprintf("number of iterations=%i", iter))
Why is my matlab showing this error?
I am able to run my code here but not in my matlab program.
Can anyone help?% simple SIMO system
m = 2;
l = 20;
alphabet = [ exp(j*pi/4); exp(j*3/4*pi); exp(j*5/4*pi); exp(j*7/4*pi) ];
h0 = crandn(m, 1);
h1 = crandn(l, 1);
h2 = crandn(m, l);
hmatrix1 = diag(h1);
ptx = 1;
vinit = alphabet(round(4*rand(l, 1)+0.5));
htotinit = (h0+h2*diag(vinit)*h1)*sqrt(ptx);
ginit = htotinit/(1+htotinit’*htotinit);
mseinit = 1/(1+htotinit’*htotinit);
gold = ginit;
vold = vinit;
mseold = mseinit;
iter = 1;
while 1 == 1,
a = hmatrix1’*h2’*gold;
b = gold’*h0-1;
vcand = b/abs(b)*a./abs(a);
vnew = zeros(l, 1);
vnew = sqrt(2)*((real(vnew) > 0)-0.5+j*(imag(vnew) > 0)-0.5);
if round(norm(vnew-vold)) == 0,
break;
end
htotnew = (h0+h2*diag(vnew)*h1)*sqrt(ptx);
gold = 1/(1+htotnew’*htotnew)*htotnew;
mseold = 1/(1+htotnew’*htotnew);
msenew = mseold
vold = vnew;
iter = iter+1;
end
disp(sprintf("MSEinit=%f", mseinit))
disp(sprintf("MSEupdated=%f", msenew))
disp(sprintf("number of iterations=%i", iter))
Why is my matlab showing this error?
I am able to run my code here but not in my matlab program.
Can anyone help? % simple SIMO system
m = 2;
l = 20;
alphabet = [ exp(j*pi/4); exp(j*3/4*pi); exp(j*5/4*pi); exp(j*7/4*pi) ];
h0 = crandn(m, 1);
h1 = crandn(l, 1);
h2 = crandn(m, l);
hmatrix1 = diag(h1);
ptx = 1;
vinit = alphabet(round(4*rand(l, 1)+0.5));
htotinit = (h0+h2*diag(vinit)*h1)*sqrt(ptx);
ginit = htotinit/(1+htotinit’*htotinit);
mseinit = 1/(1+htotinit’*htotinit);
gold = ginit;
vold = vinit;
mseold = mseinit;
iter = 1;
while 1 == 1,
a = hmatrix1’*h2’*gold;
b = gold’*h0-1;
vcand = b/abs(b)*a./abs(a);
vnew = zeros(l, 1);
vnew = sqrt(2)*((real(vnew) > 0)-0.5+j*(imag(vnew) > 0)-0.5);
if round(norm(vnew-vold)) == 0,
break;
end
htotnew = (h0+h2*diag(vnew)*h1)*sqrt(ptx);
gold = 1/(1+htotnew’*htotnew)*htotnew;
mseold = 1/(1+htotnew’*htotnew);
msenew = mseold
vold = vnew;
iter = iter+1;
end
disp(sprintf("MSEinit=%f", mseinit))
disp(sprintf("MSEupdated=%f", msenew))
disp(sprintf("number of iterations=%i", iter))
Why is my matlab showing this error?
I am able to run my code here but not in my matlab program.
Can anyone help? error, matlab function, missing toolbox MATLAB Answers — New Questions
Error in powergui while running a PV array model, Error reported by S-function ‘fun_spssw_discc_DSS’.
I am runnin a grid connected PV array (number of PV module connected in series and parallel) model, for fault analysis in PV array. While running simulation i got an error message:
=== Simulation (Elapsed: 56 sec) ===
Error:An error occurred while running the simulation and the simulation was terminated
Caused by:
Error reported by S-function ‘sfun_spssw_discc_DSS’ in ‘file_name/powergui/EquivalentModel1/State-Space’:
Nonlinear element(s) (RnonLin, Lsat) failed to converge after 100 iterations, t=0.80005 sec
How to rectify the error, and what is the cause of error, as error is reported in powergui. Please suggest something.I am runnin a grid connected PV array (number of PV module connected in series and parallel) model, for fault analysis in PV array. While running simulation i got an error message:
=== Simulation (Elapsed: 56 sec) ===
Error:An error occurred while running the simulation and the simulation was terminated
Caused by:
Error reported by S-function ‘sfun_spssw_discc_DSS’ in ‘file_name/powergui/EquivalentModel1/State-Space’:
Nonlinear element(s) (RnonLin, Lsat) failed to converge after 100 iterations, t=0.80005 sec
How to rectify the error, and what is the cause of error, as error is reported in powergui. Please suggest something. I am runnin a grid connected PV array (number of PV module connected in series and parallel) model, for fault analysis in PV array. While running simulation i got an error message:
=== Simulation (Elapsed: 56 sec) ===
Error:An error occurred while running the simulation and the simulation was terminated
Caused by:
Error reported by S-function ‘sfun_spssw_discc_DSS’ in ‘file_name/powergui/EquivalentModel1/State-Space’:
Nonlinear element(s) (RnonLin, Lsat) failed to converge after 100 iterations, t=0.80005 sec
How to rectify the error, and what is the cause of error, as error is reported in powergui. Please suggest something. powergui, simulink, pv array, s-function, nonlinear element, matlab MATLAB Answers — New Questions
Hello everyone, I need help. I am working on a robot arm project using MATLAB and a webcam to detect colors. Do you have any lessons or tutorials for me?
Hello everyone, I’m working on a robot arm project using MATLAB and Arduino. I use my phone as a webcam to detect colors (like red or green). If the system detects a red object, the robot arm moves and picks it up, then puts it in the red storage area.
Now, I want to improve the project. Instead of the robot always picking red automatically, I want to click on an object in the camera video (GUI in MATLAB) to choose which color to pick — for example, if I click on a red object, it will pick up red. If I click on green, it will pick up green.
I find it hard to research or find tutorials. Can someone help me or guide me with examples or lessons?Hello everyone, I’m working on a robot arm project using MATLAB and Arduino. I use my phone as a webcam to detect colors (like red or green). If the system detects a red object, the robot arm moves and picks it up, then puts it in the red storage area.
Now, I want to improve the project. Instead of the robot always picking red automatically, I want to click on an object in the camera video (GUI in MATLAB) to choose which color to pick — for example, if I click on a red object, it will pick up red. If I click on green, it will pick up green.
I find it hard to research or find tutorials. Can someone help me or guide me with examples or lessons? Hello everyone, I’m working on a robot arm project using MATLAB and Arduino. I use my phone as a webcam to detect colors (like red or green). If the system detects a red object, the robot arm moves and picks it up, then puts it in the red storage area.
Now, I want to improve the project. Instead of the robot always picking red automatically, I want to click on an object in the camera video (GUI in MATLAB) to choose which color to pick — for example, if I click on a red object, it will pick up red. If I click on green, it will pick up green.
I find it hard to research or find tutorials. Can someone help me or guide me with examples or lessons? arduino, arm, webcam, color, detection, color segmentation MATLAB Answers — New Questions
How do you match the width of figures in a tiledlayout when using axis equal?
There are 4 figures combined in a tiledlayout. The respective ratio of their dimensions is 1:1, using axis equal. However, their widths do not match. How can this be adapted? See the MWE:
clear variables; close all; clc;
tiledlayout(4,1)
amplitudes = [200e-3,50e-3,10e-3,200e-6];
wavelenghts = [50,500e-3,50e-3,500e-6];
for i = 1:numel(amplitudes)
nexttile
axis equal
x = 0:(wavelenghts(i)/100):(wavelenghts(i)/2);
y = amplitudes(i)*(1-cospi(2*1/wavelenghts(i)*x));
hold on
area(-x,y)
area(x,y)
xlim([-1 1]*wavelenghts(i)/2)
ylim([0 max(y)])
clear x y;
endThere are 4 figures combined in a tiledlayout. The respective ratio of their dimensions is 1:1, using axis equal. However, their widths do not match. How can this be adapted? See the MWE:
clear variables; close all; clc;
tiledlayout(4,1)
amplitudes = [200e-3,50e-3,10e-3,200e-6];
wavelenghts = [50,500e-3,50e-3,500e-6];
for i = 1:numel(amplitudes)
nexttile
axis equal
x = 0:(wavelenghts(i)/100):(wavelenghts(i)/2);
y = amplitudes(i)*(1-cospi(2*1/wavelenghts(i)*x));
hold on
area(-x,y)
area(x,y)
xlim([-1 1]*wavelenghts(i)/2)
ylim([0 max(y)])
clear x y;
end There are 4 figures combined in a tiledlayout. The respective ratio of their dimensions is 1:1, using axis equal. However, their widths do not match. How can this be adapted? See the MWE:
clear variables; close all; clc;
tiledlayout(4,1)
amplitudes = [200e-3,50e-3,10e-3,200e-6];
wavelenghts = [50,500e-3,50e-3,500e-6];
for i = 1:numel(amplitudes)
nexttile
axis equal
x = 0:(wavelenghts(i)/100):(wavelenghts(i)/2);
y = amplitudes(i)*(1-cospi(2*1/wavelenghts(i)*x));
hold on
area(-x,y)
area(x,y)
xlim([-1 1]*wavelenghts(i)/2)
ylim([0 max(y)])
clear x y;
end matlab, figure, tiledlayout, axis euqal MATLAB Answers — New Questions
Reading column vectors from table with header text as variable name
I have an excel file with first row as header name for the corresponding column, each column has 4999 entries and 85 different readings. I want to load all the column vectors as a seperate variable. The variable name should be same as the header name from the excel file.
T = readtable("sample_data.csv");
S = T.Properties.VariableNames;
for i = 1:length(S)
assignin("base", S{i}, T.(S{i}))
end
This is what I came up with, but someone suggested not to use assignin command. Can some one suggest better alternative to this, also I don’t want to seperate the column vectors manually.
Thank you.I have an excel file with first row as header name for the corresponding column, each column has 4999 entries and 85 different readings. I want to load all the column vectors as a seperate variable. The variable name should be same as the header name from the excel file.
T = readtable("sample_data.csv");
S = T.Properties.VariableNames;
for i = 1:length(S)
assignin("base", S{i}, T.(S{i}))
end
This is what I came up with, but someone suggested not to use assignin command. Can some one suggest better alternative to this, also I don’t want to seperate the column vectors manually.
Thank you. I have an excel file with first row as header name for the corresponding column, each column has 4999 entries and 85 different readings. I want to load all the column vectors as a seperate variable. The variable name should be same as the header name from the excel file.
T = readtable("sample_data.csv");
S = T.Properties.VariableNames;
for i = 1:length(S)
assignin("base", S{i}, T.(S{i}))
end
This is what I came up with, but someone suggested not to use assignin command. Can some one suggest better alternative to this, also I don’t want to seperate the column vectors manually.
Thank you. importing excel data, variables, text file, solve MATLAB Answers — New Questions
Why cannot i learn simscape battery on ramp?
Post Content Post Content matlab MATLAB Answers — New Questions
Changing from 2D plot to 3D plot and to STL file
Hello everyone, I have these following codes: All of them creates a 2D plot, now I really want to create a 3D plot with Z: the thickness of plot XY. Then I want to convert it to STL file.
clc;
clear all;
close all;
% Input
R0 = 0.15;
a = 25*pi/180;
theta = 0:pi/1000:3*pi;
theta2 = theta + pi;
delta = pi/2;
%% Curl 1
R1 = R0*exp(a*(theta-delta));
X1 = R1.*cos(theta-delta);
Y1 = R1.*sin(theta-delta);
%% Curl 2
R2 = R0*exp(a*(theta-delta));
X2 = R2.*cos(theta);
Y2 = R2.*sin(theta);
%% Curl 3
R3 = R0*exp(a*(theta2-delta));
X3 = R1.*cos(theta2-delta);
Y3 = R1.*sin(theta2-delta);
%% Curl 4
R4 = R0*exp(a*(theta2 – delta));
X4 = R2.*cos(theta2);
Y4 = R2.*sin(theta2);
%% Extra plot (arc)
radius = R0*exp(a*(3*pi-pi/2));
a1 = pi/2;
b1 = pi;
h = 0;
k = 0;
t1 = linspace(a1,b1,3001);
X_arc1 = radius*cos(t1) + h;
Y_arc1 = radius*sin(t1) + k;
a2 = -pi/2;
b2 = 0;
t2 = linspace(a2,b2,3001);
X_arc2 = radius*cos(t2) + h;
Y_arc2 = radius*sin(t2) + k;
R5 = 0.05;
X5 = R5.*cos(theta);
Y5 = R5.*sin(theta);
%% Plot
figure(1);
plot(X1,Y1, ‘k’, ‘LineWidth’, 3); hold on
plot(X2,Y2, ‘k’, ‘LineWidth’, 3); hold on
P1 = plot(X_arc1, Y_arc1, ‘k’);
set(P1,’linewidth’,3);
axis([h-radius-1 h+radius+1 k-radius-1 k+radius+1])
axis square; hold on;
plot(X3,Y3, ‘k’, ‘LineWidth’, 3);hold on
plot(X4,Y4, ‘k’, ‘LineWidth’, 3);hold on
plot(X5,Y5, ‘k’, ‘LineWidth’, 3); hold on
P2 = plot(X_arc2, Y_arc2, ‘k’);
set(P2,’linewidth’,3);
axis(‘equal’);
title(‘Two-arm equiangular spiral antenna’, ‘fontsize’,14, ‘fontweight’,’bold’);
hold on
%% Filling with black color
patch([X1; flipud(X2)], [Y1; flipud(Y2)],’k’);
patch([X3; flipud(X4)], [Y3; flipud(Y4)],’k’);
X_arc1_bonus = horzcat(X_arc1, -4, -2.2, -2, -1, -0.3);
Y_arc1_bonus = horzcat(Y_arc1, 0.8, 2.2, 2.6, 3, 3.2);
fill(X_arc1_bonus, Y_arc1_bonus,’k’);
X_arc2_bonus = horzcat(X_arc2, 4, 2.2, 2, 1, 0.3);
Y_arc2_bonus = horzcat(Y_arc2, -0.8, -2.2, -2.6, -3, -3.2);
fill(X_arc2_bonus, Y_arc2_bonus,’k’);Hello everyone, I have these following codes: All of them creates a 2D plot, now I really want to create a 3D plot with Z: the thickness of plot XY. Then I want to convert it to STL file.
clc;
clear all;
close all;
% Input
R0 = 0.15;
a = 25*pi/180;
theta = 0:pi/1000:3*pi;
theta2 = theta + pi;
delta = pi/2;
%% Curl 1
R1 = R0*exp(a*(theta-delta));
X1 = R1.*cos(theta-delta);
Y1 = R1.*sin(theta-delta);
%% Curl 2
R2 = R0*exp(a*(theta-delta));
X2 = R2.*cos(theta);
Y2 = R2.*sin(theta);
%% Curl 3
R3 = R0*exp(a*(theta2-delta));
X3 = R1.*cos(theta2-delta);
Y3 = R1.*sin(theta2-delta);
%% Curl 4
R4 = R0*exp(a*(theta2 – delta));
X4 = R2.*cos(theta2);
Y4 = R2.*sin(theta2);
%% Extra plot (arc)
radius = R0*exp(a*(3*pi-pi/2));
a1 = pi/2;
b1 = pi;
h = 0;
k = 0;
t1 = linspace(a1,b1,3001);
X_arc1 = radius*cos(t1) + h;
Y_arc1 = radius*sin(t1) + k;
a2 = -pi/2;
b2 = 0;
t2 = linspace(a2,b2,3001);
X_arc2 = radius*cos(t2) + h;
Y_arc2 = radius*sin(t2) + k;
R5 = 0.05;
X5 = R5.*cos(theta);
Y5 = R5.*sin(theta);
%% Plot
figure(1);
plot(X1,Y1, ‘k’, ‘LineWidth’, 3); hold on
plot(X2,Y2, ‘k’, ‘LineWidth’, 3); hold on
P1 = plot(X_arc1, Y_arc1, ‘k’);
set(P1,’linewidth’,3);
axis([h-radius-1 h+radius+1 k-radius-1 k+radius+1])
axis square; hold on;
plot(X3,Y3, ‘k’, ‘LineWidth’, 3);hold on
plot(X4,Y4, ‘k’, ‘LineWidth’, 3);hold on
plot(X5,Y5, ‘k’, ‘LineWidth’, 3); hold on
P2 = plot(X_arc2, Y_arc2, ‘k’);
set(P2,’linewidth’,3);
axis(‘equal’);
title(‘Two-arm equiangular spiral antenna’, ‘fontsize’,14, ‘fontweight’,’bold’);
hold on
%% Filling with black color
patch([X1; flipud(X2)], [Y1; flipud(Y2)],’k’);
patch([X3; flipud(X4)], [Y3; flipud(Y4)],’k’);
X_arc1_bonus = horzcat(X_arc1, -4, -2.2, -2, -1, -0.3);
Y_arc1_bonus = horzcat(Y_arc1, 0.8, 2.2, 2.6, 3, 3.2);
fill(X_arc1_bonus, Y_arc1_bonus,’k’);
X_arc2_bonus = horzcat(X_arc2, 4, 2.2, 2, 1, 0.3);
Y_arc2_bonus = horzcat(Y_arc2, -0.8, -2.2, -2.6, -3, -3.2);
fill(X_arc2_bonus, Y_arc2_bonus,’k’); Hello everyone, I have these following codes: All of them creates a 2D plot, now I really want to create a 3D plot with Z: the thickness of plot XY. Then I want to convert it to STL file.
clc;
clear all;
close all;
% Input
R0 = 0.15;
a = 25*pi/180;
theta = 0:pi/1000:3*pi;
theta2 = theta + pi;
delta = pi/2;
%% Curl 1
R1 = R0*exp(a*(theta-delta));
X1 = R1.*cos(theta-delta);
Y1 = R1.*sin(theta-delta);
%% Curl 2
R2 = R0*exp(a*(theta-delta));
X2 = R2.*cos(theta);
Y2 = R2.*sin(theta);
%% Curl 3
R3 = R0*exp(a*(theta2-delta));
X3 = R1.*cos(theta2-delta);
Y3 = R1.*sin(theta2-delta);
%% Curl 4
R4 = R0*exp(a*(theta2 – delta));
X4 = R2.*cos(theta2);
Y4 = R2.*sin(theta2);
%% Extra plot (arc)
radius = R0*exp(a*(3*pi-pi/2));
a1 = pi/2;
b1 = pi;
h = 0;
k = 0;
t1 = linspace(a1,b1,3001);
X_arc1 = radius*cos(t1) + h;
Y_arc1 = radius*sin(t1) + k;
a2 = -pi/2;
b2 = 0;
t2 = linspace(a2,b2,3001);
X_arc2 = radius*cos(t2) + h;
Y_arc2 = radius*sin(t2) + k;
R5 = 0.05;
X5 = R5.*cos(theta);
Y5 = R5.*sin(theta);
%% Plot
figure(1);
plot(X1,Y1, ‘k’, ‘LineWidth’, 3); hold on
plot(X2,Y2, ‘k’, ‘LineWidth’, 3); hold on
P1 = plot(X_arc1, Y_arc1, ‘k’);
set(P1,’linewidth’,3);
axis([h-radius-1 h+radius+1 k-radius-1 k+radius+1])
axis square; hold on;
plot(X3,Y3, ‘k’, ‘LineWidth’, 3);hold on
plot(X4,Y4, ‘k’, ‘LineWidth’, 3);hold on
plot(X5,Y5, ‘k’, ‘LineWidth’, 3); hold on
P2 = plot(X_arc2, Y_arc2, ‘k’);
set(P2,’linewidth’,3);
axis(‘equal’);
title(‘Two-arm equiangular spiral antenna’, ‘fontsize’,14, ‘fontweight’,’bold’);
hold on
%% Filling with black color
patch([X1; flipud(X2)], [Y1; flipud(Y2)],’k’);
patch([X3; flipud(X4)], [Y3; flipud(Y4)],’k’);
X_arc1_bonus = horzcat(X_arc1, -4, -2.2, -2, -1, -0.3);
Y_arc1_bonus = horzcat(Y_arc1, 0.8, 2.2, 2.6, 3, 3.2);
fill(X_arc1_bonus, Y_arc1_bonus,’k’);
X_arc2_bonus = horzcat(X_arc2, 4, 2.2, 2, 1, 0.3);
Y_arc2_bonus = horzcat(Y_arc2, -0.8, -2.2, -2.6, -3, -3.2);
fill(X_arc2_bonus, Y_arc2_bonus,’k’); 2d plot to 3d plot MATLAB Answers — New Questions
Matlab Editor does not respond to keyboard inputs
Hi Everyone,
My Matlab editor stopped responding to most (but not all!) keyboard inputs. All letters+numbers stopped working, and SPACE as well, but BACKSPACE still works. And Ctrl+C/V also works, but not C or V???
Matlab editor is the only one with this problem, my command window does not have any problems.
I’m flabbergasted!
Laurens
ps. Version is R2013a, running on Windows 7 Professional, 64-bit.
ps #2. The problem disappears on restarting Matlab. I’m still very curious though, so if anyone has any ideas…Hi Everyone,
My Matlab editor stopped responding to most (but not all!) keyboard inputs. All letters+numbers stopped working, and SPACE as well, but BACKSPACE still works. And Ctrl+C/V also works, but not C or V???
Matlab editor is the only one with this problem, my command window does not have any problems.
I’m flabbergasted!
Laurens
ps. Version is R2013a, running on Windows 7 Professional, 64-bit.
ps #2. The problem disappears on restarting Matlab. I’m still very curious though, so if anyone has any ideas… Hi Everyone,
My Matlab editor stopped responding to most (but not all!) keyboard inputs. All letters+numbers stopped working, and SPACE as well, but BACKSPACE still works. And Ctrl+C/V also works, but not C or V???
Matlab editor is the only one with this problem, my command window does not have any problems.
I’m flabbergasted!
Laurens
ps. Version is R2013a, running on Windows 7 Professional, 64-bit.
ps #2. The problem disappears on restarting Matlab. I’m still very curious though, so if anyone has any ideas… keyboard, editor MATLAB Answers — New Questions
How to rotate domain, but the lon and lat are on the contour (not on the axis)
Dear all, as far we know Matlab will traditionally generate 4 white areas when using the following script on rotate domain:
figure;
p=pcolor(lon_rho,lat_rho,h2a);shading interp;
An example illustration is attached. Instead of generating a map like the illustration, I want the lon and lat to be directly placed on the generated contour, note the black numbers in the attachment (not on the matlab x and y axis). Is this possible?
and this is a perfect example of what I want to get:
https://discourse.julialang.org/t/how-to-plot-a-2d-rotated-array/47603/10Dear all, as far we know Matlab will traditionally generate 4 white areas when using the following script on rotate domain:
figure;
p=pcolor(lon_rho,lat_rho,h2a);shading interp;
An example illustration is attached. Instead of generating a map like the illustration, I want the lon and lat to be directly placed on the generated contour, note the black numbers in the attachment (not on the matlab x and y axis). Is this possible?
and this is a perfect example of what I want to get:
https://discourse.julialang.org/t/how-to-plot-a-2d-rotated-array/47603/10 Dear all, as far we know Matlab will traditionally generate 4 white areas when using the following script on rotate domain:
figure;
p=pcolor(lon_rho,lat_rho,h2a);shading interp;
An example illustration is attached. Instead of generating a map like the illustration, I want the lon and lat to be directly placed on the generated contour, note the black numbers in the attachment (not on the matlab x and y axis). Is this possible?
and this is a perfect example of what I want to get:
https://discourse.julialang.org/t/how-to-plot-a-2d-rotated-array/47603/10 rotate domain, pcolor, axis MATLAB Answers — New Questions
How to Add Measured Output Disturbance to my State Space Model for MPC Controller?
Hello Respectable Community,
I am looking for attention of experts from following background state space modeling and model predictive controller.
Subject: I want to add affect of "Zd" step disturbance to my current plant state space equation which will be use as measured disturbance in mpc controller block.
I am designing an MPC controller, which should be robust to disturbance rejection and I have a known Measured Disturbance which I want to add to "md", but I am getting some errors.
I have following state space equation of my plant, which I found using system identification technique.
%Transfer Function By System identification
num = [-1.324 6.6e05 -6.914e09 5.128e13 -1.054e19]
den = [1 1.99e04 1.371e09 1.145e13 4.037e17]
%Conversion to SS
plant = tf([num],[den], ‘OutputDelay’,1)
% Simplify the model to remove insignificant poles and zeros
SSpzt = ss(plant) %This gives continuous time linear state space model of TFpzt
Ac = SSpzt.A;
Bc = SSpzt.B;
Cc = SSpzt.C;
Dc = SSpzt.D;
Ts = 3.1309e-05 %Sampling time actual = 3.1309e-05
Td = 0.009; %time Delay baed on frequency data
%Contineous Model to discrete Statespace Matrices
SSpzt_dis = c2dm(Ac,Bc,Cc,Dc,Ts)
[Ad,Bd,Cd,Dd] = c2dm(Ac, Bc, Cc, Dc, Ts)
Dd = 0
sysdis = ss(Ad,Bd,Cd,Dd,Ts)
sysdis shows my plant discrete statespace model which i used to design mpc controller. but when I add md as step, it gives me following error and I know this is because I think I need to add some rows and coloum to my matrix B or C for measured disturbance, but I am not sure how to add them. So, I am asking here for help.
But when I use MPC Controller without md it works fine, but it is not robust to disturbance rejection, and my main concern is to eliminate the disturbance effectively. Even it doesn’t respond to disturbance. I am looking for help in this regards. Attached is the files of my design. First run PZTModel1.m file then load PID_Controller22_December, and DisRejection_27December files and open MPC_simulink1.Hello Respectable Community,
I am looking for attention of experts from following background state space modeling and model predictive controller.
Subject: I want to add affect of "Zd" step disturbance to my current plant state space equation which will be use as measured disturbance in mpc controller block.
I am designing an MPC controller, which should be robust to disturbance rejection and I have a known Measured Disturbance which I want to add to "md", but I am getting some errors.
I have following state space equation of my plant, which I found using system identification technique.
%Transfer Function By System identification
num = [-1.324 6.6e05 -6.914e09 5.128e13 -1.054e19]
den = [1 1.99e04 1.371e09 1.145e13 4.037e17]
%Conversion to SS
plant = tf([num],[den], ‘OutputDelay’,1)
% Simplify the model to remove insignificant poles and zeros
SSpzt = ss(plant) %This gives continuous time linear state space model of TFpzt
Ac = SSpzt.A;
Bc = SSpzt.B;
Cc = SSpzt.C;
Dc = SSpzt.D;
Ts = 3.1309e-05 %Sampling time actual = 3.1309e-05
Td = 0.009; %time Delay baed on frequency data
%Contineous Model to discrete Statespace Matrices
SSpzt_dis = c2dm(Ac,Bc,Cc,Dc,Ts)
[Ad,Bd,Cd,Dd] = c2dm(Ac, Bc, Cc, Dc, Ts)
Dd = 0
sysdis = ss(Ad,Bd,Cd,Dd,Ts)
sysdis shows my plant discrete statespace model which i used to design mpc controller. but when I add md as step, it gives me following error and I know this is because I think I need to add some rows and coloum to my matrix B or C for measured disturbance, but I am not sure how to add them. So, I am asking here for help.
But when I use MPC Controller without md it works fine, but it is not robust to disturbance rejection, and my main concern is to eliminate the disturbance effectively. Even it doesn’t respond to disturbance. I am looking for help in this regards. Attached is the files of my design. First run PZTModel1.m file then load PID_Controller22_December, and DisRejection_27December files and open MPC_simulink1. Hello Respectable Community,
I am looking for attention of experts from following background state space modeling and model predictive controller.
Subject: I want to add affect of "Zd" step disturbance to my current plant state space equation which will be use as measured disturbance in mpc controller block.
I am designing an MPC controller, which should be robust to disturbance rejection and I have a known Measured Disturbance which I want to add to "md", but I am getting some errors.
I have following state space equation of my plant, which I found using system identification technique.
%Transfer Function By System identification
num = [-1.324 6.6e05 -6.914e09 5.128e13 -1.054e19]
den = [1 1.99e04 1.371e09 1.145e13 4.037e17]
%Conversion to SS
plant = tf([num],[den], ‘OutputDelay’,1)
% Simplify the model to remove insignificant poles and zeros
SSpzt = ss(plant) %This gives continuous time linear state space model of TFpzt
Ac = SSpzt.A;
Bc = SSpzt.B;
Cc = SSpzt.C;
Dc = SSpzt.D;
Ts = 3.1309e-05 %Sampling time actual = 3.1309e-05
Td = 0.009; %time Delay baed on frequency data
%Contineous Model to discrete Statespace Matrices
SSpzt_dis = c2dm(Ac,Bc,Cc,Dc,Ts)
[Ad,Bd,Cd,Dd] = c2dm(Ac, Bc, Cc, Dc, Ts)
Dd = 0
sysdis = ss(Ad,Bd,Cd,Dd,Ts)
sysdis shows my plant discrete statespace model which i used to design mpc controller. but when I add md as step, it gives me following error and I know this is because I think I need to add some rows and coloum to my matrix B or C for measured disturbance, but I am not sure how to add them. So, I am asking here for help.
But when I use MPC Controller without md it works fine, but it is not robust to disturbance rejection, and my main concern is to eliminate the disturbance effectively. Even it doesn’t respond to disturbance. I am looking for help in this regards. Attached is the files of my design. First run PZTModel1.m file then load PID_Controller22_December, and DisRejection_27December files and open MPC_simulink1. mpc, model predective controller, model predictive controller, mpxc, state space modeling, ss modeling, control system toolbox MATLAB Answers — New Questions
I want to generate code combining Platform Architecture(MCU Peripherals), Functional Architecture, Logical Architecture with Schedular so how i can connect all components.
I want to understand how i can generare RTE layer(schedular) in system composer.
i want to use Platform Architecture for MCU Drivers code in S-function. which will be connected to schedular component (Statechart). And schedular will be connected to Functional Architecture and Functional Architecture will be linked to Logical Architecture and with theirs simulink behavior models.
can i generate deployable code by system composer by following avobe workflow?
how i should connect schedular(Port interface for function call) to functional Archicteure and how i can send response of task complition to Schedular component?I want to understand how i can generare RTE layer(schedular) in system composer.
i want to use Platform Architecture for MCU Drivers code in S-function. which will be connected to schedular component (Statechart). And schedular will be connected to Functional Architecture and Functional Architecture will be linked to Logical Architecture and with theirs simulink behavior models.
can i generate deployable code by system composer by following avobe workflow?
how i should connect schedular(Port interface for function call) to functional Archicteure and how i can send response of task complition to Schedular component? I want to understand how i can generare RTE layer(schedular) in system composer.
i want to use Platform Architecture for MCU Drivers code in S-function. which will be connected to schedular component (Statechart). And schedular will be connected to Functional Architecture and Functional Architecture will be linked to Logical Architecture and with theirs simulink behavior models.
can i generate deployable code by system composer by following avobe workflow?
how i should connect schedular(Port interface for function call) to functional Archicteure and how i can send response of task complition to Schedular component? model, code generation, system composer MATLAB Answers — New Questions