Ultrasession.py

From Phonlab
Revision as of 13:38, 18 August 2015 by Ronald (talk | contribs)
Jump to navigationJump to search

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.