Created
February 10, 2015 06:27
-
-
Save abcsds/730dc51c705674dbab5e to your computer and use it in GitHub Desktop.
Octave conection to serial port
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fid = fopen("/dev/ttyUSB0", "r+") | |
fwrite(fid, your_data) | |
out = fread(fid) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
fopen returns -1