I have a simulation that might take hours or days to complete. How can I update the user of the progress of this simulation without degrading simulation performance?
This can be done using the following function set in the InitFcn Callback:
end_time=str2double(get_param(gcs,'stoptime'));
Then an approprately sampled clock source block can be connected to a gain block that references the END_TIME variable that is initialized by the InitFcn callback. This will compute the percent complete value that can be displayed in the MATLAB command window using an s-function of an embedded MATLAB function. A display block would also be useful for this purpose.
Matlabsolutions.com provides guaranteed satisfaction with a
commitment to complete the work within time. Combined with our meticulous work ethics and extensive domain
experience, We are the ideal partner for all your homework/assignment needs. We pledge to provide 24*7 support
to dissolve all your academic doubts. We are composed of 300+ esteemed Matlab and other experts who have been
empanelled after extensive research and quality check.
Matlabsolutions.com provides undivided attention to each Matlab
assignment order with a methodical approach to solution. Our network span is not restricted to US, UK and Australia rather extends to countries like Singapore, Canada and UAE. Our Matlab assignment help services
include Image Processing Assignments, Electrical Engineering Assignments, Matlab homework help, Matlab Research Paper help, Matlab Simulink help. Get your work
done at the best price in industry.