Why the GUI not upload and sidplay when I call it with another function in parallel?

I have a function to record an EEG data from EEG device--->name it f1
And I have another function to do some flsahes on GUI that I created ---> name it f2
I would like to execute the two function simultaneously because the time here is very important and later I want to analyse the EEG data that I collected depend on the flashing.
I call the two function in parallel by:
funList = {@f1,@f2};
matlabpool open 2
spmd
labBarrier
funList{labindex}()
end
matlabpool close
Every thing is fine from the parallel side (because the two functions works together), but the problem in GUI where it is working without upload or display to the user screen. Where it is working perfect if I call the GUI (f2) without calling f1(recording EEG data).
Note: I have 4 GB RAM size and 4 CPUs 3.1 GHz on my desktop.
Any solution????

 Réponse acceptée

Processes executed in parallel are (at least modelled as) independent processes that cannot talk to the screen (the screen is not in their address space.)
You should instead have a look at Psychometric Toolbox, http://psychtoolbox.org/PTB-2/intro.html

4 commentaires

Hello Walter
I did not find Psychometric Toolbox in Matlab. Also, you sent me the Psychophysics Toolbox and I don't know if they are the same.
If I want to use the Psychophysics Toolbox, could you please tell me how?
Thank you in advance
Sorry I gave the wrong name. That URL is correct.
That is fine.
Thank you
Walter,
I downloaded it correctly.
Do you know the peice of code I can write to work with two different functions simultaneously and upload and display the GUI in one of them? I read the document but I did not understand how to use the toolbox.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

Community Treasure Hunt

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

Start Hunting!

Translated by