Global Variable (Value Read Serially from Matlab) Becomes 0

Yes, after the IDE prints the message that compilation was successful, but before at actually starts the upload process.

Nice it actually works, Thanks so much....