Difference between revisions of "Presentation"

From TSG Doc
Jump to navigation Jump to search
Line 76: Line 76:
 
<pre>
 
<pre>
 
sound{
 
sound{
wavefile{
+
    wavefile{
filename = "beep.wav"; # The name of the sound file.
+
        filename = "beep.wav"; # The name of the sound file.
preload=true; # Make sure that the sound is loaded before it is actually used.
+
        preload=true; # Make sure that the sound is loaded before it is actually used.
  }myWave;
+
    }myWave;
 
}mySound;
 
}mySound;
 
</pre>
 
</pre>
Line 92: Line 92:
 
sub prepareTrial  
 
sub prepareTrial  
 
begin
 
begin
myWave.unload();
+
    myWave.unload();
myWave.set_filename("beep.wav"); # or read the name from a trial list.
+
    myWave.set_filename("beep.wav"); # or read the name from a trial list.
myWave.load();
+
    myWave.load();
 
end;
 
end;
 
</pre>
 
</pre>

Revision as of 14:33, 1 April 2019

Presentation
Presentation
Developer(s)Neuro Behavioral Systems
Installed versionvaries [1]
PlatformWindows
Websiteneurobs.com
Downloads

Presentation is a Windows based programming tool that allows experimenters to set up and program all sort of experiments. It is the recommended software for time-accurate experiments and therefore supported by the institutes’ (Social Sciences Faculty, the MPI and the Donders Centre for Cognitive Neuroimaging) technical groups. The technical groups offer (PhD) students a couple of pre-programmed experiments (i.e. templates), which can be adjusted to build up own experiments. In this way, the (PhD) student can efficiently program experiments fitting an technical optimal environment. This is what this course is all about. It aims at teaching programming skills, which are needed to modify the existing templates such that they meet your own demands. Because this can be quite complex, we start with short assignments, which address one basic and simple problem at a time. They will all contribute to the final assignment in which you will work on an existing template.

Course

Find the presentation workshop documentation here: Media:Programming with Presentation 2013.pdf

Find the presentation pre-reader here: Media:Presentation pcl pre-read 2013 .pdf

License

To run presentation in the labs you need a software dongle. Reserve a dongle when you book a lab. If you need a dongle for research outside the university you could discuss time limits with Ronny Janssen.

When you want to run in your office use the network license. Boot presentation, choose option "activations" -> "Network"

Fill in the following within the "Network License Settings"


Enable Hostname: lic-pres.socsci.ru.nl
Port: 1245
Timeout (ms): 5000

PresentationLicentie.jpg

Video

Presentation only supports non-proprietary video formats.[2] Neurobs recommends encoding your videos using h264 or XVID, and using the AVI format.[3] The TSG discourages the use of XVID and AVI, because these standards have become obsolete in recent years, but since we have had little success getting alternative non-proprietary video formats to work in Presentation,[4] it seems the use of AVI is inevitable. You can find more information on how to export and convert your videos for Neurobs Presentation on our Video Codecs page.

Audio

In Neurobs Presentation please use *exclusive mode* to get the best audio performance. This means that no other programs can use the audio device while the experiment runs.

Presentation Mixer Settings

The maximum audio delay in Presentation on a lab computer at the faculty of social sciences is 24 ms. If better performance is necessary or more understanding is needed about the components of this delay, please read our page about audio delay.

How to present sounds in Presentation

in SDL:

sound{
    wavefile{
        filename = "beep.wav"; 	# The name of the sound file.
        preload=true; 		# Make sure that the sound is loaded before it is actually used.
    }myWave;
}mySound;

Make sure to use preload = true;. This ensures that the sound is loaded into memory before the sound is used.

in PCL:

Prepare your stimuli during Inter Trial Interval, when there is enough time to do that. First, unload the previous sound, set the filename property to the new soundfile and load it.

sub prepareTrial 
begin
    myWave.unload();
    myWave.set_filename("beep.wav"); # or read the name from a trial list.
    myWave.load();
end;

During your experiment the sound is presented by:

startOfPlaycall = clock.time();
mySound.present();
endOfPlaycall = clock.time();

Troubleshooting

Version History

For version history please click here: http://www.neurobs.com/menu_presentation/menu_download/version_history

Fixed Bugs

For fixed bug / known bugs please click here: http://www.neurobs.com/menu_support/menu_help_resources/known_bugs

Forum

For various information please click here: http://www.neurobs.com/menu_support/menu_forums/contents_page

Wiki

For the wiki click here: http://www.neurobs.com/menu_support/nbs_wiki

Compatibility Issues

  • Always check beforehand in which version the script was written.
  • New versions do not always maintain backwards compatibility.
  • Features can get removed, or changed.

References