LoadStimdataFile: Open a stimulus log file outputted by Eprime

Description Usage Arguments Details Value

Description

Open a stimulus log file outputted by Eprime

Usage

1
LoadStimdataFile(stimdata_path)

Arguments

stimdata_path

Either the full or relative path to the .txt file that is to be parsed.

Details

Historically, we have had issues with the encoding of these .txt files, so now we include some exception-handling measures. The procedure is to first try to load the file with UCS-2 Little Endian encoding. If a warning is encountered, the warning is muffled and the file is loaded again, this time without specifying the encoding beforehand. If a warning is encountered on this second attempt, it is printed to the console.

Value

the raw contents of the stimdata file. The basename of stimdata_path is attached as an attribute called "Basename".


tjmahr/lookr documentation built on May 31, 2019, 3:41 p.m.