필터 지우기
필터 지우기

matlab can't read usb port , and can't connect with the dsp board through read board, the dsp board is working and my laptop can detect, but in matlab it cannot read from dsp

조회 수: 11 (최근 30일)

답변 (1개)

Chetan
Chetan 2023년 12월 29일
It seems you're having trouble with MATLAB recognizing a USB-connected DSP board.
Here's a concise guide to address the issue:
  1. Check Drivers: Ensure the DSP board's drivers are properly installed on your system.
  2. MATLAB Packages: Use `supportPackageInstaller` to add the necessary MATLAB support packages.
  3. MATLAB Setup: Configure MATLAB's communication settings, such as the COM port for your DSP board.
  4. Test the Connection: Try MATLAB's `serialport`, `read`, and `write` functions to verify connectivity.
  5. Permissions: Make sure MATLAB has the required permissions to access USB ports.
For serial communication, you can use the serial or serialport function to create a serial port object. Here's an example:
% Replace 'COM3' with the actual COM port your DSP board is connected to.
s = serialport('COM3', 9600);
configureTerminator(s, 'LF'); % Or the appropriate terminator for your device
% Now you can read/write using the 'read' and 'write' functions.
Refer to the following MathWorks Documentation for more information:

카테고리

Help CenterFile Exchange에서 Serial and USB Communication에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by