Simulation Progress Email Notifier (SPEN)

Leave your computer unattended and get notification about the model's simulation progress by gmail.
603 Downloads
Updated 2 Nov 2010

View License

Project name : SPEN (Simulation Progress Email Notifier)
Date : 30-10-2010
Developer : CyberWalker (Ioannis Mandourarakis)
-------------------------------------------------------------------

Purpose :
------------
To be able to leave unattended your computer processing a time consuming simulation project without any worries of its completion progress. Provided that you have a 3G mobile phone or a laptop with you, you can get notifications of your model's simulation progress, anywhere in the world, by connecting to your GMAIL account.

'Installation'
---------------
This small project is consisted of two main files, one simulink model (.mdl) and one Matlab code program (.m).
In order for them to work properly, they must co-exist in the MATLAB's assigned working folder (for example C:\Program Files\MATLAB\bin) or any other folder assigned as the main working folder for such a purpose.

Intergration to your simulink project
-----------------------------------------------
Just copy the main subsystem block 'SPEM' on your open project.
Then double click on the block in order to enter the notification values you wish. The 'Simulation Time' must correspond to the simulation time of your project, and the 'Notification Step Percentage' on the portion of elapsed time/percentage you wish to be notified. For example, if the Simulation Time is 73 (seconds) and the Notification Step Percentage is 5 (%) then you will be notified by email 20 times in total (each time for every 73/20=3.65 seconds of elapsed simulation time).
Every email (starting from the one at 5%) will have one text file attached (progress.txt). This file will hold the value of the current percentage that the running simulation will be 'currently' processing. The last email notification will not have a text file attached but just a subject that will notify you about the simulation completion. ('Simulation Completed')

Considerations
--------------------
The SPEM block is compatible with all GMAIL accounts, so provided that you have one, you just have to enter your email address and email password to the appropriate places into the .m file's code.
You will have to replace the phrases 'your.account@gmail.com' and 'your_password' with the ones that correspond to your gmail account. There are in total 3 fields that you have to type your email address and 1 that you have to type your email password.
The code lines with the associated fields begin with the following characters :
* mail = 'your.account@gmail.com';
* password = 'your_password';
* sendmail('your.account@gmail.com',...
Please note that you MUST keep the quotes!

Cite As

Ioannis Mandourarakis (2024). Simulation Progress Email Notifier (SPEN) (https://www.mathworks.com/matlabcentral/fileexchange/29251-simulation-progress-email-notifier-spen), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2010a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Simulink in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Get notified by email about your simulink project's progress/

Get notified by email about your simulink project's progress/

Version Published Release Notes
1.3.0.0

Syntactic changes.

1.2.0.0

Syntactic

1.1.0.0

Syntactic corrections in the description.

1.0.0.0