Skip to content

Commit c5ac87a

Browse files
author
Jai Bhagat
committed
HOTFIX: updated 'eui.MControl/beginExp' to not run exp on rig already running exp
1 parent e0eca9e commit c5ac87a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

+eui/MControl.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,10 @@ function beginExp(obj)
545545
% See also SRV.STIMULUSCONTROL, EUI.EXPPANEL, EUI.ALYXPANEL
546546
set([obj.BeginExpButton obj.RigOptionsButton], 'Enable', 'off'); % Grey out buttons
547547
rig = obj.RemoteRigs.Selected; % Find which rig is selected
548+
if strcmpi(rig.Status, 'running')
549+
obj.log('Failed because another experiment is running');
550+
return;
551+
end
548552
% Save the current instance of Alyx so that eui.ExpPanel can register water to the correct account
549553
if ~obj.AlyxPanel.AlyxInstance.IsLoggedIn &&...
550554
~strcmp(obj.NewExpSubject.Selected,'default') &&...

0 commit comments

Comments
 (0)