Mex_C_Serial_Interf​ace

버전 1.1.0.0 (113 KB) 작성자: Jeffrey Friesen
C_Serial Interface for fast serial communication from matlab.
다운로드 수: 476
업데이트 날짜: 2017/6/28

An interface for faster serial within MATLAB by implementing c_serial code base:
https://github.com/rm5248/CSerial
This uses mex functions, so you will need to get the mex compiler within matlab working. I implemented this library to reduce latency and enable high bandwidth communication with an embedded micro-controller connected through a serial port. I have achieved 500 Hz round trip communication with a pic through an ft232r FTDI chip using this interface.
The example.m file contains brief instructions on how to use this interface. Make sure to compile with mex before trying to run the example (I compiled with visual studio 2013, let me know if people run into compiler errors). I designed the interface to closely resemble using MATLAB's built in serial IO functions. readPort is analogous to fread and writePort is analogous to fwrite in this context.
Remember if you are using an FTDI FT232r (some Arduinos and many other MCUs use this chip) to turn down latency to achieve these speeds as in the following link: https://projectgus.com/2011/10/notes-on-ftdi-latency-with-arduino/

Tested in Linux, Fixed some bugs, it is now working!

인용 양식

Jeffrey Friesen (2026). Mex_C_Serial_Interface (https://github.com/Jfriesen222/Mex_C_Serial_Interface), GitHub. 검색 날짜: .

MATLAB 릴리스 호환 정보
개발 환경: R2015a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 MATLAB Compiler에 대해 자세히 알아보기

GitHub 디폴트 브랜치를 사용하는 버전은 다운로드할 수 없음

버전 게시됨 릴리스 정보
1.1.0.0

Added 64 bit linux support. Compiled with gcc in Ubuntu 16.04.

1.0.0.0

Fixed some errors in description!

이 GitHub 애드온의 문제를 보거나 보고하려면 GitHub 리포지토리로 가십시오.
이 GitHub 애드온의 문제를 보거나 보고하려면 GitHub 리포지토리로 가십시오.