SerialWrite Mex
by Kevin Barry
15 Apr 2009
SerialWrite is written in C and allows you to write to a serial or com port.
|
Watch this File
|
| File Information |
| Description |
SerialWrite is written in C and allows you to write to a serial port without using the Matlab SERIAL interface. The reason for this is that Matlab's SERIAL often crashes/"Times out". The code is short and easy to understand for future modifications, or it can be used as is.
serial_write('open', 'COM40', 57600);
serial_write('write', 'Hello');
serial_write('write_line', ', World'); % Adds the \r\n
serial_write('close'); |
| MATLAB release |
MATLAB 7.5 (R2007b)
|
| Other requirements |
Windows |
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
|
Contact us at files@mathworks.com