Thanks everyone for your reply,
I've searched a lot on state machine based on your recommendations and completed some tutorials. I'll make some attempts and come back with the results.
One more thing: is it possible to prevent someone from aborting the VI using a password ? I'm implementing a home automation and security system and someone simply aborting the VI will make my work much less credible.
Thanks Again,
K. Sadek