0

Serial Forwarder and Matlab

view story
linux-howto

http://askubuntu.com – I am trying to read data from Serial Forwarder in Matlab and then save it into text file. When I use the command: java net.tinyos.tools.Listen -comm serial@/dev/ttyUSB2:telosb in the terminal I get the data there. Then in Matlab I have tried: s = serial('/dev/ttyUSB2','BaudRate',57600,'DataBits',8); fopen(s); and it seems to work just fine. Now what should I do to save all this to a file? p.s When I use the s=serial...... the Serial Forwarder stops showing data in the Terminal but when I use fsclose(s) in matlab it continues to show it. (HowTos)