Advice on running an experiment on several computers simultaneously please.

Fairly soon I am planning on running an experiment at a facility in our university where I'd be running several participants at once (they are funding it so I need to use their facilities). I'm planning on using matlab (with psychtoolbox) as I need precision and it's what I'm most familiar with. I need to talk to their techs but will probably aim to save the scripts to each computer and only saving it to a collective file at the end. It would be easier to save the script to one location that can all access and run it from there but I imagine that would cause problems? Essentially this is a new situation for me and I'm not that technical so looking for indications of what may go wrong!

 Accepted Answer

I'd prefer to share the M-files and store the output files in one folder shared over the network. This is easier to maintain, that storing the code and the data on different computers.
If the program needs a lot of file input and output, prefer locals files for this, because network traffic can be slow.

3 Comments

Thanks that's helpful, sounds like I probably need to test it and see if it slows down. So multiple computers accessing the same m-file at once shouldn't cause a problem?
You can run an M-file from multiple computers without any problem. If you modify the file from one computer, the others use the previous version until the currently running program is ready. So everything is save. Do not write to the same data files, but this can be prevented easily, e.g. by writing to subfolders with the name of the computer.
Great! And thanks for the suggestion on saving. All the participants will have different ID numbers but that still means you can loose data if they enter it wrong so will include the computer name.

Sign in to comment.

More Answers (0)

Products

Asked:

on 7 Aug 2017

Commented:

on 7 Aug 2017

Community Treasure Hunt

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

Start Hunting!