Hi, i`m trying to make a communication between two PC`s through serial port. How to do this with matlab. The scene is: The PC#1 generate random data and use the serial port to transmit the data to PC#2 through a serial connection (cross connection), this PC (PC#2) read data from the serial port and show it in screen. Does anybody know how to do that? Thanks Thiago |
|
Serial Communication PC 2 PC
Started by ●May 21, 2003
Reply by ●May 21, 20032003-05-21
You can use the MATLAB serial command to do this. Type help serial in
command window or in help section to see an example. In Matlab a serial port is treated as a file and once you open it after setting all the relevant parameters for serial connection (like baudrate etc) you can use commands like fwrite to transfer data to the port and fread to read data. Premal thiagofalcaobr <> wrote: Hi, i`m trying to make a communication between two PC`s through serial port. How to do this with matlab. The scene is: The PC#1 generate random data and use the serial port to transmit the data to PC#2 through a serial connection (cross connection), this PC (PC#2) read data from the serial port and show it in screen. Does anybody know how to do that? Thanks Thiago Yahoo! Groups Sponsor _____________________________________ Note: If you do a simple "reply" with your email client, only the author of this message will receive your answer. You need to do a "reply all" if you want your answer to be distributed to the entire group. _____________________________________ About this discussion group: To Join: To Post: To Leave: Archives: http://www.yahoogroups.com/group/matlab More DSP-Related Groups: http://www.dsprelated.com/groups.php3 --------------------------------- |