What is the difference between sessions synchronously and asynchronously?

I'm using the MATLAB API C++ to run some commands from MATLAB on my c++ project.
My question: what is the difference between sessions synchronously and asynchronously?
matlab::engine::connectMATLAB
matlab::engine::connectMATLABAsync
Thank you.

댓글 수: 1

I found the following explanation here
" Synchronous Versus Asynchronous Operations
The VISA object can operate in either synchronous or asynchronous mode. In synchronous mode, the MATLAB command line is blocked until
  • The read or write operation completes
  • A timeout occurs as specified by the Timeout property
In asynchronous mode, control is immediately returned to the MATLAB command line. Additionally, you can use callback properties and callback functions to perform tasks as data is being written or read. For example, you can create a callback function that notifies you when the read or write operation has finished."

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

답변 (0개)

카테고리

도움말 센터File Exchange에서 Call MATLAB from C++에 대해 자세히 알아보기

제품

질문:

2018년 3월 1일

댓글:

BNB
2018년 8월 2일

Community Treasure Hunt

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

Start Hunting!

Translated by