Ultrasession.py
ultrasession.py
is a Python script that acquires ultrasound data via the ultracomm
utility while simultaneously acquiring an audio signal and the ultrasound synchronization signal. In addition it creates timestamped acquisition directories and logs various acquisition parameters so that they are available for postprocessing.
The favored method of calling ultrasession.py
in the Phonology Lab is by including it in an Opensesame experiment.
Usage
ultrasession.py
requires a parameter file that it passes to ultracomm
. It also requires you to specify and output data directory:
python C:\Anaconda\Scripts\ultrasession.py --params \path\to\params.cfg --datadir \path\to\output\dir
Since ultracomm
is a Windows-only utility ultrasession.py
must run under Windows. The path to ultrasession.py
is its standard location on the Phonology Lab's ultrasound acquisition workstation.