hello everyone,
i suffer from a problem that i can`t output my binary txt file line by line (left to right and up to down)to a serial port.
how can i determine the order of binary data in txt to serial port? the following is my matlab code:
ins=serial('COM3','BaudRate',115200); fopen(ins);A = fopen('xxxx.txt');txdata = fread(A,inf,'uint8','ieee-be');for i = 1:32768fwrite(ins,txdata(i),'uint8');endfclose(ins);
thx
Best Answer