フィルターのクリア

How to run 2 functions which use same serial port object simultaneously

1 回表示 (過去 30 日間)
AnG
AnG 2014 年 4 月 26 日
コメント済み: AnG 2014 年 4 月 26 日
I have 2 functions that are not dependent as such but they use the same serial port object. Also one function has a loop with delay while other is a loop that runs continuously without delay. How do I run them simultaneously? I tried opening two instances of MATLAB but I can't use 2 objects of same serial port.
  2 件のコメント
Walter Roberson
Walter Roberson 2014 年 4 月 26 日
Is one outputting and the other is inputting? If both of them need the port in the same direction, how will you be able to tell which I/O is for which loop?
AnG
AnG 2014 年 4 月 26 日
Yep, one is inputting and other is outputting. I am using this package to interface - http://www.mathworks.com/matlabcentral/fileexchange/32374-matlab-support-package-for-arduino--aka-arduinoio-package-

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeLoops and Conditional Statements についてさらに検索

タグ

タグが未入力です。

Community Treasure Hunt

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

Start Hunting!

Translated by