HELP!~how to export data from arduino to simulink?

Hi, guys

I wanna control the position of a DC motor with an optical encoder. My idea is to wirte code on arduino for reading the angle from encoder and export the data to simulink, then I can control the motor.

I tried to use Serial receive in simulink arduino support package But when i connected with arduino, there was nothing shown on the scope connecting with serial receive block. Basically, it didn't work at all. Can anybody tell me how to use serial receive in the simulink arduino support?

(deleted)

spycatcher2k: OK - and what did they say in the simulink forum?

i didn't post this question in the simulink forum. I was wondering if i need to 'include' any codes on arduino ? like 'import serial processing'. but I think it is for processing but not arduino.