From: Derek on 27 Jul 2010 11:33 I am trying to set up a serial communication link using a multi byte serial read terminator other than CR/LF. I need to read serial data that ends in a prompt sent by the transmitter, so ideally my read terminator would be [char(13), '>'] and I have tried to set the terminator to set(m, 'Terminator', { [char(13), '>'] , char(13) }; but this is not valid. Is there any way to do what I need? Thanks in advance.
From: Donn Shull on 27 Jul 2010 13:30 "Derek " <derek_cowley(a)bose.com> wrote in message <i2mu7h$23s$1(a)fred.mathworks.com>... > I am trying to set up a serial communication link using a multi byte serial read terminator other than CR/LF. I need to read serial data that ends in a prompt sent by the transmitter, so ideally my read terminator would be [char(13), '>'] and I have tried to set the terminator to > > set(m, 'Terminator', { [char(13), '>'] , char(13) }; > > but this is not valid. Is there any way to do what I need? > > Thanks in advance. Unfortunately the terminator must be a single ascii character of the equivalent decimal between 0 1nd 127. the only exception appears to be the special two byte sequences 'LF/CR' and 'CR/LF' Hope this helps, Donn
|
Pages: 1 Prev: Compile with gcc in Windows using OpenMP Next: can sting variables run through loops question |