-
Notifications
You must be signed in to change notification settings - Fork 0
Sequential Pinch Force Task (SPFT)
Description for the spft-java program and its usage spft-java
- the task is distributed as a compiled java
.jar
file, which can be run on any computer (linux, windows, mac) with java 17 - source code and all of the specific details for running the program can be found here: spft-java
This is what you need to do when you are running a SPFT experiment in the lab!
To run a SPFT experiment with the right hand:
- Open the config file to check or edit the inputs.
- You may delete or add blocks and trials to the experiment.
- You may also edit the sequences that will be followed.
- Ensure that under sequences the config file says
valuesLeft
, asvaluesRight
will not work!
- By program design, if only a single hand is used (unimanual mode) then
valuesLeft
is the only valid way to present sequences
Once the config file is ready to use, you have to open java (ensure that java 17 is installed):
-
Open command prompt, type
cd
, and pressenter
-
Copy the address of the folder that contains the spft-1.3-SNAPSHOT-jar-with-dependencies file and press
enter
-
Type
java -jar spft-1.3-SNAPSHOT-jar-with-dependencies.jar
Once the spft-java program starts, a control window will popup:
-
Load the config file
SPFT_R_testing.yml
-
Write the participant id and press
enter
-
Enable the
left force device
while keeping the right force device disabled, set theleft MVC
to the participant's maximum voluntary contraction (in units output from the device), and pressenter
- When testing, 5000 is a reasonable MVC value for most people to be able to control the bar
-
Click on
start
-
For the experiment to begin, press
5
- This is a
trigger
value that is used to initiate the start of the experiment and, if this is conducted within the scanner, collect the timestamp of the fMRI triggers so that the behavioural data can be synchronised with the fMRI data - In the config file the trigger is determined by
triggers: ["5" ]
When running the SPFT experiment with the right hand, you might want to change the display of the bars - leaving the reference bar to the left of the participant and the force bar to the right.
To do this, you have to:
-
Open command prompt, type
cd
, and pressenter
-
Copy the address of the folder that contains the spft-1.3-SNAPSHOT-jar-with-dependencies file and press
enter
-
Type
java -jar spft-1.3-SNAPSHOT-jar-with-dependencies.jar
-
Type
java -jar -Dspft.ui.bars.referenceOutside=true spft-1.3-SNAPSHOT-jar-with-dependencies.jar