フィルターのクリア

How to display serial data

1 回表示 (過去 30 日間)
Ghufran Aldawood
Ghufran Aldawood 2021 年 1 月 5 日
Hello all,
I am having an issue receiving serial data and I am not sure where the problem is. I have an FTDI connected to the USB port of my PC and the FTDI is recieving constant RF signal from an RF receiver. This is the code I have so far, but no data is being displayed in the command window. I appreciate any help!
s = serialport("COM3",1200);
configureCallback(s,"terminator",@readSerialData)
clear s
function readSerialData(device,~)
data = readline(device)
disp(data)
end

回答 (0 件)

カテゴリ

Help Center および File ExchangeData Acquisition Toolbox Supported Hardware についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by