PSYX Programmer's Manual
FactorAttrib() is an example of a scripting function that invokes an XRES.
FactorAttrib() calls the "Factor" PSYX, passing along its original parameters: a list and a field. While a Factor format experiment is being compiled, the "Factor" PSYX is already working as an IMSB; when a "FactorAttribute" XRES message is sent during the compilation, it can match up the parameters with the IMSB's internal data and return factored values back to the scripting language. (Ultimately, these tokens are going to be passed back to the "Factor" PSYX from the scripting language, and the tokens will be used to define a trial or event.)
Generated with CERN WebMaker