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

1 Ansicht (letzte 30 Tage)
AnG
AnG am 26 Apr. 2014
Kommentiert: AnG am 26 Apr. 2014
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 Kommentare
Walter Roberson
Walter Roberson am 26 Apr. 2014
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?

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu MATLAB finden Sie in Help Center und File Exchange

Tags

Noch keine Tags eingegeben.

Community Treasure Hunt

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

Start Hunting!

Translated by