Is it possible to export measurement reading of Signal Statistics in Simulink Scope block to workspace? If it is possible, then how?
3 ビュー (過去 30 日間)
古いコメントを表示
Hello and thank you for you concern Sir. As mention above, I'm fully aware about the method on data logging from the scope display to workspace. However, the logging only record/export the simulation signal data to our workspace. Refer to image that i attached, the scope able to determine the Max, Min, Peak to peak, Median and RMS value for the simulation. These reading is in the Signal Statistics section if the scope display enable it from Tools>Measurement>Signal Statistics.
My motivation is to obtain the RMS value recorded in the scope and export it to workspace or save it to a file or etc. It is because I'm dealing with multiple/repitative simulations with different parameters just to observe the changes of the RMS value. Hence, is there any possible way to export the readings? or any possible way for me to obtain RMS value of the simulation.
Notes: I had try the RMS block in the simulink, however it did not provide the correct measurement. I think this happen due to my sample data if from discharging of battery model (DC current). Maybe, I'm not verry sure. Sorry.
Anyway, thank you in advance if someone able to help me on this. I really appriciate your concern Sir.
1 件のコメント
M. Makizh Murugu
2024 年 6 月 2 日
Hello Mr Anwar. I am facing the same issue here. I'm recording the changes happening in RMS value of Voltage and Current for different parameters and i need to update those values in an excel sheet. Have you found any methods to do that?
回答 (1 件)
MULI
2024 年 8 月 19 日
Hi Syafiq,
I understand that you want to export ‘RMS’ value of signal. One of the approaches is using a “MATLAB Function” block before scope.
Below is the example code that can be used to compute ‘RMS’:
function rmsValue = computeRMS(signal)
rmsValue = sqrt(mean(signal.^2));
end
Adding this block before scope can be used to compute the ‘RMS’.
You may refer to this link for more information related to “MATLAB Function” block
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で View and Analyze Simulation Results についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!