From: Gül Begüm Semis on
hi,
i am working on a project. right now i want to start executing an m file when a sensor is on.
the sensor is connected to a pic i programmed the pic to recieve data. howeever i cannot see whether the sensor is on or off from matlab.

can you help me?
i used fwrite function to send data to pic, however fread function doesnt work when i am trying to recieve data.

thank you,