how to run two .m files simultaneously?

7 Ansichten (letzte 30 Tage)
Shifa chang
Shifa chang am 30 Apr. 2018
Beantwortet: Walter Roberson am 30 Apr. 2018
i have written two scripts. one to track mouse pointer using kinect V1 and second is the GUI file. now i want to integrate the two files. i don't know how to integrate them.... thanks in advance... :)

Antworten (1)

Walter Roberson
Walter Roberson am 30 Apr. 2018
GUI must run on the main MATLAB thread, never in a worker. Because of that you must use one of the following techniques:
However, do not try to use plain parfor without a parallel queue, or spmd for this purpose: they will take control and you will not be able to manage the GUI until they completed
It is possible that I missed an option or three.
.... But generally speaking, when you are communicating with an external device like that, unless the device is high bandwidth or requires low latency, then typically the better approach is to program access through callbacks, without using any parallel processing.

Kategorien

Mehr zu Parallel Computing Fundamentals finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by