필터 지우기
필터 지우기

Read from multiple serial ports simultaneously

조회 수: 6 (최근 30일)
Ziqi Yang
Ziqi Yang 2020년 8월 26일
편집: Mohammad Sami 2020년 8월 26일
Hello
I am trying to read data frame from STM32 using serial port, and another serial port for reading torque sensor. And plot the data in real time.
I am currently using different version of MATLAB and run two m files separately, but there is time difference. How can I read and process the data from 2 ports simultaneously??
  댓글 수: 1
Mohammad Sami
Mohammad Sami 2020년 8월 26일
편집: Mohammad Sami 2020년 8월 26일
There is no way to guarantee concurrent execution of two separate processes. You can only ever try to minimize the difference.
If its very important for you to have guaranteed synchronization, you will need to considered dedicated DAQ hardware that implements such feature.

댓글을 달려면 로그인하십시오.

답변 (0개)

Community Treasure Hunt

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

Start Hunting!

Translated by