TCP: separate lines MATLAB RasPi - Raspberry Pi Forums


i'm beginner @ raspi programming. i'm trying send data raspi on tcp matlab. need control 2 stepper motors simultaneously, send control time in single line matlab, in,
dn:0_r:0.345_l:0.222
, 10 instances of such data sent consecutively matlab delay of 0.05 sec. when print output as
dn:0_r:0.345_l:0.222dn:0_r:0.444_l:0.221dn:0_r:0.341_l:0.233
use '_' , ':' split data , identify motors. data in received in above manner, code can't differentiate in between lines

can me this? how can make raspi differentiate between 2 separate data lines?

insert separator character such comma or @ delimit each line. add code in received data identify start , end of each line.


raspberrypi



Comments