Is it possible to export measurement reading of Signal Statistics in Simulink Scope block to workspace? If it is possible, then how?
5 views (last 30 days)
Show older comments
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 Comment
M. Makizh Murugu
on 2 Jun 2024
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?
Answers (1)
MULI
on 19 Aug 2024
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 Comments
See Also
Categories
Find more on View and Analyze Simulation Results in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!