<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.neuro.mcw.edu/meg/index.php?action=history&amp;feed=atom&amp;title=EPrime</id>
	<title>EPrime - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.neuro.mcw.edu/meg/index.php?action=history&amp;feed=atom&amp;title=EPrime"/>
	<link rel="alternate" type="text/html" href="https://www.neuro.mcw.edu/meg/index.php?title=EPrime&amp;action=history"/>
	<updated>2026-05-01T02:21:14Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.10</generator>
	<entry>
		<id>https://www.neuro.mcw.edu/meg/index.php?title=EPrime&amp;diff=299&amp;oldid=prev</id>
		<title>Vahab: /* Common Problems and Solutions */</title>
		<link rel="alternate" type="text/html" href="https://www.neuro.mcw.edu/meg/index.php?title=EPrime&amp;diff=299&amp;oldid=prev"/>
		<updated>2019-12-21T16:58:51Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Common Problems and Solutions&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:58, 21 December 2019&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l11&quot;&gt;Line 11:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 11:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Common &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Problems &lt;/del&gt;and &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Solutions&lt;/del&gt;==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Common &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;problems &lt;/ins&gt;and &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;solutions&lt;/ins&gt;==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;There is an online web support page for common problems and their solutions. Please follow the link [http://www.pstnet.com/support/kb.asp?TopicID=3000 HERE]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;There is an online web support page for common problems and their solutions. Please follow the link [http://www.pstnet.com/support/kb.asp?TopicID=3000 HERE]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Vahab</name></author>
	</entry>
	<entry>
		<id>https://www.neuro.mcw.edu/meg/index.php?title=EPrime&amp;diff=41&amp;oldid=prev</id>
		<title>Colin: Created page with &quot;==Using E-Prime==  Using E-Prime on one of the machines in the Lab can be tricky. When you are designing your experiment, you will probably have to check to see if the compute...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.neuro.mcw.edu/meg/index.php?title=EPrime&amp;diff=41&amp;oldid=prev"/>
		<updated>2019-05-24T20:43:36Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;==Using E-Prime==  Using E-Prime on one of the machines in the Lab can be tricky. When you are designing your experiment, you will probably have to check to see if the compute...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Using E-Prime==&lt;br /&gt;
&lt;br /&gt;
Using E-Prime on one of the machines in the Lab can be tricky. When you are designing your experiment, you will probably have to check to see if the computer you are using for Stimuli presentation is running the same E-Prime version that you are testing/building your experiment in. &lt;br /&gt;
===MEG Machine===&lt;br /&gt;
The MEG presentation computer has the E-Prime version 1 installed. When you are building your experiment in the Lab area, you can contact Travis Williams to setup the Virtual Machine(VirtualBox) to link to the WindowsXP machine on your work station. You can then create, test and edit your experiment at your own office space!  It is very convenient.&lt;br /&gt;
&lt;br /&gt;
==Designing your experiment==&lt;br /&gt;
&lt;br /&gt;
===Reference Guide=== &lt;br /&gt;
There are some E-Prime Reference guides in the Lab. Contact [[Contacts|Candida Jane Maria Ustine]] if you would like to have a look at them. They are very useful if you are new to E-Prime. Trust me!! &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Common Problems and Solutions==&lt;br /&gt;
&lt;br /&gt;
There is an online web support page for common problems and their solutions. Please follow the link [http://www.pstnet.com/support/kb.asp?TopicID=3000 HERE]&lt;br /&gt;
&lt;br /&gt;
Some additional problems that can be encountered are listed below with instructions on how to solve them. &lt;br /&gt;
&lt;br /&gt;
'''1) It says, &amp;quot;sound device is set not to open&amp;quot;'''&lt;br /&gt;
&lt;br /&gt;
*Double-click on the Experiment Object Icon in the Structure Window and a properties window should pop up&lt;br /&gt;
*Then click on the Devices tab near the top&lt;br /&gt;
*There should be a Sound Option - Make sure that it is checked (If it is not there, select Add and add the Sound Device).&lt;br /&gt;
*Now, click on the Sound Option to highlight it and click Edit (option at the bottom of the screen)&lt;br /&gt;
*An &amp;quot;Edit SoundDeviceObject Properties&amp;quot; Window should now pop up...make sure the following values are there:&lt;br /&gt;
*Channels: 2&lt;br /&gt;
*Samples: 44100&lt;br /&gt;
*Bits Per Sample: 16&lt;br /&gt;
&lt;br /&gt;
NOTE: Check your wave file to see if you can generate a specific tone with a desired frequency. See [[Scripts|Stimuli Presentation Scripts]] for the generate_tones.m script that can create mono tones with the desired sampling frequency.&lt;br /&gt;
&lt;br /&gt;
==Triggering in E-Prime==&lt;br /&gt;
When using Eprime to present your stimuli in the MEG you will have to do the following:&lt;br /&gt;
&amp;lt;br&amp;gt;1) Add the Port to the Experiment Devices&lt;br /&gt;
&amp;lt;br&amp;gt;2) Insert specific Inline object codes telling the script when to send triggers to the Machine. &lt;br /&gt;
&lt;br /&gt;
===PST WIKI PAGE===&lt;br /&gt;
Read [http://www.pstnet.com/support/kb.asp?TopicID=1318 here] about the '''three ways to send triggers''' to the MEG. &lt;br /&gt;
&lt;br /&gt;
===STEP1: Add Port Device===&lt;br /&gt;
*Go to Edit --&amp;gt; Experiment --&amp;gt; Devices Tab&lt;br /&gt;
*Click on the Add device button and select Port device. &lt;br /&gt;
*Select the Port device you have added and click on the Edit button&lt;br /&gt;
[[File:AddPort.jpeg]]&lt;br /&gt;
*Choose the settings you see in the picture above. &lt;br /&gt;
**Collection Mode: Presses Only&lt;br /&gt;
**Address: &amp;amp;H379&lt;br /&gt;
**Size: 8&lt;br /&gt;
**Invert: No&lt;br /&gt;
**Mask: -1&lt;br /&gt;
**Emulate Device: None (Unless you are testing this on your computer then choose keyboard or Mouse)&lt;br /&gt;
&lt;br /&gt;
===STEP2: InLine Code===&lt;br /&gt;
This set of script lines are inserted wherever you would like to send triggers to the MEG machine. &lt;br /&gt;
====Initialising MEG communication====&lt;br /&gt;
Before you start sending triggers to the machine ie., before you start the actual experiment you will have to initialise the MEG communication. &lt;br /&gt;
[[File:ResetMEGTrigger.jpeg]]&lt;br /&gt;
&lt;br /&gt;
Insert a similar code to the beginning of your experiment. The WritePort command will send the port address the value of 0, in other words resets the port. &lt;br /&gt;
&lt;br /&gt;
====Sending MEG Triggers====&lt;br /&gt;
This is the part when you send the MEG triggers to the MEG machine when an event happens. For example: Stimulus Onset or Key Response.&lt;br /&gt;
[[File:SendMEGTrigger.jpeg|Sending MEG Triggers]]&lt;br /&gt;
&lt;br /&gt;
Note that in this experiment the triggers that the Experiment must send the MEG machine is coded along with the trials. And so they are easily referenced in the in line code. &lt;br /&gt;
&lt;br /&gt;
====Encoding Responses====&lt;br /&gt;
When you have a task that requires the subject to press a button in the MEG then you will have to edit the properties of the Stimulus object so that the exact triggers are sent to the MEG system when the subject presses a button. You will also have to edit the Properties of your Stimulus object and add the Port as a device of response. You will also have to include another column in your trial list specifying the correct answers codes for the response pads in the MEG system. &lt;br /&gt;
[[File:MEGPortDuration.jpeg]]&lt;br /&gt;
&lt;br /&gt;
You can have E-Prime code the button presses with an additional trigger which also gets stamped into the MEG output file. In this case, you will ne alerting E-Prime that you’d like all button presses to be referenced as a specific trigger number. Look at the Properties window for SoundOut1. Here you can let E-Prime know that it should look for responses from the Port device, and that the responses it should be looking for are numbered 7 and 8 (see ‘Allowable’). 7 is the left button and 8 is the right button. &lt;br /&gt;
&amp;lt;br&amp;gt;Your triggers from the response will always be 7 and 8 because these are the channels used for button responses by the MEG Trigger Box.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=====Encoding Responses: Inline code=====&lt;br /&gt;
If you would like to send a trigger when the subject has pressed a button then you can use the following inline object script. &lt;br /&gt;
 Syntax: WritePort address value &lt;br /&gt;
 Example: WritePort &amp;amp;H378,SoundOut1.RESP&lt;br /&gt;
&lt;br /&gt;
==Links to more Info on Triggers and Ports==&lt;br /&gt;
See [http://www.pstnet.com/eprimelegFAQ.cfm#12 Pstnet FAQ] page for more information.&lt;br /&gt;
&lt;br /&gt;
See [http://www.pstnet.com/support/kb.asp?TopicID=1318 Pstnet Parallel Port Info] for information on parallel port i/o.&lt;/div&gt;</summary>
		<author><name>Colin</name></author>
	</entry>
</feed>