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!