Sending instrument data from Arduino to MatLab - WiShield

Can you post your arduino code so I can have a look if I see optimizations?