필터 지우기
필터 지우기

Serialport object behavior when copied

조회 수: 1 (최근 30일)
Daniel
Daniel 2021년 3월 12일
편집: Daniel 2021년 3월 12일
I am reworking some code which used serial objects. As those are due to be removed, I am rewriting using serialport. In principle, I want to share the serialport object by copying it into the global variable space and retrieving it whenever a function is called.
My question now: Since serialport creates and opens at the same time, and I am able to copy the serialport object, how does the connection behave? There can't be two open connections at the same time.

답변 (0개)

카테고리

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

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by