Suspend/Resume [30095]

This sample shows how you can suspend the runtime system and launch an external program such as Internet Explorer where stimuli can be presented during non-time critical portions of an experiment.

Abstract

This sample experiment shows how an experiment can suspend devices during the running of an E-Prime experiment in order to launch an external application (e.g. Internet Explorer).

Once the devices are suspended, any external application can be called and used. The most common methods to call and access external programs would be via OLE/COM Automation or via DLL calls via Declare statements. The use of these methods are typically set aside for more advanced programmers.

This specific experiment suspends the devices, calls Internet Explorer (with a specified URL to visit), resumes devices, and continues with the experiment.

Please note that you cannot collect data and use many of the real-time objects in E-Prime while the devices are suspened.

To change the application you wish to run, see the comments in the RunApplication InLine.

If you are planning to copy the script from this sample into another experiment, you will also need to copy the script from the User tab of the Script window and paste it into the same place in your experiment. If you open the sample in E-Studio, go to 'View', and click on 'Script', your Script window will open.

For more information about User Script, please see the following video.