フィルターのクリア

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 Center および File ExchangeSerial and USB Communication についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by