RD-KL25-AGMP01 eror Matlab.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

RD-KL25-AGMP01 eror Matlab.

451 Views
alexanderbarano
Contributor I

Hello. At me it is impossible to read data from the sensor RD-KL25-AGMP01 in Matlab in any way. When using fscanf function (), I receive an error: Unsuccessful read: The input buffer was filled before the Terminator was reached. 'serial' unable to read all requested data. My code

s=serial('com3');

set(s, 'BaudRate',9600 , 'DataBits',8, 'StopBits',1, 'Parity', 'none', 'Terminator', 'LF')

fopen(s)

fscanf(s)

Unsuccessful read: The input buffer was filled before the Terminator was reached. 'serial' unable to read all requested data.

I changed baudrate, the terminator, the input buffer,  but the error didn't clean up.I think that fscanf needs to be caused in interruption when the terminator came, but I don't know how to realize it in Matlab.

pastedImage_1.png

0 Kudos
0 Replies