Skip to content

Commit 260cc82

Browse files
committed
- Bpod Object: Created a user-facing function to initialize multi-setup. Now users can find it more easily with methods(BpodSystem): BpodSystem.createMultiSetup()
1 parent e5ce5a9 commit 260cc82

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

Functions/@BpodObject/BpodObject.m

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -588,6 +588,23 @@ function startAnalogViewer(obj)
588588
obj.analogViewer('init', []);
589589
end
590590

591+
function createMultiSetup(obj)
592+
disp('** Multi Setup **')
593+
disp(['This will configure the PC for multiple Bpod systems' newline...
594+
'which must run in separate instances of MATLAB.' newline ...
595+
'Start each with Bpod(''COMX''); % COMX is the target machine.' newline...
596+
'This can only be undone by manually, removing /Bpod Local/.'])
597+
disp(' ');
598+
reply = input('Proceed? (y/n) >', 's');
599+
if strcmpi(reply, 'y')
600+
BpodLib.multi.createMultiSetup(obj)
601+
disp(['Multi setup complete! Each state machine will have its own' newline...
602+
'settings and calibration folder in /Bpod Local/Config/'])
603+
else
604+
disp('Multi Setup creation canceled. No changes were made.')
605+
end
606+
end
607+
591608
function delete(obj)
592609
% Destructor
593610
obj.SerialPort = []; % Trigger the ArCOM port's destructor function (closes and releases port)

0 commit comments

Comments
 (0)