I hate it when all those online tutorials be talking about so many alternative options and so extra in details that they become unfriendly towards beginner and you sir did a fine job!
Sir, I would like to know, is there any way to export Simulink data to workspace, while simulink model is running i.e . real time data. My basic requirement is to export MATLAB Simulink data to external Application(A windows application made by me, that is TCP socket connection protocol enabled) via, MATLAB's TCP/IP send block, but I can not find any way do it. Hence I am planning to, transmit data to Workspace and then transmit it to my program via command Window's TCP commands. please suggest me the most suitable and easy way to accomplish my task. [N.B: My main problem is, I do not know how to read the data from the network socket that is fed(updated) by MATLAB TCP send ]
simin fct. lets you import contents from your workspace to simulink. example of how to get data on a table by hand (calculating power in that example, where Ampere and Volt are both simout variables) you can also select what output you want in the simout properties: A=Ampere.Data; V=Volt.Data; AV = table(A,V); further on to export it to an excel sheet: fileName='results.xlsx'; writetable(AV,fileName); winopen(fileName);
Hello Mr Powell, Thanks for the video. I have an extra question. You are using feedback. When I am using feedback, I am getting an algebraic loop error and I am not getting desired output even after using a delay block. Can you let me know if you have faced this problem and how did you address it.
yes, it was not exactly what i was looking for, but it solved my problem! using as array i was limited to a (54x4) vector, what it was a pain, since i need 1000+ positions in line
I hate it when all those online tutorials be talking about so many alternative options and so extra in details that they become unfriendly towards beginner and you sir did a fine job!
Great explanation
Helpful and straightforward, thanks!
Sir,
I would like to know, is there any way to export Simulink data to workspace, while simulink model is running i.e . real time data. My basic requirement is to export MATLAB Simulink data to external Application(A windows application made by me, that is TCP socket connection protocol enabled) via, MATLAB's TCP/IP send block, but I can not find any way do it. Hence I am planning to, transmit data to Workspace and then transmit it to my program via command Window's TCP commands. please suggest me the most suitable and easy way to accomplish my task.
[N.B: My main problem is, I do not know how to read the data from the network socket that is fed(updated) by MATLAB TCP send ]
You saved my ass man! Good luck for everything !
I owe you my life rn
sir, would you please explain abut how to upload workspace to simulink and convert the data to array or matrix
simin fct. lets you import contents from your workspace to simulink.
example of how to get data on a table by hand (calculating power in that example, where Ampere and Volt are both simout variables) you can also select what output you want in the simout properties:
A=Ampere.Data;
V=Volt.Data;
AV = table(A,V);
further on to export it to an excel sheet:
fileName='results.xlsx';
writetable(AV,fileName);
winopen(fileName);
very nice
Hello Mr Powell, Thanks for the video. I have an extra question. You are using feedback. When I am using feedback, I am getting an algebraic loop error and I am not getting desired output even after using a delay block. Can you let me know if you have faced this problem and how did you address it.
yes, it was not exactly what i was looking for, but it solved my problem!
using as array i was limited to a (54x4) vector, what it was a pain, since i need 1000+ positions in line
i mean, array -inherit
Hi
Do you have more videos about MATLAB?
how i can extract data at specific time like at t=20 minit what is v value is it doable?
Vielen Dank !
r 2019b ?
excellent! Thanks for the tip!
Thanks a lot!
THANK YOUUUU
Thank you sir
Very informative video. However, the volume of the audio is very low and I can barely hear what you are saying.
Thanks bro!
Hello I love you