This sample works on Windows with CP932 (Japenese). If the library is in the ASCII-only PATH, it works fine. But if the library is in the non-ASCII PATH, SystemError ...
write () and fwrite () require the matlab data type to be uint8. For example, if you do fwrite (this.comm, [10 28 10 13]) you are sending a list of four double, each double requires 8 bytes (64 bit) ...