- Check Drivers: Ensure the DSP board's drivers are properly installed on your system.
- MATLAB Packages: Use `supportPackageInstaller` to add the necessary MATLAB support packages.
- MATLAB Setup: Configure MATLAB's communication settings, such as the COM port for your DSP board.
- Test the Connection: Try MATLAB's `serialport`, `read`, and `write` functions to verify connectivity.
- Permissions: Make sure MATLAB has the required permissions to access USB ports.
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
10 次查看(过去 30 天)
显示 更早的评论
回答(1 个)
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:
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:
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!