Java
PsyToolkit is primarily aimed on running experiments on Linux computers. Linux is an attractive platform for PsyToolkit for these reasons:- Free of cost
- Excellent control over low-level functions and timing
- Easy to install
PsyToolkit can, in principle, be ported to other platforms, but multiple platform solutions often come with many disadvantages. In order to be able to at least demonstrate what PsyToolkit can do and for teaching purposes there is a Java version. You can now create experiments in Java code that run on any platform. Note: You cannot compile the PsyToolkit scripts on other platforms, but you can use the web based interface (via the PsyToolkit home page).
Creating Java code
The psycc command can be used to create a java version of your experiment.Create a Java version
psycc -j myexperiment.psy java -jar experiment.jar
You can now send the jar file to your colleague who does not have Linux. This way, your colleague will be able to run the code and analyze the data file.
Limitations of the Java version
There are a number of limitations.- Runs only in a window (i.e., not full screen)
- Timing is not as good as the Linux version, although it is pretty good, though. Tests suggest that you have a 10 ms time resolution.
- Functions for dedicated hardware are not available (i.e., Cedrus keypads, parallel port, etc).
- Videos do not run (Videos are not a well tested aspect of PsyToolkit at this time anyway).