Difference between revisions of "Ultrasession.py"

From Phonlab
Jump to navigationJump to search
m
m
Line 5: Line 5:
 
== Usage ==
 
== Usage ==
   
<code>ultrasession.py</code> accepts many of the same input parameters as
+
<code>ultrasession.py</code> requires a parameter file that it passes to [[ultracomm|<code>ultracomm</code>]]. 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 <code>ultracomm</code> is a Windows-only utility <code>ultrasession.py</code> must run under Windows. The path to <code>ultrasession.py</code> is its standard location on the Phonology Lab's ultrasound acquisition workstation.

Revision as of 13:38, 18 August 2015

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.