PennController for IBEX › Forums › Support › referring to PCIbex code in separate files › Reply To: referring to PCIbex code in separate files
March 23, 2022 at 11:22 am
#7956
Jeremy
Keymaster
Hi,
Just create another .js script under Scripts, and start coding there. When the experiment is run, the files in Scripts are concatenated into a single .js file, in an alpha-numeric order, ie. the content of main.js will come after the content of abc.js, so place PennController.ResetPrefix(null)
at the top of the first script file (or at the top of all script files would work too)
It doesn’t matter which file your Sequence
command is in, it will see all the trials you create from all the .js files in Scripts
Jeremy