PennController for IBEX › Forums › Support › "Pause" issue › Reply To: "Pause" issue
Hi Rick,
Can you provide more details about this “pause”? What form does it take? Is it a screen (blank, or with some message) between two trials, or does the experiment stay on one screen for longer than it should before moving on to the next one? Can you still interact with the page?
If the “pause” is a screen saying “Preloading, please wait” then this means that you have an Audio/Image/Video/Youtube element somewhere that points to a file that cannot be found. A somewhat common situation is when, inside a Template
command, you mean to use such an element pointing to a file referenced in a column for a subset of trials only, but your code in fact creates the element for all trials, regardless of whether you end up using it and whether the column indeed points to a (valid) file. If you randomize all the trials, then the preloading message will appear randomly. See an example with this experiment (https://farm.pcibex.net/r/zcfiUJ/) containing this faulty Template
command because the “Image” column of the second row of the table does not point to a valid image:
Template( row => newTrial( newText( row.Question ).print() , newVar("showImage") .set( row.ShowImage ) .test.is( "Yes" ) .success( newImage( row.Image ).print() ) , newScale("answer", "Yes", "No") .button() .print() .wait() ) )
What you should do instead is this case is:
newText( row.Question ).print() , ...( row.ShowImage == "Yes" ? [ newImage( row.Image ).print() ] : [] ) ,
Let me know if you have questions
Jeremy