Thank you for this code.
I was looking for an alternative to the "serial" given by Matlab because it is too slow/cannot compile to mex.
Your code is faster and indeed easy to understand.
Yet being new to Matlab I don't understand where does the WriteFile function come from. Likewise, is there a ReadFile function one could use in the same way ?
WriteFile is part of the Windows API.
Check out ReadFile here: http://msdn.microsoft.com/en-us/library/aa365467(VS.85).aspx
I'm normally program Linux or Mac, so I don't know this stuff well (I learned about WriteFile when I wrote SerialWrite)
Comment only
20 Apr 2009
SerialWrite Mex
SerialWrite is written in C and allows you to write to a serial or com port.
Thank you for this code.
I was looking for an alternative to the "serial" given by Matlab because it is too slow/cannot compile to mex.
Your code is faster and indeed easy to understand.
Yet being new to Matlab I don't understand where does the WriteFile function come from. Likewise, is there a ReadFile function one could use in the same way ?
Comment only