How to run 2 functions which use same serial port object simultaneously
1 次查看(过去 30 天)
显示 更早的评论
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
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?
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Loops and Conditional Statements 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!