ashwini1
Member level 1
serial problem matlab
Hi,
In my application i am reading data from serial port. I have created exe of the application using matlab compiler(mcc) . THe problem is that whenever i get null or whenever there is time out, program stops running and there will not be any error message displayed on the command prompt.
Note: i am reading serial data at every one second. I have used timer to poll the serial port at every one second.
One more observation is that the same code works fine when i run it in matlab. I mean even if null is received/'time out' occurs, program polls serial port in next iteration (next cycle of timerfcn).
Any ideas !!
Thanks !
Ashwini
Hi,
In my application i am reading data from serial port. I have created exe of the application using matlab compiler(mcc) . THe problem is that whenever i get null or whenever there is time out, program stops running and there will not be any error message displayed on the command prompt.
Note: i am reading serial data at every one second. I have used timer to poll the serial port at every one second.
One more observation is that the same code works fine when i run it in matlab. I mean even if null is received/'time out' occurs, program polls serial port in next iteration (next cycle of timerfcn).
Any ideas !!
Thanks !
Ashwini