<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://wiki.besa.de/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.besa.de/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Andre</id>
		<title>BESA® Wiki - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.besa.de/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Andre"/>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Special:Contributions/Andre"/>
		<updated>2026-05-06T11:09:47Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.23.10</generator>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Main_Page</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Main_Page"/>
				<updated>2016-05-12T14:38:07Z</updated>
		
		<summary type="html">&lt;p&gt;Andre: new link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=&amp;lt;strong&amp;gt;Welcome to the BESA Wiki!&amp;lt;/strong&amp;gt;=&lt;br /&gt;
&lt;br /&gt;
This wiki is designed to help users with typical questions around using BESA to achieve their goals.&lt;br /&gt;
Topics are available for the following categories:&lt;br /&gt;
&lt;br /&gt;
== FAQ ==&lt;br /&gt;
&lt;br /&gt;
=== Licensing ===&lt;br /&gt;
&lt;br /&gt;
[[Licensing]]&lt;br /&gt;
&lt;br /&gt;
=== File Formats ===&lt;br /&gt;
&lt;br /&gt;
[[Channel Definition File Formats]]&lt;br /&gt;
&lt;br /&gt;
[[Event File Format]]&lt;br /&gt;
&lt;br /&gt;
[[MEG Sensor Coordinate Files]]&lt;br /&gt;
&lt;br /&gt;
[[Supported Data Formats]]&lt;br /&gt;
&lt;br /&gt;
[[Paradigm File Format in BESA]]&lt;br /&gt;
&lt;br /&gt;
[[Importing Electrode Locations in Combined EEG/MEG Measurements with the Neuromag System]]&lt;br /&gt;
&lt;br /&gt;
=== Data Review and Analysis ===&lt;br /&gt;
&lt;br /&gt;
[[Importing Digitized Coordinates]]&lt;br /&gt;
&lt;br /&gt;
[[Verify Electrode Coordinates]]&lt;br /&gt;
&lt;br /&gt;
[[Export Single Trial Data]]&lt;br /&gt;
&lt;br /&gt;
[[How to Average EEG channels]]&lt;br /&gt;
&lt;br /&gt;
[[Averaging Across EEG Datasets from Different Recording Systems]]&lt;br /&gt;
&lt;br /&gt;
[[Time Frequency Resolution In BESA]]&lt;br /&gt;
&lt;br /&gt;
[[Change Waveform Colours]]&lt;br /&gt;
&lt;br /&gt;
[[Best Strategy to Define a Multiple Source Model]]&lt;br /&gt;
&lt;br /&gt;
[[Export Dipole Moments of Fitted Sources]]&lt;br /&gt;
&lt;br /&gt;
[[Recommended Electrode Configurations]]&lt;br /&gt;
&lt;br /&gt;
[[Exporting Artifact-Corrected Data]]&lt;br /&gt;
&lt;br /&gt;
[[Create Triggers for Artifact-Rejected Epochs]]&lt;br /&gt;
&lt;br /&gt;
[[Inserting Triggers Relative to Existing Events]]&lt;br /&gt;
&lt;br /&gt;
[[Change or Exclude Erroneous Head Surface Point Locations]]&lt;br /&gt;
&lt;br /&gt;
[[Exporting Top Viewer Waveforms into other Graphics Software for Further Processing]]&lt;br /&gt;
&lt;br /&gt;
=== Matlab interface ===&lt;br /&gt;
&lt;br /&gt;
[[How Do I Configure the Matlab Interface?]]&lt;br /&gt;
&lt;br /&gt;
[[Updating the Matlab Interface after Matlab Upgrade]]&lt;br /&gt;
&lt;br /&gt;
=== BESA Statistics ===&lt;br /&gt;
&lt;br /&gt;
[[Cluster Alpha vs. Neighbor Distance]]&lt;br /&gt;
&lt;br /&gt;
[[Importing BESA Statistics Results into Excel]]&lt;br /&gt;
&lt;br /&gt;
=== Trouble shooting ===&lt;br /&gt;
&lt;br /&gt;
[[MF Error 211]]&lt;br /&gt;
&lt;br /&gt;
[[3D Graphics Display Issue Handling]]&lt;br /&gt;
&lt;br /&gt;
== BESA recipes ==&lt;br /&gt;
&lt;br /&gt;
[[Control of BESA Research by external programs]]&lt;br /&gt;
&lt;br /&gt;
[[Correcting Volume Conductor Segmentations]]&lt;br /&gt;
&lt;br /&gt;
[[Random Averaging]]&lt;br /&gt;
&lt;br /&gt;
[[Statistical Analysis for More than Two Levels]]&lt;br /&gt;
&lt;br /&gt;
[[Exporting Data from Matlab to BESA Statistics]]&lt;br /&gt;
&lt;br /&gt;
== Did you know...? ==&lt;br /&gt;
&lt;br /&gt;
[[Moving Dipole Fit]]&lt;br /&gt;
&lt;br /&gt;
[[BESA Anonymizer]]&lt;br /&gt;
&lt;br /&gt;
[[Batch Processing]]&lt;br /&gt;
&lt;br /&gt;
[[Analyzing Electrocorticography Data]]&lt;br /&gt;
&lt;br /&gt;
== Coming soon ==&lt;br /&gt;
* a collection of useful batches&lt;br /&gt;
* and further content we will be publishing on this wiki&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Contributions to the Wiki from the community are very welcome! Please create an account with a valid email to edit the BESA Wiki's content.&lt;br /&gt;
&lt;br /&gt;
Consult the [//meta.wikimedia.org/wiki/Help:Contents User's Guide] for information on using the wiki software.&lt;/div&gt;</summary>
		<author><name>Andre</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Importing_Electrode_Locations_in_Combined_EEG/MEG_Measurements_with_the_Neuromag_System</id>
		<title>Importing Electrode Locations in Combined EEG/MEG Measurements with the Neuromag System</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Importing_Electrode_Locations_in_Combined_EEG/MEG_Measurements_with_the_Neuromag_System"/>
				<updated>2016-05-12T14:36:56Z</updated>
		
		<summary type="html">&lt;p&gt;Andre: added box&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{BESAInfobox&lt;br /&gt;
|title = Module information&lt;br /&gt;
|module = BESA Research Basic or higher&lt;br /&gt;
|version = 5.2 or higher&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
The Neuromag system does not store the electrode names with the coordinates. Thus, it is extremely important that you keep track of the digitization protocol, and provide a file which provides the names of fiducials, electrodes, and additional head surface points in the order of digitization (see BESA help: Working with Electrodes and Surface Locations). &lt;br /&gt;
&lt;br /&gt;
[[Category:ERP/ERF]]&lt;/div&gt;</summary>
		<author><name>Andre</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Exporting_Top_Viewer_Waveforms_into_other_Graphics_Software_for_Further_Processing</id>
		<title>Exporting Top Viewer Waveforms into other Graphics Software for Further Processing</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Exporting_Top_Viewer_Waveforms_into_other_Graphics_Software_for_Further_Processing"/>
				<updated>2016-05-12T14:36:22Z</updated>
		
		<summary type="html">&lt;p&gt;Andre: box added&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{BESAInfobox&lt;br /&gt;
|title = Module information&lt;br /&gt;
|module = BESA Research Basic or higher&lt;br /&gt;
|version = 5.2 or higher&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Top Viewer waveforms can be exported into encapsulated post script files using the command ‘File | Print to File’ in the Top Viewer window. Printed files can then be imported into a graphics software (e.g. Corel Draw, Adobe Photoshop). In vector-oriented graphics programs, the scalability of the eps format remains available if you select ‘Post Script Interpreted’ when importing. &lt;br /&gt;
&lt;br /&gt;
[[Category:ERP/ERF]]&lt;/div&gt;</summary>
		<author><name>Andre</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Exporting_Top_Viewer_Waveforms_into_other_Graphics_Software_for_Further_Processing</id>
		<title>Exporting Top Viewer Waveforms into other Graphics Software for Further Processing</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Exporting_Top_Viewer_Waveforms_into_other_Graphics_Software_for_Further_Processing"/>
				<updated>2016-05-12T14:34:28Z</updated>
		
		<summary type="html">&lt;p&gt;Andre: Copied from BESA FAQ page.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Top Viewer waveforms can be exported into encapsulated post script files using the command ‘File | Print to File’ in the Top Viewer window. Printed files can then be imported into a graphics software (e.g. Corel Draw, Adobe Photoshop). In vector-oriented graphics programs, the scalability of the eps format remains available if you select ‘Post Script Interpreted’ when importing. &lt;br /&gt;
&lt;br /&gt;
[[Category:ERP/ERF]]&lt;/div&gt;</summary>
		<author><name>Andre</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Main_Page</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Main_Page"/>
				<updated>2016-05-12T14:31:09Z</updated>
		
		<summary type="html">&lt;p&gt;Andre: new link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=&amp;lt;strong&amp;gt;Welcome to the BESA Wiki!&amp;lt;/strong&amp;gt;=&lt;br /&gt;
&lt;br /&gt;
This wiki is designed to help users with typical questions around using BESA to achieve their goals.&lt;br /&gt;
Topics are available for the following categories:&lt;br /&gt;
&lt;br /&gt;
== FAQ ==&lt;br /&gt;
&lt;br /&gt;
=== Licensing ===&lt;br /&gt;
&lt;br /&gt;
[[Licensing]]&lt;br /&gt;
&lt;br /&gt;
=== File Formats ===&lt;br /&gt;
&lt;br /&gt;
[[Channel Definition File Formats]]&lt;br /&gt;
&lt;br /&gt;
[[Event File Format]]&lt;br /&gt;
&lt;br /&gt;
[[MEG Sensor Coordinate Files]]&lt;br /&gt;
&lt;br /&gt;
[[Supported Data Formats]]&lt;br /&gt;
&lt;br /&gt;
[[Paradigm File Format in BESA]]&lt;br /&gt;
&lt;br /&gt;
[[Importing Electrode Locations in Combined EEG/MEG Measurements with the Neuromag System]]&lt;br /&gt;
&lt;br /&gt;
=== Data Review and Analysis ===&lt;br /&gt;
&lt;br /&gt;
[[Importing Digitized Coordinates]]&lt;br /&gt;
&lt;br /&gt;
[[Verify Electrode Coordinates]]&lt;br /&gt;
&lt;br /&gt;
[[Export Single Trial Data]]&lt;br /&gt;
&lt;br /&gt;
[[How to Average EEG channels]]&lt;br /&gt;
&lt;br /&gt;
[[Averaging Across EEG Datasets from Different Recording Systems]]&lt;br /&gt;
&lt;br /&gt;
[[Time Frequency Resolution In BESA]]&lt;br /&gt;
&lt;br /&gt;
[[Change Waveform Colours]]&lt;br /&gt;
&lt;br /&gt;
[[Best Strategy to Define a Multiple Source Model]]&lt;br /&gt;
&lt;br /&gt;
[[Export Dipole Moments of Fitted Sources]]&lt;br /&gt;
&lt;br /&gt;
[[Recommended Electrode Configurations]]&lt;br /&gt;
&lt;br /&gt;
[[Exporting Artifact-Corrected Data]]&lt;br /&gt;
&lt;br /&gt;
[[Create Triggers for Artifact-Rejected Epochs]]&lt;br /&gt;
&lt;br /&gt;
[[Inserting Triggers Relative to Existing Events]]&lt;br /&gt;
&lt;br /&gt;
[[Change or Exclude Erroneous Head Surface Point Locations]]&lt;br /&gt;
&lt;br /&gt;
=== Matlab interface ===&lt;br /&gt;
&lt;br /&gt;
[[How Do I Configure the Matlab Interface?]]&lt;br /&gt;
&lt;br /&gt;
[[Updating the Matlab Interface after Matlab Upgrade]]&lt;br /&gt;
&lt;br /&gt;
=== BESA Statistics ===&lt;br /&gt;
&lt;br /&gt;
[[Cluster Alpha vs. Neighbor Distance]]&lt;br /&gt;
&lt;br /&gt;
[[Importing BESA Statistics Results into Excel]]&lt;br /&gt;
&lt;br /&gt;
=== Trouble shooting ===&lt;br /&gt;
&lt;br /&gt;
[[MF Error 211]]&lt;br /&gt;
&lt;br /&gt;
[[3D Graphics Display Issue Handling]]&lt;br /&gt;
&lt;br /&gt;
== BESA recipes ==&lt;br /&gt;
&lt;br /&gt;
[[Control of BESA Research by external programs]]&lt;br /&gt;
&lt;br /&gt;
[[Correcting Volume Conductor Segmentations]]&lt;br /&gt;
&lt;br /&gt;
[[Random Averaging]]&lt;br /&gt;
&lt;br /&gt;
[[Statistical Analysis for More than Two Levels]]&lt;br /&gt;
&lt;br /&gt;
[[Exporting Data from Matlab to BESA Statistics]]&lt;br /&gt;
&lt;br /&gt;
== Did you know...? ==&lt;br /&gt;
&lt;br /&gt;
[[Moving Dipole Fit]]&lt;br /&gt;
&lt;br /&gt;
[[BESA Anonymizer]]&lt;br /&gt;
&lt;br /&gt;
[[Batch Processing]]&lt;br /&gt;
&lt;br /&gt;
[[Analyzing Electrocorticography Data]]&lt;br /&gt;
&lt;br /&gt;
== Coming soon ==&lt;br /&gt;
* a collection of useful batches&lt;br /&gt;
* and further content we will be publishing on this wiki&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Contributions to the Wiki from the community are very welcome! Please create an account with a valid email to edit the BESA Wiki's content.&lt;br /&gt;
&lt;br /&gt;
Consult the [//meta.wikimedia.org/wiki/Help:Contents User's Guide] for information on using the wiki software.&lt;/div&gt;</summary>
		<author><name>Andre</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Importing_Electrode_Locations_in_Combined_EEG/MEG_Measurements_with_the_Neuromag_System</id>
		<title>Importing Electrode Locations in Combined EEG/MEG Measurements with the Neuromag System</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Importing_Electrode_Locations_in_Combined_EEG/MEG_Measurements_with_the_Neuromag_System"/>
				<updated>2016-05-12T14:29:47Z</updated>
		
		<summary type="html">&lt;p&gt;Andre: Copied from BESA FAQ Website.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The Neuromag system does not store the electrode names with the coordinates. Thus, it is extremely important that you keep track of the digitization protocol, and provide a file which provides the names of fiducials, electrodes, and additional head surface points in the order of digitization (see BESA help: Working with Electrodes and Surface Locations). &lt;br /&gt;
&lt;br /&gt;
[[Category:ERP/ERF]]&lt;/div&gt;</summary>
		<author><name>Andre</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Main_Page</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Main_Page"/>
				<updated>2016-05-12T14:16:50Z</updated>
		
		<summary type="html">&lt;p&gt;Andre: added entry&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=&amp;lt;strong&amp;gt;Welcome to the BESA Wiki!&amp;lt;/strong&amp;gt;=&lt;br /&gt;
&lt;br /&gt;
This wiki is designed to help users with typical questions around using BESA to achieve their goals.&lt;br /&gt;
Topics are available for the following categories:&lt;br /&gt;
&lt;br /&gt;
== FAQ ==&lt;br /&gt;
&lt;br /&gt;
=== Licensing ===&lt;br /&gt;
&lt;br /&gt;
[[Licensing]]&lt;br /&gt;
&lt;br /&gt;
=== File Formats ===&lt;br /&gt;
&lt;br /&gt;
[[Channel Definition File Formats]]&lt;br /&gt;
&lt;br /&gt;
[[Event File Format]]&lt;br /&gt;
&lt;br /&gt;
[[MEG Sensor Coordinate Files]]&lt;br /&gt;
&lt;br /&gt;
[[Supported Data Formats]]&lt;br /&gt;
&lt;br /&gt;
[[Paradigm File Format in BESA]]&lt;br /&gt;
&lt;br /&gt;
=== Data Review and Analysis ===&lt;br /&gt;
&lt;br /&gt;
[[Importing Digitized Coordinates]]&lt;br /&gt;
&lt;br /&gt;
[[Verify Electrode Coordinates]]&lt;br /&gt;
&lt;br /&gt;
[[Export Single Trial Data]]&lt;br /&gt;
&lt;br /&gt;
[[How to Average EEG channels]]&lt;br /&gt;
&lt;br /&gt;
[[Averaging Across EEG Datasets from Different Recording Systems]]&lt;br /&gt;
&lt;br /&gt;
[[Time Frequency Resolution In BESA]]&lt;br /&gt;
&lt;br /&gt;
[[Change Waveform Colours]]&lt;br /&gt;
&lt;br /&gt;
[[Best Strategy to Define a Multiple Source Model]]&lt;br /&gt;
&lt;br /&gt;
[[3D Graphics Display Issue Handling]]&lt;br /&gt;
&lt;br /&gt;
[[Export Dipole Moments of Fitted Sources]]&lt;br /&gt;
&lt;br /&gt;
[[Recommended Electrode Configurations]]&lt;br /&gt;
&lt;br /&gt;
[[Exporting Artifact-Corrected Data]]&lt;br /&gt;
&lt;br /&gt;
[[Create Triggers for Artifact-Rejected Epochs]]&lt;br /&gt;
&lt;br /&gt;
[[Inserting Triggers Relative to Existing Events]]&lt;br /&gt;
&lt;br /&gt;
=== Matlab interface ===&lt;br /&gt;
&lt;br /&gt;
[[How Do I Configure the Matlab Interface?]]&lt;br /&gt;
&lt;br /&gt;
[[Updating the Matlab Interface after Matlab Upgrade]]&lt;br /&gt;
&lt;br /&gt;
=== BESA Statistics ===&lt;br /&gt;
&lt;br /&gt;
[[Cluster Alpha vs. Neighbor Distance]]&lt;br /&gt;
&lt;br /&gt;
[[Importing BESA Statistics Results into Excel]]&lt;br /&gt;
&lt;br /&gt;
=== Trouble shooting in BESA MRI and BESA Statistics ===&lt;br /&gt;
&lt;br /&gt;
[[MF Error 211]]&lt;br /&gt;
&lt;br /&gt;
== BESA recipes ==&lt;br /&gt;
&lt;br /&gt;
[[Control of BESA Research by external programs]]&lt;br /&gt;
&lt;br /&gt;
[[Correcting Volume Conductor Segmentations]]&lt;br /&gt;
&lt;br /&gt;
[[Random Averaging]]&lt;br /&gt;
&lt;br /&gt;
[[Statistical Analysis for More than Two Levels]]&lt;br /&gt;
&lt;br /&gt;
[[Exporting Data from Matlab to BESA Statistics]]&lt;br /&gt;
&lt;br /&gt;
== Did you know...? ==&lt;br /&gt;
&lt;br /&gt;
[[Moving Dipole Fit]]&lt;br /&gt;
&lt;br /&gt;
[[BESA Anonymizer]]&lt;br /&gt;
&lt;br /&gt;
[[Batch Processing]]&lt;br /&gt;
&lt;br /&gt;
[[Analyzing Electrocorticography Data]]&lt;br /&gt;
&lt;br /&gt;
== Coming soon ==&lt;br /&gt;
* a collection of useful batches&lt;br /&gt;
* and further content we will be publishing on this wiki&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Contributions to the Wiki from the community are very welcome! Please create an account with a valid email to edit the BESA Wiki's content.&lt;br /&gt;
&lt;br /&gt;
Consult the [//meta.wikimedia.org/wiki/Help:Contents User's Guide] for information on using the wiki software.&lt;/div&gt;</summary>
		<author><name>Andre</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Inserting_Triggers_Relative_to_Existing_Events</id>
		<title>Inserting Triggers Relative to Existing Events</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Inserting_Triggers_Relative_to_Existing_Events"/>
				<updated>2016-05-12T14:15:06Z</updated>
		
		<summary type="html">&lt;p&gt;Andre: line break fixed.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{BESAInfobox&lt;br /&gt;
|title = Module information&lt;br /&gt;
|module = BESA Research Basic or higher&lt;br /&gt;
|version = 5.2 or higher&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Say you are interested in studying neural activity that precedes an existing trigger. This can be addressed in the following ways:&lt;br /&gt;
&lt;br /&gt;
# You are interested in a certain epoch that precedes the trigger event that is already coded. So, instead of entering a new trigger code, you could just add a new condition that works on the existing trigger code, and merely changes the epoch of interest. Presumably you have defined a condition where you are looking at the activity around the trigger event: some baseline before and then the activity that follows the trigger. Now, you can use the ERP-&amp;gt; Edit Paradigm to insert a new condition (CURRENT.code IS ... ). Then click on the “Epoch” tab and modify the epoch of this new condition – e.g. -1000 ms...-200 ms, also change the baseline epoch accordingly, then highlight the new condition in the list, and assign the epoch to the new condition. This condition will now average over the defined epoch that precedes the trigger.&lt;br /&gt;
#If you really need a new trigger code, you can export the trigger codes as event file, using the menu ERP-&amp;gt;Save Events As...  This will save events as a text file. Then open this “*.evt” file in a text editor or e.g. in Excel. The file lists the elapsed time in microseconds, and the event type. Now, for all event types that you want to replace, subtract 1000000 from the number in the first column. Change the code of the trigger to a new value, e.g. 511. Get rid of the events that you don’t want to change. Save this file under a different name in text format, and open it again in BESA using ERP-&amp;gt;Open Event File... (For example, you can use Excel in the following way: Open the file. Select all columns, and sort by the “Comnt” column. Delete all rows that contain trigger events that you don’t want to change. In cell E2, type the formula “=A2-1000000” and apply to all rows. Then copy this and paste values back into the A column. Delete column E. Change column C values (TriNo). Then save as text file, and re-load in BESA.)&lt;br /&gt;
&lt;br /&gt;
[[Category:ERP/ERF]]&lt;/div&gt;</summary>
		<author><name>Andre</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Inserting_Triggers_Relative_to_Existing_Events</id>
		<title>Inserting Triggers Relative to Existing Events</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Inserting_Triggers_Relative_to_Existing_Events"/>
				<updated>2016-05-12T14:14:33Z</updated>
		
		<summary type="html">&lt;p&gt;Andre: Slight alteration of text copied from support email by HB &amp;quot; inserting triggers relative to existing events &amp;quot; .&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{BESAInfobox&lt;br /&gt;
|title = Module information&lt;br /&gt;
|module = BESA Research Basic or higher&lt;br /&gt;
|version = 5.2 or higher&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
Say you are interested in studying neural activity that precedes an existing trigger. This can be addressed in the following ways:&lt;br /&gt;
&lt;br /&gt;
# You are interested in a certain epoch that precedes the trigger event that is already coded. So, instead of entering a new trigger code, you could just add a new condition that works on the existing trigger code, and merely changes the epoch of interest. Presumably you have defined a condition where you are looking at the activity around the trigger event: some baseline before and then the activity that follows the trigger. Now, you can use the ERP-&amp;gt; Edit Paradigm to insert a new condition (CURRENT.code IS ... ). Then click on the “Epoch” tab and modify the epoch of this new condition – e.g. -1000 ms...-200 ms, also change the baseline epoch accordingly, then highlight the new condition in the list, and assign the epoch to the new condition. This condition will now average over the defined epoch that precedes the trigger.&lt;br /&gt;
#If you really need a new trigger code, you can export the trigger codes as event file, using the menu ERP-&amp;gt;Save Events As...  This will save events as a text file. Then open this “*.evt” file in a text editor or e.g. in Excel. The file lists the elapsed time in microseconds, and the event type. Now, for all event types that you want to replace, subtract 1000000 from the number in the first column. Change the code of the trigger to a new value, e.g. 511. Get rid of the events that you don’t want to change. Save this file under a different name in text format, and open it again in BESA using ERP-&amp;gt;Open Event File...&lt;br /&gt;
(For example, you can use Excel in the following way: Open the file. Select all columns, and sort by the “Comnt” column. Delete all rows that contain trigger events that you don’t want to change. In cell E2, type the formula “=A2-1000000” and apply to all rows. Then copy this and paste values back into the A column. Delete column E. Change column C values (TriNo). Then save as text file, and re-load in BESA.)&lt;br /&gt;
&lt;br /&gt;
[[Category:ERP/ERF]]&lt;/div&gt;</summary>
		<author><name>Andre</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Create_Triggers_for_Artifact-Rejected_Epochs</id>
		<title>Create Triggers for Artifact-Rejected Epochs</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Create_Triggers_for_Artifact-Rejected_Epochs"/>
				<updated>2016-05-12T14:09:17Z</updated>
		
		<summary type="html">&lt;p&gt;Andre: Andre moved page Create triggers for artifact-rejected epochs to Create Triggers for Artifact-Rejected Epochs: Spelling on the title.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{BESAInfobox&lt;br /&gt;
|title = Module information&lt;br /&gt;
|module = BESA Research Basic or higher&lt;br /&gt;
|version = 5.2 or higher&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Overview ===&lt;br /&gt;
Here we demonstrate how to track what epochs were rejected by the artifact rejection. There might be experiments were one is interested in actually analyzing the rejected epochs. This information is available in the respective paradigm file but has to be extracted by the user. The idea is to create a new trigger for the rejected epochs that can later be read back into BESA Research.&lt;br /&gt;
&lt;br /&gt;
=== Identifying Rejected Epochs ===&lt;br /&gt;
In this example we use the subject 2 of the Auditory Intensity experiment located in the BESA Research examples folder (../Examples/AuditoryIntensity/S2.cnt). &lt;br /&gt;
# Open the raw file S2.cnt and create a new paradigm for it. In the conditions tab create only conditions that directly correspond to each of the respective triggers (in my case I have 5 triggers, thus I have 5 conditions, one for each &amp;quot;current&amp;quot; trigger).&lt;br /&gt;
# Define the Epochs and Filters as you like.&lt;br /&gt;
# Run the artifact rejection.&lt;br /&gt;
# Close everything and find the respective paradigm file in the folder of raw file S2.cnt (typically %basename%.pdg, in my case S2.pdg, see [[File:S2.PDG|thumb]]).&lt;br /&gt;
# Open the paradigm file in a text editor (e.g. Notepad, please do not use word as it might change the format of the text).&lt;br /&gt;
# Find the section starting with [ArtifactScan], ignore the following 4 lines (see the [[Paradigm File Format in BESA|PDG file format description]] for details if you are curious!) and copy everything thereafter to a new txt file. &lt;br /&gt;
# Import the newly created file in Excel by specifying that spaces and tabs are the delimiters for the columns. Save the file in excel format and leave it open. Be sure to have the decimal separator set to &amp;quot; . &amp;quot; and the thousands separator set to none.&lt;br /&gt;
# Open the attached excel file [[File:ArtifactRejection.xlsx]]. In the first sheet you should be able to see a blue painted area. Please copy the contents of the table you created in there. Be sure to copy the values only (not e.g. the format). The table will basically check if a particular epoch was rejected or not. In case it will substitute the value for the trigger on the left most side of the table with a new trigger (12 in this case, marked in orange in the table). The table was made to support up to 257 channels, in case you have more please just adjust the formulas in Exceeds max Amp etc…&lt;br /&gt;
Please also set the right artifact rejection values (cells are marked with green in the table) as in the paradigm window. &lt;br /&gt;
Please also make the tables length match the length of your data by copy pasting the 4 row x 10 columns block accordingly (marked in orange for easier identification!).&lt;br /&gt;
# Ok, now you should be almost done. The 5 leftmost columns on your table should have all the necessary information to create a new event file. Please copy the 4 columns starting from the cell immediately below the label &amp;quot;Tmu&amp;quot; (A13 if nobody changed the table in the meantime) to the end of the table. Insert them in a new sheet (NewEventFile) from A2 onward. Please be careful to paste values only! (Do paste special-&amp;gt;values only  in excel).&lt;br /&gt;
# Almost there! Please select all the data in the new sheet and press Sort &amp;amp; Filter, select Custom sort, and choose sort by Column A, Sort On Values and choose A-&amp;gt;Z as order. This should effectively remove the empty rows. &lt;br /&gt;
&lt;br /&gt;
=== Creating a new evt File === &lt;br /&gt;
# Please select all the relevant rows for the 5 columns in the new sheet and just copy them to a new file in Notepad. Please save the file with the evt extension. You can see the evt file obtained from the example described here [[File:S2_ArtRej_EventFile.evt]].&lt;br /&gt;
# Go back to BESA, remove all the existing triggers in ERP-&amp;gt;Edit Triggers-&amp;gt;Delete. Once this is done please load the file evt file you created by doing ERP-&amp;gt;Open Event File.&lt;br /&gt;
# Trigger 12 should now appear in your data and represents those triggers that will be removed during artifact rejection. &lt;br /&gt;
# Using the paradigm window you should now be able to run your analysis using the new trigger 12 you created.&lt;br /&gt;
&lt;br /&gt;
[[Category:ERP/ERF]]&lt;/div&gt;</summary>
		<author><name>Andre</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Create_triggers_for_artifact-rejected_epochs</id>
		<title>Create triggers for artifact-rejected epochs</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Create_triggers_for_artifact-rejected_epochs"/>
				<updated>2016-05-12T14:09:17Z</updated>
		
		<summary type="html">&lt;p&gt;Andre: Andre moved page Create triggers for artifact-rejected epochs to Create Triggers for Artifact-Rejected Epochs: Spelling on the title.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[Create Triggers for Artifact-Rejected Epochs]]&lt;/div&gt;</summary>
		<author><name>Andre</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Exporting_Artifact-Corrected_Data</id>
		<title>Exporting Artifact-Corrected Data</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Exporting_Artifact-Corrected_Data"/>
				<updated>2016-05-12T13:44:43Z</updated>
		
		<summary type="html">&lt;p&gt;Andre: First draft.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{BESAInfobox&lt;br /&gt;
|title = Module information&lt;br /&gt;
|module = BESA Research Basic or higher&lt;br /&gt;
|version = 6.0 or higher&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
Artifact corrected data can be exported for further analysis in third party software. It is essential to keep in mind that this data will always suffer from some level of distortion. For that reason some earlier versions of BESA would even block some modalities of file export.  &lt;br /&gt;
&lt;br /&gt;
== Choosing the Artifact-Correction Method ==&lt;br /&gt;
BESA 6.0 onwards provides four different artifact correction possibilities: ICA, adaptive, surrogate and SSP (see the BESA manual or the BESA Research tutorial for more details  [ftp://h1772544.stratoserver.net/public/Research/Tutorials/ latest BESA tutorial]).&lt;br /&gt;
&lt;br /&gt;
The adaptive method, also known as PCA-correction, is computed separately for each screen. This is the best correction method when looking through your data. However it might present discontinuities at the end or beginning of each page. The other methods instead correct the whole data set at once. Therefore it is recommended that you use one of these when exporting your artifact-corrected data. Furthermore we strongly recommend you use the ICA or surrogate method rather than the SSP method, as the latter typically causes the largest distortions. &lt;br /&gt;
&lt;br /&gt;
== Exporting the Artifact-Corrected Data ==&lt;br /&gt;
&lt;br /&gt;
After having applied the artifact correction:&lt;br /&gt;
# Go to File-&amp;gt;Export. &lt;br /&gt;
# To enable the artifact correction you should select the option &amp;quot;Current filters and current baseline for segments settings&amp;quot;.&lt;br /&gt;
# Choose the &amp;quot;Target data formats&amp;quot;. Say BESA binary.&lt;br /&gt;
# Press Ok to start the export.&lt;br /&gt;
&lt;br /&gt;
Please note that the exported binary will have the usual &amp;quot;corrected&amp;quot; text on the upper right hand corner of the traces screen. It will however be marked red. The artifact correction can no longer be reversed at this stage. Furthermore BESA will not allow a further artifact correction to be attempted on this already corrected file. &lt;br /&gt;
&lt;br /&gt;
Although this is not recommended, you can trick BESA into forgetting that artifact correction was done by for example exporting it to other formats such to ASCII multiplexed. &lt;br /&gt;
&lt;br /&gt;
[[Category:ERP/ERF]]&lt;/div&gt;</summary>
		<author><name>Andre</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Create_Triggers_for_Artifact-Rejected_Epochs</id>
		<title>Create Triggers for Artifact-Rejected Epochs</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Create_Triggers_for_Artifact-Rejected_Epochs"/>
				<updated>2016-05-12T11:49:59Z</updated>
		
		<summary type="html">&lt;p&gt;Andre: Added some extra gizmos.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{BESAInfobox&lt;br /&gt;
|title = Module information&lt;br /&gt;
|module = BESA Research Basic or higher&lt;br /&gt;
|version = 5.2 or higher&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Overview ===&lt;br /&gt;
Here we demonstrate how to track what epochs were rejected by the artifact rejection. There might be experiments were one is interested in actually analyzing the rejected epochs. This information is available in the respective paradigm file but has to be extracted by the user. The idea is to create a new trigger for the rejected epochs that can later be read back into BESA Research.&lt;br /&gt;
&lt;br /&gt;
=== Identifying Rejected Epochs ===&lt;br /&gt;
In this example we use the subject 2 of the Auditory Intensity experiment located in the BESA Research examples folder (../Examples/AuditoryIntensity/S2.cnt). &lt;br /&gt;
# Open the raw file S2.cnt and create a new paradigm for it. In the conditions tab create only conditions that directly correspond to each of the respective triggers (in my case I have 5 triggers, thus I have 5 conditions, one for each &amp;quot;current&amp;quot; trigger).&lt;br /&gt;
# Define the Epochs and Filters as you like.&lt;br /&gt;
# Run the artifact rejection.&lt;br /&gt;
# Close everything and find the respective paradigm file in the folder of raw file S2.cnt (typically %basename%.pdg, in my case S2.pdg, see [[File:S2.PDG|thumb]]).&lt;br /&gt;
# Open the paradigm file in a text editor (e.g. Notepad, please do not use word as it might change the format of the text).&lt;br /&gt;
# Find the section starting with [ArtifactScan], ignore the following 4 lines (see the [[Paradigm File Format in BESA|PDG file format description]] for details if you are curious!) and copy everything thereafter to a new txt file. &lt;br /&gt;
# Import the newly created file in Excel by specifying that spaces and tabs are the delimiters for the columns. Save the file in excel format and leave it open. Be sure to have the decimal separator set to &amp;quot; . &amp;quot; and the thousands separator set to none.&lt;br /&gt;
# Open the attached excel file [[File:ArtifactRejection.xlsx]]. In the first sheet you should be able to see a blue painted area. Please copy the contents of the table you created in there. Be sure to copy the values only (not e.g. the format). The table will basically check if a particular epoch was rejected or not. In case it will substitute the value for the trigger on the left most side of the table with a new trigger (12 in this case, marked in orange in the table). The table was made to support up to 257 channels, in case you have more please just adjust the formulas in Exceeds max Amp etc…&lt;br /&gt;
Please also set the right artifact rejection values (cells are marked with green in the table) as in the paradigm window. &lt;br /&gt;
Please also make the tables length match the length of your data by copy pasting the 4 row x 10 columns block accordingly (marked in orange for easier identification!).&lt;br /&gt;
# Ok, now you should be almost done. The 5 leftmost columns on your table should have all the necessary information to create a new event file. Please copy the 4 columns starting from the cell immediately below the label &amp;quot;Tmu&amp;quot; (A13 if nobody changed the table in the meantime) to the end of the table. Insert them in a new sheet (NewEventFile) from A2 onward. Please be careful to paste values only! (Do paste special-&amp;gt;values only  in excel).&lt;br /&gt;
# Almost there! Please select all the data in the new sheet and press Sort &amp;amp; Filter, select Custom sort, and choose sort by Column A, Sort On Values and choose A-&amp;gt;Z as order. This should effectively remove the empty rows. &lt;br /&gt;
&lt;br /&gt;
=== Creating a new evt File === &lt;br /&gt;
# Please select all the relevant rows for the 5 columns in the new sheet and just copy them to a new file in Notepad. Please save the file with the evt extension. You can see the evt file obtained from the example described here [[File:S2_ArtRej_EventFile.evt]].&lt;br /&gt;
# Go back to BESA, remove all the existing triggers in ERP-&amp;gt;Edit Triggers-&amp;gt;Delete. Once this is done please load the file evt file you created by doing ERP-&amp;gt;Open Event File.&lt;br /&gt;
# Trigger 12 should now appear in your data and represents those triggers that will be removed during artifact rejection. &lt;br /&gt;
# Using the paradigm window you should now be able to run your analysis using the new trigger 12 you created.&lt;br /&gt;
&lt;br /&gt;
[[Category:ERP/ERF]]&lt;/div&gt;</summary>
		<author><name>Andre</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Event_File_Format</id>
		<title>Event File Format</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Event_File_Format"/>
				<updated>2016-05-12T11:48:28Z</updated>
		
		<summary type="html">&lt;p&gt;Andre: Changed level of &amp;quot;Overview&amp;quot; to a level 3 header.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{BESAInfobox&lt;br /&gt;
|title = Module information&lt;br /&gt;
|module = BESA Research Basic or higher&lt;br /&gt;
|version = 5.2 or higher&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
=== Overview ===&lt;br /&gt;
Event files (extension *.evt) contain triggers and events and can be loaded as an additional file to provide more information about the whole course of an EEG/MEG recording.&lt;br /&gt;
An event file can be edited by opening it in any text editor, e.g. Notepad. It is also possible to create new event files from scratch which can be imported into the data file later. &lt;br /&gt;
Note the following conventions for event files:&lt;br /&gt;
* Event descriptions are given in the columns of the event file&lt;br /&gt;
* Each file must contain a header line and data lines&lt;br /&gt;
&lt;br /&gt;
=== File Header ===&lt;br /&gt;
The header is comprised of abbreviated descriptions for each column. Each entry in the data line must be specified in the header line at the correct column position. The order of the data elements and their description in the header line can be chosen arbitrarily and the entries can be separated by commas, tabs and/or spaces. The last n data elements can be omitted, if they are neither Code nor one of ''Tms'', ''Tmu'' or ''Tsec''. The following codes are recognized by the ERP module:&lt;br /&gt;
* ''Code'' - event code (integer, see section [[#Event Codes|Event Codes]])&lt;br /&gt;
* ''Tms'' - event time in milliseconds relative to the start of the data file or ''Tmu'' [in microseconds] or ''Tsec'' [in sec] (floating point value)&lt;br /&gt;
* ''TriNo'' - trigger number (integer) (identifies the trigger in the event bar of the main module)&lt;br /&gt;
* ''RCode'' - reaction code (integer)&lt;br /&gt;
* ''RTms'' - reaction time in milliseconds or ''RTmu'' or ''RTsec'' (floating point value)&lt;br /&gt;
* ''Comnt'' - comment to describe event (string of up to 39 characters), will be truncated if longer than 39 characters. &lt;br /&gt;
You can also define columns which should not be recognized by the ERP module. Simply specify these columns in the header with any unknown code. Therefore you might be able to use previously generated files without major changes. &lt;br /&gt;
&lt;br /&gt;
=== Event Codes ===&lt;br /&gt;
The event code Code must be one of the following integers:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! style=&amp;quot;text-align: center; font-weight: bold;&amp;quot; | Code&lt;br /&gt;
! style=&amp;quot;text-align: center; font-weight: bold;&amp;quot; | Event/Trigger Type&lt;br /&gt;
|-&lt;br /&gt;
| 1&lt;br /&gt;
| Trigger&lt;br /&gt;
|-&lt;br /&gt;
| 2&lt;br /&gt;
| Comment&lt;br /&gt;
|-&lt;br /&gt;
| 3&lt;br /&gt;
| Marker&lt;br /&gt;
|-&lt;br /&gt;
| 11&lt;br /&gt;
| Pattern1&lt;br /&gt;
|-&lt;br /&gt;
| 12&lt;br /&gt;
| Pattern2&lt;br /&gt;
|-&lt;br /&gt;
| 13&lt;br /&gt;
| Pattern3&lt;br /&gt;
|-&lt;br /&gt;
| 14&lt;br /&gt;
| Pattern4&lt;br /&gt;
|-&lt;br /&gt;
| 15&lt;br /&gt;
| Pattern5&lt;br /&gt;
|-&lt;br /&gt;
| 21&lt;br /&gt;
| Artifact on&lt;br /&gt;
|-&lt;br /&gt;
| 22&lt;br /&gt;
| Artifact off&lt;br /&gt;
|-&lt;br /&gt;
| 31&lt;br /&gt;
| Epoch on&lt;br /&gt;
|-&lt;br /&gt;
| 32&lt;br /&gt;
| Epoch off&lt;br /&gt;
|-&lt;br /&gt;
| 41&lt;br /&gt;
| New segment&lt;br /&gt;
|-&lt;br /&gt;
| 42&lt;br /&gt;
| Average segment&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Additional Event Information ===&lt;br /&gt;
The event reaction time, event reaction code and event comment are represented by the comment in the main module as &amp;quot;''Comment (Rx,T____)''&amp;quot;, where ''Comment'' is the event comment, ''x'' describes the reaction code and the underscored line will be filled with the reaction time. Reaction time and reaction code are only read if the event code specifies it as a trigger.&lt;br /&gt;
A &amp;quot;New Segment&amp;quot; event can include time information that defines the starting time of the segment. This is defined in the ''TriNo'' column of the event file. The format is YYYY-MM-DDTHH:MM:SS, e.g. 2010-04-26T15:30:20.31 (note: seconds are a decimal number). If no time is defined, use a hyphen ('-'). See [[#Examples|below]]) for an example.&lt;br /&gt;
An &amp;quot;Average Segment&amp;quot; includes the prestimulus baseline interval in microseconds. This is defined in the ''TriNo'' column of the event file.&lt;br /&gt;
&lt;br /&gt;
=== Requirements ===&lt;br /&gt;
The file is valid if the header line contains at least the entries Code and one of ''Tms'', ''Tmu'' and ''Tsec''. The header specifications are case insensitive.&lt;br /&gt;
The file is invalid, if&lt;br /&gt;
• there are ambiguities in the header &lt;br /&gt;
• there is a data type mismatch in the data line &lt;br /&gt;
• an event time specifies an event which happened later than the end of the acquisition&lt;br /&gt;
Each omitted data entry is set to 0 or empty string by default.&lt;br /&gt;
A line with an invalid or unknown event code ''Code'' is skipped.&lt;br /&gt;
&lt;br /&gt;
=== Examples ===&lt;br /&gt;
Here are a couple of typical examples:&amp;lt;br&amp;gt;&lt;br /&gt;
'''1.) Simple trigger file'''&lt;br /&gt;
{| style=&amp;quot;border-spacing: 2px; border: 0px white;&amp;quot;&lt;br /&gt;
| Tms&lt;br /&gt;
| Code&lt;br /&gt;
| TriNo&lt;br /&gt;
| Comnt&lt;br /&gt;
|-&lt;br /&gt;
| 100.234&lt;br /&gt;
| 1&lt;br /&gt;
| 3&lt;br /&gt;
| Trigger: 3&lt;br /&gt;
|-&lt;br /&gt;
| 2300.456&lt;br /&gt;
| 1&lt;br /&gt;
| 1&lt;br /&gt;
| Trigger:1&lt;br /&gt;
|-&lt;br /&gt;
| 4500.21&lt;br /&gt;
| 1&lt;br /&gt;
| 1&lt;br /&gt;
| Trigger:1&lt;br /&gt;
|-&lt;br /&gt;
| 9800.47&lt;br /&gt;
| 1&lt;br /&gt;
| 7&lt;br /&gt;
| Trigger:7&lt;br /&gt;
|-&lt;br /&gt;
| 12500.78&lt;br /&gt;
| 1&lt;br /&gt;
| 2&lt;br /&gt;
| Trigger:2&lt;br /&gt;
|-&lt;br /&gt;
| 21237&lt;br /&gt;
| 1&lt;br /&gt;
| 1&lt;br /&gt;
| Trigger:1&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
This example event file can be downloaded here: [[Media:EventFileExample1.evt|Example 1]]&lt;br /&gt;
&lt;br /&gt;
'''2.) Trigger file with reaction code and reaction time'''&lt;br /&gt;
{| style=&amp;quot;border-spacing: 2px; border: 0px white;&amp;quot;&lt;br /&gt;
| Tms&lt;br /&gt;
| Code&lt;br /&gt;
| TriNo&lt;br /&gt;
| RTsec&lt;br /&gt;
| RCode&lt;br /&gt;
|-&lt;br /&gt;
| 100.234&lt;br /&gt;
| 1&lt;br /&gt;
| 3&lt;br /&gt;
| 0.23&lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| 2300.456&lt;br /&gt;
| 1&lt;br /&gt;
| 1&lt;br /&gt;
| 1.11&lt;br /&gt;
| 2&lt;br /&gt;
|-&lt;br /&gt;
| 4500.21&lt;br /&gt;
| 1&lt;br /&gt;
| 1&lt;br /&gt;
| 0.15&lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| 9800.47&lt;br /&gt;
| 1&lt;br /&gt;
| 7&lt;br /&gt;
| 0.87&lt;br /&gt;
| 0&lt;br /&gt;
|-&lt;br /&gt;
| 12500.78&lt;br /&gt;
| 1&lt;br /&gt;
| 2&lt;br /&gt;
| 2.1&lt;br /&gt;
| 2&lt;br /&gt;
|-&lt;br /&gt;
| 21237&lt;br /&gt;
| 1&lt;br /&gt;
| 1&lt;br /&gt;
| 3&lt;br /&gt;
| 1&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
This example event file can be downloaded here: [[Media:EventFileExample2.evt|Example 2]]&lt;br /&gt;
&lt;br /&gt;
'''3.) Event file without triggers'''&lt;br /&gt;
{| style=&amp;quot;border-spacing: 2px; border: 0px white;&amp;quot;&lt;br /&gt;
| Tmu&lt;br /&gt;
| Code&lt;br /&gt;
| Comnt&lt;br /&gt;
|-&lt;br /&gt;
| 10000.234&lt;br /&gt;
| 3&lt;br /&gt;
| Marker&lt;br /&gt;
|-&lt;br /&gt;
| 230000.456&lt;br /&gt;
| 12&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| 450000.21&lt;br /&gt;
| 14&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| 980000.47&lt;br /&gt;
| 12&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| 1250000.78&lt;br /&gt;
| 3&lt;br /&gt;
| Marker&lt;br /&gt;
|-&lt;br /&gt;
| 2123700&lt;br /&gt;
| 2&lt;br /&gt;
| Comment&lt;br /&gt;
|-&lt;br /&gt;
| 2534100.567&lt;br /&gt;
| 15&lt;br /&gt;
| &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
This example event file can be downloaded here: [[Media:EventFileExample3.evt|Example 3]]&lt;br /&gt;
&lt;br /&gt;
'''4.) File including triggers and events'''&lt;br /&gt;
{| style=&amp;quot;border-spacing: 2px; border: 0px white;&amp;quot;&lt;br /&gt;
| Tms&lt;br /&gt;
| Code&lt;br /&gt;
| TriNo&lt;br /&gt;
| RTsec&lt;br /&gt;
| RCode&lt;br /&gt;
| Comnt&lt;br /&gt;
|-&lt;br /&gt;
| 100.234&lt;br /&gt;
| 2&lt;br /&gt;
| 0&lt;br /&gt;
| 0&lt;br /&gt;
| 0&lt;br /&gt;
| CommentSet&lt;br /&gt;
|-&lt;br /&gt;
| 2300.456&lt;br /&gt;
| 1&lt;br /&gt;
| 2&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| 4500.21&lt;br /&gt;
| 1&lt;br /&gt;
| 1&lt;br /&gt;
| 0.15&lt;br /&gt;
| 1&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| 9800.47&lt;br /&gt;
| 11&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| 12500.78&lt;br /&gt;
| 3&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| 21237&lt;br /&gt;
| 2&lt;br /&gt;
| 0&lt;br /&gt;
| 3&lt;br /&gt;
| 1&lt;br /&gt;
| Comment&lt;br /&gt;
|-&lt;br /&gt;
| 25341.567&lt;br /&gt;
| 15&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
This example event file can be downloaded here: [[Media:EventFileExample4.evt|Example 4]]&lt;br /&gt;
&lt;br /&gt;
'''5.) New Segments'''&lt;br /&gt;
{| style=&amp;quot;border-spacing: 2px; border: 0px white;&amp;quot;&lt;br /&gt;
| Tms&lt;br /&gt;
| Code&lt;br /&gt;
| TriNo&lt;br /&gt;
| Comnt&lt;br /&gt;
|-&lt;br /&gt;
| 0&lt;br /&gt;
| 41&lt;br /&gt;
| 2010-04-26T15:30:20.31&lt;br /&gt;
| Start recording&lt;br /&gt;
|-&lt;br /&gt;
| 21000&lt;br /&gt;
| 41&lt;br /&gt;
| 2010-04-27T09:17:00.0&lt;br /&gt;
| Next day&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The new segment at the time 0 overrides the start time in the file.&lt;br /&gt;
A second segment at 21 s starts a new data block one day later at 9:17.&lt;br /&gt;
&lt;br /&gt;
This example event file can be downloaded here: [[Media:EventFileExample5.evt|Example 5]]&lt;br /&gt;
&lt;br /&gt;
'''6.) Average Segments'''&lt;br /&gt;
{| style=&amp;quot;border-spacing: 2px; border: 0px white;&amp;quot;&lt;br /&gt;
| Tms&lt;br /&gt;
| Code&lt;br /&gt;
| TriNo&lt;br /&gt;
| Comnt&lt;br /&gt;
|-&lt;br /&gt;
| 0&lt;br /&gt;
| 42&lt;br /&gt;
| 100000&lt;br /&gt;
| Cond 1: 25 avs&lt;br /&gt;
|-&lt;br /&gt;
| 1100&lt;br /&gt;
| 42&lt;br /&gt;
| 200000&lt;br /&gt;
| Cond 2: 201 avs&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The file contains two average segments. The first, with a prestimulus interval of 100 ms, has a duration of 1100 ms. The second, with a prestimulus interval of 200 ms, has a length up to the end of the data file.&lt;br /&gt;
1&lt;br /&gt;
This example event file can be downloaded here: [[Media:EventFileExample6.evt|Example 6]]&lt;br /&gt;
&lt;br /&gt;
[[Category:ERP/ERF]]&lt;/div&gt;</summary>
		<author><name>Andre</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Event_File_Format</id>
		<title>Event File Format</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Event_File_Format"/>
				<updated>2016-05-12T11:44:22Z</updated>
		
		<summary type="html">&lt;p&gt;Andre: Added extra level 2 header to push the contents box to the top of the page.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{BESAInfobox&lt;br /&gt;
|title = Module information&lt;br /&gt;
|module = BESA Research Basic or higher&lt;br /&gt;
|version = 5.2 or higher&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Overview ==&lt;br /&gt;
Event files (extension *.evt) contain triggers and events and can be loaded as an additional file to provide more information about the whole course of an EEG/MEG recording.&lt;br /&gt;
An event file can be edited by opening it in any text editor, e.g. Notepad. It is also possible to create new event files from scratch which can be imported into the data file later. &lt;br /&gt;
Note the following conventions for event files:&lt;br /&gt;
* Event descriptions are given in the columns of the event file&lt;br /&gt;
* Each file must contain a header line and data lines&lt;br /&gt;
&lt;br /&gt;
=== File Header ===&lt;br /&gt;
The header is comprised of abbreviated descriptions for each column. Each entry in the data line must be specified in the header line at the correct column position. The order of the data elements and their description in the header line can be chosen arbitrarily and the entries can be separated by commas, tabs and/or spaces. The last n data elements can be omitted, if they are neither Code nor one of ''Tms'', ''Tmu'' or ''Tsec''. The following codes are recognized by the ERP module:&lt;br /&gt;
* ''Code'' - event code (integer, see section [[#Event Codes|Event Codes]])&lt;br /&gt;
* ''Tms'' - event time in milliseconds relative to the start of the data file or ''Tmu'' [in microseconds] or ''Tsec'' [in sec] (floating point value)&lt;br /&gt;
* ''TriNo'' - trigger number (integer) (identifies the trigger in the event bar of the main module)&lt;br /&gt;
* ''RCode'' - reaction code (integer)&lt;br /&gt;
* ''RTms'' - reaction time in milliseconds or ''RTmu'' or ''RTsec'' (floating point value)&lt;br /&gt;
* ''Comnt'' - comment to describe event (string of up to 39 characters), will be truncated if longer than 39 characters. &lt;br /&gt;
You can also define columns which should not be recognized by the ERP module. Simply specify these columns in the header with any unknown code. Therefore you might be able to use previously generated files without major changes. &lt;br /&gt;
&lt;br /&gt;
=== Event Codes ===&lt;br /&gt;
The event code Code must be one of the following integers:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! style=&amp;quot;text-align: center; font-weight: bold;&amp;quot; | Code&lt;br /&gt;
! style=&amp;quot;text-align: center; font-weight: bold;&amp;quot; | Event/Trigger Type&lt;br /&gt;
|-&lt;br /&gt;
| 1&lt;br /&gt;
| Trigger&lt;br /&gt;
|-&lt;br /&gt;
| 2&lt;br /&gt;
| Comment&lt;br /&gt;
|-&lt;br /&gt;
| 3&lt;br /&gt;
| Marker&lt;br /&gt;
|-&lt;br /&gt;
| 11&lt;br /&gt;
| Pattern1&lt;br /&gt;
|-&lt;br /&gt;
| 12&lt;br /&gt;
| Pattern2&lt;br /&gt;
|-&lt;br /&gt;
| 13&lt;br /&gt;
| Pattern3&lt;br /&gt;
|-&lt;br /&gt;
| 14&lt;br /&gt;
| Pattern4&lt;br /&gt;
|-&lt;br /&gt;
| 15&lt;br /&gt;
| Pattern5&lt;br /&gt;
|-&lt;br /&gt;
| 21&lt;br /&gt;
| Artifact on&lt;br /&gt;
|-&lt;br /&gt;
| 22&lt;br /&gt;
| Artifact off&lt;br /&gt;
|-&lt;br /&gt;
| 31&lt;br /&gt;
| Epoch on&lt;br /&gt;
|-&lt;br /&gt;
| 32&lt;br /&gt;
| Epoch off&lt;br /&gt;
|-&lt;br /&gt;
| 41&lt;br /&gt;
| New segment&lt;br /&gt;
|-&lt;br /&gt;
| 42&lt;br /&gt;
| Average segment&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Additional Event Information ===&lt;br /&gt;
The event reaction time, event reaction code and event comment are represented by the comment in the main module as &amp;quot;''Comment (Rx,T____)''&amp;quot;, where ''Comment'' is the event comment, ''x'' describes the reaction code and the underscored line will be filled with the reaction time. Reaction time and reaction code are only read if the event code specifies it as a trigger.&lt;br /&gt;
A &amp;quot;New Segment&amp;quot; event can include time information that defines the starting time of the segment. This is defined in the ''TriNo'' column of the event file. The format is YYYY-MM-DDTHH:MM:SS, e.g. 2010-04-26T15:30:20.31 (note: seconds are a decimal number). If no time is defined, use a hyphen ('-'). See [[#Examples|below]]) for an example.&lt;br /&gt;
An &amp;quot;Average Segment&amp;quot; includes the prestimulus baseline interval in microseconds. This is defined in the ''TriNo'' column of the event file.&lt;br /&gt;
&lt;br /&gt;
=== Requirements ===&lt;br /&gt;
The file is valid if the header line contains at least the entries Code and one of ''Tms'', ''Tmu'' and ''Tsec''. The header specifications are case insensitive.&lt;br /&gt;
The file is invalid, if&lt;br /&gt;
• there are ambiguities in the header &lt;br /&gt;
• there is a data type mismatch in the data line &lt;br /&gt;
• an event time specifies an event which happened later than the end of the acquisition&lt;br /&gt;
Each omitted data entry is set to 0 or empty string by default.&lt;br /&gt;
A line with an invalid or unknown event code ''Code'' is skipped.&lt;br /&gt;
&lt;br /&gt;
=== Examples ===&lt;br /&gt;
Here are a couple of typical examples:&amp;lt;br&amp;gt;&lt;br /&gt;
'''1.) Simple trigger file'''&lt;br /&gt;
{| style=&amp;quot;border-spacing: 2px; border: 0px white;&amp;quot;&lt;br /&gt;
| Tms&lt;br /&gt;
| Code&lt;br /&gt;
| TriNo&lt;br /&gt;
| Comnt&lt;br /&gt;
|-&lt;br /&gt;
| 100.234&lt;br /&gt;
| 1&lt;br /&gt;
| 3&lt;br /&gt;
| Trigger: 3&lt;br /&gt;
|-&lt;br /&gt;
| 2300.456&lt;br /&gt;
| 1&lt;br /&gt;
| 1&lt;br /&gt;
| Trigger:1&lt;br /&gt;
|-&lt;br /&gt;
| 4500.21&lt;br /&gt;
| 1&lt;br /&gt;
| 1&lt;br /&gt;
| Trigger:1&lt;br /&gt;
|-&lt;br /&gt;
| 9800.47&lt;br /&gt;
| 1&lt;br /&gt;
| 7&lt;br /&gt;
| Trigger:7&lt;br /&gt;
|-&lt;br /&gt;
| 12500.78&lt;br /&gt;
| 1&lt;br /&gt;
| 2&lt;br /&gt;
| Trigger:2&lt;br /&gt;
|-&lt;br /&gt;
| 21237&lt;br /&gt;
| 1&lt;br /&gt;
| 1&lt;br /&gt;
| Trigger:1&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
This example event file can be downloaded here: [[Media:EventFileExample1.evt|Example 1]]&lt;br /&gt;
&lt;br /&gt;
'''2.) Trigger file with reaction code and reaction time'''&lt;br /&gt;
{| style=&amp;quot;border-spacing: 2px; border: 0px white;&amp;quot;&lt;br /&gt;
| Tms&lt;br /&gt;
| Code&lt;br /&gt;
| TriNo&lt;br /&gt;
| RTsec&lt;br /&gt;
| RCode&lt;br /&gt;
|-&lt;br /&gt;
| 100.234&lt;br /&gt;
| 1&lt;br /&gt;
| 3&lt;br /&gt;
| 0.23&lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| 2300.456&lt;br /&gt;
| 1&lt;br /&gt;
| 1&lt;br /&gt;
| 1.11&lt;br /&gt;
| 2&lt;br /&gt;
|-&lt;br /&gt;
| 4500.21&lt;br /&gt;
| 1&lt;br /&gt;
| 1&lt;br /&gt;
| 0.15&lt;br /&gt;
| 1&lt;br /&gt;
|-&lt;br /&gt;
| 9800.47&lt;br /&gt;
| 1&lt;br /&gt;
| 7&lt;br /&gt;
| 0.87&lt;br /&gt;
| 0&lt;br /&gt;
|-&lt;br /&gt;
| 12500.78&lt;br /&gt;
| 1&lt;br /&gt;
| 2&lt;br /&gt;
| 2.1&lt;br /&gt;
| 2&lt;br /&gt;
|-&lt;br /&gt;
| 21237&lt;br /&gt;
| 1&lt;br /&gt;
| 1&lt;br /&gt;
| 3&lt;br /&gt;
| 1&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
This example event file can be downloaded here: [[Media:EventFileExample2.evt|Example 2]]&lt;br /&gt;
&lt;br /&gt;
'''3.) Event file without triggers'''&lt;br /&gt;
{| style=&amp;quot;border-spacing: 2px; border: 0px white;&amp;quot;&lt;br /&gt;
| Tmu&lt;br /&gt;
| Code&lt;br /&gt;
| Comnt&lt;br /&gt;
|-&lt;br /&gt;
| 10000.234&lt;br /&gt;
| 3&lt;br /&gt;
| Marker&lt;br /&gt;
|-&lt;br /&gt;
| 230000.456&lt;br /&gt;
| 12&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| 450000.21&lt;br /&gt;
| 14&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| 980000.47&lt;br /&gt;
| 12&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| 1250000.78&lt;br /&gt;
| 3&lt;br /&gt;
| Marker&lt;br /&gt;
|-&lt;br /&gt;
| 2123700&lt;br /&gt;
| 2&lt;br /&gt;
| Comment&lt;br /&gt;
|-&lt;br /&gt;
| 2534100.567&lt;br /&gt;
| 15&lt;br /&gt;
| &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
This example event file can be downloaded here: [[Media:EventFileExample3.evt|Example 3]]&lt;br /&gt;
&lt;br /&gt;
'''4.) File including triggers and events'''&lt;br /&gt;
{| style=&amp;quot;border-spacing: 2px; border: 0px white;&amp;quot;&lt;br /&gt;
| Tms&lt;br /&gt;
| Code&lt;br /&gt;
| TriNo&lt;br /&gt;
| RTsec&lt;br /&gt;
| RCode&lt;br /&gt;
| Comnt&lt;br /&gt;
|-&lt;br /&gt;
| 100.234&lt;br /&gt;
| 2&lt;br /&gt;
| 0&lt;br /&gt;
| 0&lt;br /&gt;
| 0&lt;br /&gt;
| CommentSet&lt;br /&gt;
|-&lt;br /&gt;
| 2300.456&lt;br /&gt;
| 1&lt;br /&gt;
| 2&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| 4500.21&lt;br /&gt;
| 1&lt;br /&gt;
| 1&lt;br /&gt;
| 0.15&lt;br /&gt;
| 1&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| 9800.47&lt;br /&gt;
| 11&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| 12500.78&lt;br /&gt;
| 3&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| 21237&lt;br /&gt;
| 2&lt;br /&gt;
| 0&lt;br /&gt;
| 3&lt;br /&gt;
| 1&lt;br /&gt;
| Comment&lt;br /&gt;
|-&lt;br /&gt;
| 25341.567&lt;br /&gt;
| 15&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
This example event file can be downloaded here: [[Media:EventFileExample4.evt|Example 4]]&lt;br /&gt;
&lt;br /&gt;
'''5.) New Segments'''&lt;br /&gt;
{| style=&amp;quot;border-spacing: 2px; border: 0px white;&amp;quot;&lt;br /&gt;
| Tms&lt;br /&gt;
| Code&lt;br /&gt;
| TriNo&lt;br /&gt;
| Comnt&lt;br /&gt;
|-&lt;br /&gt;
| 0&lt;br /&gt;
| 41&lt;br /&gt;
| 2010-04-26T15:30:20.31&lt;br /&gt;
| Start recording&lt;br /&gt;
|-&lt;br /&gt;
| 21000&lt;br /&gt;
| 41&lt;br /&gt;
| 2010-04-27T09:17:00.0&lt;br /&gt;
| Next day&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The new segment at the time 0 overrides the start time in the file.&lt;br /&gt;
A second segment at 21 s starts a new data block one day later at 9:17.&lt;br /&gt;
&lt;br /&gt;
This example event file can be downloaded here: [[Media:EventFileExample5.evt|Example 5]]&lt;br /&gt;
&lt;br /&gt;
'''6.) Average Segments'''&lt;br /&gt;
{| style=&amp;quot;border-spacing: 2px; border: 0px white;&amp;quot;&lt;br /&gt;
| Tms&lt;br /&gt;
| Code&lt;br /&gt;
| TriNo&lt;br /&gt;
| Comnt&lt;br /&gt;
|-&lt;br /&gt;
| 0&lt;br /&gt;
| 42&lt;br /&gt;
| 100000&lt;br /&gt;
| Cond 1: 25 avs&lt;br /&gt;
|-&lt;br /&gt;
| 1100&lt;br /&gt;
| 42&lt;br /&gt;
| 200000&lt;br /&gt;
| Cond 2: 201 avs&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The file contains two average segments. The first, with a prestimulus interval of 100 ms, has a duration of 1100 ms. The second, with a prestimulus interval of 200 ms, has a length up to the end of the data file.&lt;br /&gt;
1&lt;br /&gt;
This example event file can be downloaded here: [[Media:EventFileExample6.evt|Example 6]]&lt;br /&gt;
&lt;br /&gt;
[[Category:ERP/ERF]]&lt;/div&gt;</summary>
		<author><name>Andre</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=File:S2_ArtRej_EventFile.evt</id>
		<title>File:S2 ArtRej EventFile.evt</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=File:S2_ArtRej_EventFile.evt"/>
				<updated>2016-05-12T11:35:46Z</updated>
		
		<summary type="html">&lt;p&gt;Andre: Event file that includes a trigger identifying the epochs that are rejected by an artifact scan.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Event file that includes a trigger identifying the epochs that are rejected by an artifact scan.&lt;/div&gt;</summary>
		<author><name>Andre</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=File:ArtifactRejection.xlsx</id>
		<title>File:ArtifactRejection.xlsx</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=File:ArtifactRejection.xlsx"/>
				<updated>2016-05-12T11:33:11Z</updated>
		
		<summary type="html">&lt;p&gt;Andre: Excel table for computing the artifact rejection and assisting in generating a evt file with a trigger for the rejected artifacts.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Excel table for computing the artifact rejection and assisting in generating a evt file with a trigger for the rejected artifacts.&lt;/div&gt;</summary>
		<author><name>Andre</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Create_Triggers_for_Artifact-Rejected_Epochs</id>
		<title>Create Triggers for Artifact-Rejected Epochs</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Create_Triggers_for_Artifact-Rejected_Epochs"/>
				<updated>2016-05-12T11:24:31Z</updated>
		
		<summary type="html">&lt;p&gt;Andre: Fixed pdg page link.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Here we demonstrate how to track what epochs were rejected by the artifact rejection. There might be experiments were one is interested in actually analyzing the rejected epochs. This information is available in the respective paradigm file but has to be extracted by the user. The idea is to create a new trigger for the rejected epochs that can later be read back into BESA Research.&lt;br /&gt;
 &lt;br /&gt;
In this example we use the subject 2 of the Auditory Intensity experiment located in the BESA Research examples folder (../Examples/AuditoryIntensity/S2.cnt). &lt;br /&gt;
# Open the raw file S2.cnt and create a new paradigm for it. In the conditions tab create only conditions that directly correspond to each of the respective triggers (in my case I have 5 triggers, thus I have 5 conditions, one for each &amp;quot;current&amp;quot; trigger).&lt;br /&gt;
# Define the Epochs and Filters as you like.&lt;br /&gt;
# Run the artifact rejection.&lt;br /&gt;
# Close everything and find the respective paradigm file in the folder of raw file S2.cnt (typically %basename%.pdg, in my case S2.pdg, see [[File:S2.PDG|thumb]]).&lt;br /&gt;
# Open the paradigm file in a text editor (e.g. Notepad, please do not use word as it might change the format of the text).&lt;br /&gt;
# Find the section starting with [ArtifactScan], ignore the following 4 lines (see the [[Paradigm File Format in BESA|PDG file format description]] for details if you are curious!) and copy everything thereafter to a new txt file. &lt;br /&gt;
# Import the newly created file in Excel by specifying that spaces and tabs are the delimiters for the columns. Save the file in excel format and leave it open. Be sure to have the decimal separator set to &amp;quot; . &amp;quot; and the thousands separator set to none.&lt;br /&gt;
# Open the attached excel file [[File:ArtifactRejection.xlsx]]. In the first sheet you should be able to see a blue painted area. Please copy the contents of the table you created in there. Be sure to copy the values only (not e.g. the format). The table will basically check if a particular epoch was rejected or not. In case it will substitute the value for the trigger on the left most side of the table with a new trigger (12 in this case, marked in orange in the table). The table was made to support up to 257 channels, in case you have more please just adjust the formulas in Exceeds max Amp etc…&lt;br /&gt;
Please also set the right artifact rejection values (cells are marked with green in the table) as in the paradigm window. &lt;br /&gt;
Please also make the tables length match the length of your data by copy pasting the 4 row x 10 columns block accordingly (marked in orange for easier identification!).&lt;br /&gt;
# Ok, now you should be almost done. The 5 leftmost columns on your table should have all the necessary information to create a new event file. Please copy the 4 columns starting from the cell immediately below the label &amp;quot;Tmu&amp;quot; (A13 if nobody changed the table in the meantime) to the end of the table. Insert them in a new sheet (NewEventFile) from A2 onward. Please be careful to paste values only! (Do paste special-&amp;gt;values only  in excel).&lt;br /&gt;
# Almost there! Please select all the data in the new sheet and press Sort &amp;amp; Filter, select Custom sort, and choose sort by Column A, Sort On Values and choose A-&amp;gt;Z as order. This should effectively remove the empty rows. &lt;br /&gt;
# Please select all the relevant rows for the 5 columns in the new sheet and just copy them to a new file in Notepad. Please save the file with the evt extension. You can see the evt file obtained from the example described here [[File:S2_ArtRej_EventFile.evt]].&lt;br /&gt;
# Go back to BESA, remove all the existing triggers in ERP-&amp;gt;Edit Triggers-&amp;gt;Delete. Once this is done please load the file evt file you created by doing ERP-&amp;gt;Open Event File.&lt;br /&gt;
# Trigger 12 should now appear in your data and represents those triggers that will be removed during artifact rejection. &lt;br /&gt;
# Using the paradigm window you should now be able to run your analysis using the new trigger 12 you created.&lt;/div&gt;</summary>
		<author><name>Andre</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Create_Triggers_for_Artifact-Rejected_Epochs</id>
		<title>Create Triggers for Artifact-Rejected Epochs</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Create_Triggers_for_Artifact-Rejected_Epochs"/>
				<updated>2016-05-12T11:23:04Z</updated>
		
		<summary type="html">&lt;p&gt;Andre: Added links to the excel table, generated event file and pdg file after artifact rejection.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Here we demonstrate how to track what epochs were rejected by the artifact rejection. There might be experiments were one is interested in actually analyzing the rejected epochs. This information is available in the respective paradigm file but has to be extracted by the user. The idea is to create a new trigger for the rejected epochs that can later be read back into BESA Research.&lt;br /&gt;
 &lt;br /&gt;
In this example we use the subject 2 of the Auditory Intensity experiment located in the BESA Research examples folder (../Examples/AuditoryIntensity/S2.cnt). &lt;br /&gt;
# Open the raw file S2.cnt and create a new paradigm for it. In the conditions tab create only conditions that directly correspond to each of the respective triggers (in my case I have 5 triggers, thus I have 5 conditions, one for each &amp;quot;current&amp;quot; trigger).&lt;br /&gt;
# Define the Epochs and Filters as you like.&lt;br /&gt;
# Run the artifact rejection.&lt;br /&gt;
# Close everything and find the respective paradigm file in the folder of raw file S2.cnt (typically %basename%.pdg, in my case S2.pdg, see [[File:S2.PDG|thumb]]).&lt;br /&gt;
# Open the paradigm file in a text editor (e.g. Notepad, please do not use word as it might change the format of the text).&lt;br /&gt;
# Find the section starting with [ArtifactScan], ignore the following 4 lines (see the [[page name for the pdg format|PDG file format description]] for details if you are curious!) and copy everything thereafter to a new txt file. &lt;br /&gt;
# Import the newly created file in Excel by specifying that spaces and tabs are the delimiters for the columns. Save the file in excel format and leave it open. Be sure to have the decimal separator set to &amp;quot; . &amp;quot; and the thousands separator set to none.&lt;br /&gt;
# Open the attached excel file [[File:ArtifactRejection.xlsx]]. In the first sheet you should be able to see a blue painted area. Please copy the contents of the table you created in there. Be sure to copy the values only (not e.g. the format). The table will basically check if a particular epoch was rejected or not. In case it will substitute the value for the trigger on the left most side of the table with a new trigger (12 in this case, marked in orange in the table). The table was made to support up to 257 channels, in case you have more please just adjust the formulas in Exceeds max Amp etc…&lt;br /&gt;
Please also set the right artifact rejection values (cells are marked with green in the table) as in the paradigm window. &lt;br /&gt;
Please also make the tables length match the length of your data by copy pasting the 4 row x 10 columns block accordingly (marked in orange for easier identification!).&lt;br /&gt;
# Ok, now you should be almost done. The 5 leftmost columns on your table should have all the necessary information to create a new event file. Please copy the 4 columns starting from the cell immediately below the label &amp;quot;Tmu&amp;quot; (A13 if nobody changed the table in the meantime) to the end of the table. Insert them in a new sheet (NewEventFile) from A2 onward. Please be careful to paste values only! (Do paste special-&amp;gt;values only  in excel).&lt;br /&gt;
# Almost there! Please select all the data in the new sheet and press Sort &amp;amp; Filter, select Custom sort, and choose sort by Column A, Sort On Values and choose A-&amp;gt;Z as order. This should effectively remove the empty rows. &lt;br /&gt;
# Please select all the relevant rows for the 5 columns in the new sheet and just copy them to a new file in Notepad. Please save the file with the evt extension. You can see the evt file obtained from the example described here [[File:S2_ArtRej_EventFile.evt]].&lt;br /&gt;
# Go back to BESA, remove all the existing triggers in ERP-&amp;gt;Edit Triggers-&amp;gt;Delete. Once this is done please load the file evt file you created by doing ERP-&amp;gt;Open Event File.&lt;br /&gt;
# Trigger 12 should now appear in your data and represents those triggers that will be removed during artifact rejection. &lt;br /&gt;
# Using the paradigm window you should now be able to run your analysis using the new trigger 12 you created.&lt;/div&gt;</summary>
		<author><name>Andre</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Create_Triggers_for_Artifact-Rejected_Epochs</id>
		<title>Create Triggers for Artifact-Rejected Epochs</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Create_Triggers_for_Artifact-Rejected_Epochs"/>
				<updated>2016-05-12T09:24:50Z</updated>
		
		<summary type="html">&lt;p&gt;Andre: link to file&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Here we demonstrate how to track what epochs were rejected by the artifact rejection. There might be experiments were one is interested in actually analyzing the rejected epochs. This information is available in the respective paradigm file but has to be extracted by the user. The idea is to create a new trigger for the rejected epochs that can later be read back into BESA Research.&lt;br /&gt;
 &lt;br /&gt;
In this example we use the subject 2 of the Auditory Intensity experiment located in the BESA Research examples folder (../Examples/AuditoryIntensity/S2.cnt). &lt;br /&gt;
# Open the raw file S2.cnt and create a new paradigm for it. In the conditions tab create only conditions that directly correspond to each of the respective triggers (in my case I have 5 triggers, thus I have 5 conditions, one for each &amp;quot;current&amp;quot; trigger).&lt;br /&gt;
# Define the Epochs and Filters as you like.&lt;br /&gt;
# Run the artifact rejection.&lt;br /&gt;
# Close everything and find the respective paradigm file in the folder of raw file S2.cnt (typically %basename%.pdg, in my case S2.pdg, see [[Media:S2.pdg]]).&lt;br /&gt;
# Open the paradigm file in a text editor (e.g. Notepad, please do not use word as it might change the format of the text).&lt;br /&gt;
# Find the section starting with [ArtifactScan], ignore the following 4 lines (see the [[page name for the pdg format|PDG file format description]] for details if you are curious!) and copy everything thereafter to a new txt file. &lt;br /&gt;
# Import the newly created file in Excel by specifying that spaces and tabs are the delimiters for the columns. Save the file in excel format and leave it open.&lt;br /&gt;
# Open the attached excel file. In the first sheet you should be able to see a blue painted area. Please copy the contents of the table you created in there. Be sure to copy the values only (not e.g. the format). The table will basically check if a particular epoch was rejected or not. In case it will substitute the value for the trigger on the left most side of the table with a new trigger (12 in this case, marked in orange in the table). The table was made to support up to 256 channels, in case you have more please just adjust the formulas in Exceeds max Amp etc…&lt;br /&gt;
Please also set the right artifact rejection values (cells are marked with green in the table) as in the paradigm window. &lt;br /&gt;
Please also make the tables length match the length of your data by copy pasting the 4 row x 10 columns block accordingly.&lt;br /&gt;
# Ok, now you should be almost done. The 5 leftmost columns on your table should have all the necessary information to create a new event file. Please copy the 4 columns starting from the cell immediately below the label &amp;quot;Tmu&amp;quot; (A13 if nobody changed the table in the meantime) to the end of the table. Insert them in a new sheet (NewEventFile) from A2 onward. Please be careful to paste values only! (Do paste special-&amp;gt;values only  in excel).&lt;br /&gt;
# Almost there! Please select all the data in the new sheet and press Sort &amp;amp; Filter, select Custom sort, and choose sort by Column A, Sort On Values and choose A-&amp;gt;Z as order. This should effectively remove the empty rows. &lt;br /&gt;
# Please select all the relevant rows for the 5 columns in the new sheet and just copy them to a new file in Notepad. Please save the file with the evt extension. Attached you can see the evt file I got from the example above.&lt;br /&gt;
# Go back to BESA, remove all the existing triggers in ERP-&amp;gt;Edit Triggers-&amp;gt;Delete. Once this is done please load the file evt file you created by doing ERP-&amp;gt;Open Event File.&lt;br /&gt;
# Trigger 12 should now appear in your data and represents those triggers that will be removed during artifact rejection. &lt;br /&gt;
# Using the paradigm window you should now be able to run your analysis using the new trigger 12 you created.&lt;/div&gt;</summary>
		<author><name>Andre</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=File:S2.PDG</id>
		<title>File:S2.PDG</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=File:S2.PDG"/>
				<updated>2016-05-12T09:23:04Z</updated>
		
		<summary type="html">&lt;p&gt;Andre: Example for evaluating the artifact rejection results that are stored in the pdg file.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Example for evaluating the artifact rejection results that are stored in the pdg file.&lt;/div&gt;</summary>
		<author><name>Andre</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Create_Triggers_for_Artifact-Rejected_Epochs</id>
		<title>Create Triggers for Artifact-Rejected Epochs</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Create_Triggers_for_Artifact-Rejected_Epochs"/>
				<updated>2016-05-12T09:18:31Z</updated>
		
		<summary type="html">&lt;p&gt;Andre: Small changes.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Here we demonstrate how to track what epochs were rejected by the artifact rejection. There might be experiments were one is interested in actually analyzing the rejected epochs. This information is available in the respective paradigm file but has to be extracted by the user. The idea is to create a new trigger for the rejected epochs that can later be read back into BESA Research.&lt;br /&gt;
 &lt;br /&gt;
In this example we use the subject 2 of the Auditory Intensity experiment located in the BESA Research examples folder (../Examples/AuditoryIntensity/S2.cnt). &lt;br /&gt;
# Open the raw file S2.cnt and create a new paradigm for it. In the conditions tab create only conditions that directly correspond to each of the respective triggers (in my case I have 5 triggers, thus I have 5 conditions, one for each &amp;quot;current&amp;quot; trigger).&lt;br /&gt;
# Define the Epochs and Filters as you like.&lt;br /&gt;
# Run the artifact rejection.&lt;br /&gt;
# Close everything and find the respective paradigm file in the folder of raw file S2.cnt (typically %basename%.pdg, in my case S2.pdg).&lt;br /&gt;
# Open the paradigm file in a text editor (e.g. Notepad, please do not use word as it might change the format of the text).&lt;br /&gt;
# Find the section starting with [ArtifactScan], ignore the following 4 lines (see the [[page name for the pdg format|PDG file format description]] for details if you are curious!) and copy everything thereafter to a new txt file. &lt;br /&gt;
# Import the newly created file in Excel by specifying that spaces and tabs are the delimiters for the columns. Save the file in excel format and leave it open.&lt;br /&gt;
# Open the attached excel file. In the first sheet you should be able to see a blue painted area. Please copy the contents of the table you created in there. Be sure to copy the values only (not e.g. the format). The table will basically check if a particular epoch was rejected or not. In case it will substitute the value for the trigger on the left most side of the table with a new trigger (12 in this case, marked in orange in the table). The table was made to support up to 256 channels, in case you have more please just adjust the formulas in Exceeds max Amp etc…&lt;br /&gt;
Please also set the right artifact rejection values (cells are marked with green in the table) as in the paradigm window. &lt;br /&gt;
Please also make the tables length match the length of your data by copy pasting the 4 row x 10 columns block accordingly.&lt;br /&gt;
# Ok, now you should be almost done. The 5 leftmost columns on your table should have all the necessary information to create a new event file. Please copy the 4 columns starting from the cell immediately below the label &amp;quot;Tmu&amp;quot; (A13 if nobody changed the table in the meantime) to the end of the table. Insert them in a new sheet (NewEventFile) from A2 onward. Please be careful to paste values only! (Do paste special-&amp;gt;values only  in excel).&lt;br /&gt;
# Almost there! Please select all the data in the new sheet and press Sort &amp;amp; Filter, select Custom sort, and choose sort by Column A, Sort On Values and choose A-&amp;gt;Z as order. This should effectively remove the empty rows. &lt;br /&gt;
# Please select all the relevant rows for the 5 columns in the new sheet and just copy them to a new file in Notepad. Please save the file with the evt extension. Attached you can see the evt file I got from the example above.&lt;br /&gt;
# Go back to BESA, remove all the existing triggers in ERP-&amp;gt;Edit Triggers-&amp;gt;Delete. Once this is done please load the file evt file you created by doing ERP-&amp;gt;Open Event File.&lt;br /&gt;
# Trigger 12 should now appear in your data and represents those triggers that will be removed during artifact rejection. &lt;br /&gt;
# Using the paradigm window you should now be able to run your analysis using the new trigger 12 you created.&lt;/div&gt;</summary>
		<author><name>Andre</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Create_Triggers_for_Artifact-Rejected_Epochs</id>
		<title>Create Triggers for Artifact-Rejected Epochs</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Create_Triggers_for_Artifact-Rejected_Epochs"/>
				<updated>2016-04-08T15:27:33Z</updated>
		
		<summary type="html">&lt;p&gt;Andre: minor text changes and reference fixes&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Here we demonstrate how to track what epochs were rejected by the artifact rejection. There might be experiments were one is interested in actually analyzing the rejected epochs. This information is available in the respective paradigm file but has to be extracted by the user. The idea is to create a new trigger for the rejected epochs that can later be read back in into BESA Research.&lt;br /&gt;
 &lt;br /&gt;
In this example we use the subject 2 of the Auditory Intensity experiment located in the BESA Research examples folder (../Examples/AuditoryIntensity/S2.cnt). &lt;br /&gt;
# Open the raw file S2.cnt and create a new paradigm for it. In the conditions tab create only conditions that directly correspond to each of the respective triggers (in my case I have 5 triggers, thus I have 5 conditions, one for each &amp;quot;current&amp;quot; trigger).&lt;br /&gt;
# Define the Epochs and Filters as you like.&lt;br /&gt;
# Run the artifact rejection.&lt;br /&gt;
# Close everything and find the respective paradigm file in the folder of raw file S2.cnt (typically baseame.pdg, in my case S2.pdg).&lt;br /&gt;
# Open the paradigm file in a text editor (e.g. Notepad, please do not use word as it might change the format of the text).&lt;br /&gt;
# Find the section starting with [ArtifactScan], ignore the following 4 lines (see the [[page name for the pdg format|PDG file format description]] for details) and copy everything thereafter to a new txt file. &lt;br /&gt;
# Open the newly created file in Excel by specifying that spaces and tabs are the delimiters for the columns. Save the file in excel format and leave it open.&lt;br /&gt;
# Open the attached excel file. In the first sheet you should be able to see a blue painted area. Please copy the contents of the table you created in there. Be sure to copy the values only (not e.g. the format). The table will basically check if a particular epoch was rejected or not. In case it will substitute the value for the trigger on the left most side of the table with a new trigger (12 in this case, marked in orange in the table). The table was made to support up to 256 channels, in case you have more please just adjust the formulas in Exceeds max Amp etc…&lt;br /&gt;
Please also set the right artifact rejection values (cells are marked with green in the table) as in the paradigm window. &lt;br /&gt;
Please also make the tables length match the length of your data by copy pasting the 4 row x 10 columns block accordingly.&lt;br /&gt;
# Ok, now you should be almost done. The 5 leftmost columns on your table should have all the necessary information to create a new event file. Please copy the 4 columns starting from the cell immediately below the label &amp;quot;Tmu&amp;quot; (A13 if nobody changed the table in the meantime) to the end of the table. Insert them in a new sheet (NewEventFile, also in the table I sent you) from A2 onwards. Please be careful to paste values only! (Do paste special-&amp;gt;values only  in excel).&lt;br /&gt;
# Almost there! Please select all the data in the new sheet and press Sort &amp;amp; Filter, select Custom sort, and choose sort by Column A, Sort On Values and choose A-&amp;gt;Z as order. This should effectively remove the empty rows. &lt;br /&gt;
# Please select all the relevant rows for the 5 columns in the new sheet and just copy them to a new file in Notepad. Please save the file with the evt extension. Attached you can see the evt file I got from the example above.&lt;br /&gt;
# Go back to BESA, remove all the existing triggers in ERP-&amp;gt;Edit Triggers-&amp;gt;Delete. Once this is done please load the file evt file you created by doing ERP-&amp;gt;Open Event File.&lt;br /&gt;
# Trigger 12 should now appear in your data and represents those triggers that will be removed during artefact rejection. &lt;br /&gt;
# Using the paradigm window you should now be able to run your analysis.&lt;/div&gt;</summary>
		<author><name>Andre</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Create_Triggers_for_Artifact-Rejected_Epochs</id>
		<title>Create Triggers for Artifact-Rejected Epochs</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Create_Triggers_for_Artifact-Rejected_Epochs"/>
				<updated>2016-04-08T15:07:48Z</updated>
		
		<summary type="html">&lt;p&gt;Andre: minor text changes&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Here we demonstrate how to track what epochs were rejected by the artifact rejection. There might be experiments were one is interested in actually analyzing the rejected epochs. This information is available in the respective paradigm file but has to be extracted by the user. The idea is to create a new trigger for the rejected epochs that can later be read back in into BESA Research.&lt;br /&gt;
 &lt;br /&gt;
In this example we use the subject 2 of the Auditory Intensity experiment located in the BESA Research examples folder (../Examples/AuditoryIntensity/S2.cnt). &lt;br /&gt;
# Open the raw file S2.cnt and create a new paradigm for it. In the conditions tab create only conditions that directly correspond to each of the respective triggers (in my case I have 5 triggers, thus I have 5 conditions, one for each &amp;quot;current&amp;quot; trigger).&lt;br /&gt;
# Define the Epochs and Filters as you like.&lt;br /&gt;
# Run the artifact rejection.&lt;br /&gt;
# Close everything and find the respective paradigm file in the folder of raw file S2.cnt (typically baseame.pdg, in my case S2.pdg).&lt;br /&gt;
# Open the paradigm file in a text editor (e.g. Notepad, please do not use word as it might change the format of the text).&lt;br /&gt;
# Find the section starting with [ArtifactScan], ignore the following 4 lines (see the [[page name for the pdg format|PDG file format description]] for details) and copy everything thereafter to a new txt file. &lt;br /&gt;
# Open the newly created file in Excel by specifying that spaces and tabs are the delimiters for the columns. Save the file in excel format and leave it open.&lt;br /&gt;
# Open the attached excel file. In the first sheet you should be able to see a blue painted area. Please copy the contents of the table you created in there. Basically this will check if a particular epoch was rejected or not. In case it will substitute the value for the trigger on the left most side of the table with a new trigger (12 in this case, marked in orange in the table). I made the table to support up to 140 channels, in case you have more please just adjust the formulas in Exceeds max Amp etc…&lt;br /&gt;
Please also set the right artefact rejection values (cells are marked with green in the table) as in the paradigm window. &lt;br /&gt;
Please also make the tables length match the length of your data by copy pasting the 4 row x 10 lines block accordingly.&lt;br /&gt;
# Ok, now you should be almost done. The 5 leftmost columns on your table should have all the necessary information to create a new event file. Please copy the 4 columns starting from A13 to the end of the table. Insert them in a new sheet (NewEventFile, also in the table I sent you) from A2 onwards. Please be careful to paste value only! (Do paste special-&amp;gt;values only  in excel).&lt;br /&gt;
# Almost there! Please select all the data in the new sheet and press Sort &amp;amp; Filter, select Custom sort, and choose sort by Column A, Sort On Values and choose A-&amp;gt;Z as order. This should effectively remove the empty rows. &lt;br /&gt;
# Please select all the relevant rows for the 5 columns in the new sheet and just copy them to a new file in Notepad. Please save the file with the evt extension.&lt;br /&gt;
# Go back to BESA, remove all the existing triggers in ERP-&amp;gt;Edit Triggers-&amp;gt;Delete. Once this is done please load the file created in 10 by doing ERP-&amp;gt;Open Event File.&lt;br /&gt;
# Trigger 12 should now appear in your data and represents those triggers that will be removed during artefact rejection. &lt;br /&gt;
# Using the paradigm window you should now be able to run your analysis.&lt;/div&gt;</summary>
		<author><name>Andre</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Create_Triggers_for_Artifact-Rejected_Epochs</id>
		<title>Create Triggers for Artifact-Rejected Epochs</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Create_Triggers_for_Artifact-Rejected_Epochs"/>
				<updated>2016-04-08T15:05:09Z</updated>
		
		<summary type="html">&lt;p&gt;Andre: added some text, still quite a lot to do.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Here we demonstrate how to track what epochs were rejected by the artifact rejection. There might be experiments were one is interested in actually analyzing the rejected epochs. This information is available in the respective paradigm file but has to be extracted by the user. The idea is to create a new trigger for the rejected epochs that can later be read back in into BESA Research.&lt;br /&gt;
 &lt;br /&gt;
In this example we use the subject 2 of the Auditory Intensity experiment located in the BESA Research examples folder (../Examples/AuditoryIntensity/S2.cnt). &lt;br /&gt;
# Open the raw file S2.cnt and create a new paradigm for it. In the conditions tab create only conditions that directly correspond to each of the respective triggers (in my case I have 5 triggers, thus I have 5 conditions, one for each &amp;quot;current&amp;quot; trigger).&lt;br /&gt;
# Define the Epochs and Filters as you like.&lt;br /&gt;
# Run the artifact rejection.&lt;br /&gt;
# Close everything and find the respective paradigm file in the folder of raw file S2.cnt (typically baseame.pdg, in my case S2.pdg).&lt;br /&gt;
# Open the paradigm file in a text editor (e.g. Notepad, please do not use word as it might change the format of the text).&lt;br /&gt;
# Find the section starting with [ArtifactScan], ignore the following 4 lines (see the [[page name for the pdg format|PDG file format description]] for details) and copy everything thereafter to a new txt file. &lt;br /&gt;
# Open the newly created file in Excel by specifying that spaces are the delimiters for the columns. Save the file in excel format and leave it open.&lt;br /&gt;
# Open the attached excel file. In the first sheet you should be able to see a blue painted area. Please copy the contents of the table you created in there. Basically this will check if a particular epoch was rejected or not. In case it will substitute the value for the trigger on the left most side of the table with a new trigger (12 in this case, marked in orange in the table). I made the table to support up to 140 channels, in case you have more please just adjust the formulas in Exceeds max Amp etc…&lt;br /&gt;
Please also set the right artefact rejection values (cells are marked with green in the table) as in the paradigm window. &lt;br /&gt;
Please also make the tables length match the length of your data by copy pasting the 4 row x 10 lines block accordingly.&lt;br /&gt;
# Ok, now you should be almost done. The 5 leftmost columns on your table should have all the necessary information to create a new event file. Please copy the 4 columns starting from A13 to the end of the table. Insert them in a new sheet (NewEventFile, also in the table I sent you) from A2 onwards. Please be careful to paste value only! (Do paste special-&amp;gt;values only  in excel).&lt;br /&gt;
# Almost there! Please select all the data in the new sheet and press Sort &amp;amp; Filter, select Custom sort, and choose sort by Column A, Sort On Values and choose A-&amp;gt;Z as order. This should effectively remove the empty rows. &lt;br /&gt;
# Please select all the relevant rows for the 5 columns in the new sheet and just copy them to a new file in Notepad. Please save the file with the evt extension.&lt;br /&gt;
# Go back to BESA, remove all the existing triggers in ERP-&amp;gt;Edit Triggers-&amp;gt;Delete. Once this is done please load the file created in 10 by doing ERP-&amp;gt;Open Event File.&lt;br /&gt;
# Trigger 12 should now appear in your data and represents those triggers that will be removed during artefact rejection. &lt;br /&gt;
# Using the paradigm window you should now be able to run your analysis.&lt;/div&gt;</summary>
		<author><name>Andre</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Create_Triggers_for_Artifact-Rejected_Epochs</id>
		<title>Create Triggers for Artifact-Rejected Epochs</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Create_Triggers_for_Artifact-Rejected_Epochs"/>
				<updated>2016-04-08T12:26:40Z</updated>
		
		<summary type="html">&lt;p&gt;Andre: migrated available text to wiki&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=To Do!=&lt;/div&gt;</summary>
		<author><name>Andre</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Main_Page</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Main_Page"/>
				<updated>2016-04-08T11:31:21Z</updated>
		
		<summary type="html">&lt;p&gt;Andre: /* BESA recipes */ fixed new name of Control of BESA Research by external programs&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=&amp;lt;strong&amp;gt;Welcome to the BESA Wiki!&amp;lt;/strong&amp;gt;=&lt;br /&gt;
&lt;br /&gt;
We just started working on this wiki!&lt;br /&gt;
&lt;br /&gt;
This wiki is designed to help users with typical questions around using BESA to achieve their goals.&lt;br /&gt;
Topics are available for the following categories:&lt;br /&gt;
&lt;br /&gt;
== FAQ ==&lt;br /&gt;
&lt;br /&gt;
=== Licensing ===&lt;br /&gt;
[[Licensing]]&lt;br /&gt;
&lt;br /&gt;
=== Data Review and Analysis ===&lt;br /&gt;
&lt;br /&gt;
[[Export Single Trial Data]]&lt;br /&gt;
&lt;br /&gt;
[[How to Average EEG channels]]&lt;br /&gt;
&lt;br /&gt;
[[Averaging Across EEG Datasets from Different Recording Systems]]&lt;br /&gt;
&lt;br /&gt;
[[Time Frequency Resolution In BESA]]&lt;br /&gt;
&lt;br /&gt;
[[Change Waveform Colours]]&lt;br /&gt;
&lt;br /&gt;
[[Supported Data Formats]]&lt;br /&gt;
&lt;br /&gt;
=== Matlab interface ===&lt;br /&gt;
&lt;br /&gt;
[[How Do I Configure the Matlab Interface?]]&lt;br /&gt;
&lt;br /&gt;
[[Updating the Matlab Interface after Matlab Upgrade]]&lt;br /&gt;
&lt;br /&gt;
=== BESA Statistics ===&lt;br /&gt;
&lt;br /&gt;
[[Cluster Alpha vs. Neighbor Distance]]&lt;br /&gt;
&lt;br /&gt;
=== Trouble shooting in BESA MRI and BESA Statistics ===&lt;br /&gt;
&lt;br /&gt;
[[MF Error 211]]&lt;br /&gt;
&lt;br /&gt;
== BESA recipes ==&lt;br /&gt;
&lt;br /&gt;
[[Control of BESA Research by external programs]]&lt;br /&gt;
&lt;br /&gt;
[[Correcting Volume Conductor Segmentations]]&lt;br /&gt;
&lt;br /&gt;
[[Random Averaging]]&lt;br /&gt;
&lt;br /&gt;
[[Statistical Analysis for More than Two Levels]]&lt;br /&gt;
&lt;br /&gt;
== Coming soon ==&lt;br /&gt;
* a collection of useful batches&lt;br /&gt;
* and further content we will be publishing on this wiki&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Contributions to the Wiki from the community are very welcome! Please create an account with a valid email to edit the BESA Wiki's content.&lt;br /&gt;
&lt;br /&gt;
Consult the [//meta.wikimedia.org/wiki/Help:Contents User's Guide] for information on using the wiki software.&lt;/div&gt;</summary>
		<author><name>Andre</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Control_of_BESA_Research_by_external_programs</id>
		<title>Control of BESA Research by external programs</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Control_of_BESA_Research_by_external_programs"/>
				<updated>2016-04-08T11:30:30Z</updated>
		
		<summary type="html">&lt;p&gt;Andre: Andre moved page Control BESA Research by external programs to Control of BESA Research by external programs without leaving a redirect: bad english?&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Control of BESA Research by external programs (valid for BESA Research versions 5.2.2 and higher)=&lt;br /&gt;
&lt;br /&gt;
==Purpose and Procedure==&lt;br /&gt;
This document describes how to start BESA Research from an external program (a patient database management program or an EEG review program) with a list of one or more files to be opened in BESA Research. It is recommended to create an icon BESA or BESA Research in the external program and to start BESA Research using this icon.&lt;br /&gt;
* To start BESA Research from the external program to review EEG data, this program must first write the foc_link.sub file to disk. It must contain the data file(s) to be opened (see [[#Format of foc_link.sub|Format of foc_link.sub]]). Then BESA Research needs to be started as described below in [[#Start BESA Research to open EEG data|Start BESA Research to open EEG data]]. &lt;br /&gt;
* If BESA Research is already running, first the file foc_link.sub has to be updated or created. &lt;br /&gt;
* If the foc_link.sub file is written to the BESA Research installation folder, BESA Research can either be accessed by executing a WM_COMMAND (see [[#Open EEG data while BESA Research is running|Open EEG data while BESA Research is running]]) or using the procedure described in [[#Start BESA Research to open EEG data|Start BESA Research to open EEG data]]. &lt;br /&gt;
* If the foc_link.sub file is written to another folder, only the procedure described in [[#Start BESA Research to open EEG data|Start BESA Research to open EEG data]] can be used.&lt;br /&gt;
We recommend using the procedure described in [[#Start BESA Research to open EEG data|Start BESA Research to open EEG data]], since this will work in all cases, and the foc_link.sub file can be located in any arbitrary folder.&lt;br /&gt;
&lt;br /&gt;
==Start BESA Research to open EEG data==&lt;br /&gt;
Use the following command to start BESA Research with the command line parameter: &lt;br /&gt;
&amp;lt;foc_link.sub file path&amp;gt;\foc_link.sub&lt;br /&gt;
The foc_link.sub file contains a list of the datasets to be loaded at program start. The file format is described below in [[#Format of foc_link.sub|Format of foc_link.sub]].&lt;br /&gt;
For example, to load EEGs in BESA 5.2.2 or higher (e.g. BESA Research 5.3) at program start (assumed to be installed in C:\BESA52 and file foc_link.sub file located in the BESA Research installation folder), apply the following command:&lt;br /&gt;
&lt;br /&gt;
C:\BESA52\BESA.exe C:\BESA52\foc_link.sub&lt;br /&gt;
==Open EEG data while BESA Research is running==&lt;br /&gt;
If you want to load a different EEG data file while BESA Research is running, simply execute the same command as upon start of BESA Research after updating the file list in foc_link.sub, e.g.&lt;br /&gt;
C:\BESA52\BESA.exe C:\BESA52\foc_link.sub&lt;br /&gt;
BESA.exe interprets this call from a database or review program. It checks whether BesaMain.exe is already running. If yes, it keeps BesaMain.exe running, closes the old files, and opens the new file(s) listed in foc_link.sub. If not yet running, BESA.exe starts BesaMain.exe with the new file(s) listed in foc_link.sub. Thus, the procedure for changing an EEG file in BESA Research is the same as described in [[#Start BESA Research to open EEG data|Start BESA Research to open EEG data]] for starting BESA Research with the first file(s). &lt;br /&gt;
&lt;br /&gt;
( 	In older BESA versions (up to version 5.2) a different procedure was required that is still working but not required anymore: &lt;br /&gt;
	When BESA receives a WM_COMMAND message with Id 3000 (Id = (int)(LOWORD(wParam)), file foc_link.sub in the BESA installation folder was reread. While this feature is still working, it is not recommended anymore because the automatic handling by BESA.exe is much simpler and no WM_COMMAND message is needed. )&lt;br /&gt;
Notes: &lt;br /&gt;
* Files that are currently open but not specified in foc_link.sub are closed. Only the specified files are opened. &lt;br /&gt;
* When a file is closed in BESA Research, the corresponding entry in the foc_link.sub file is deleted.&lt;br /&gt;
==Format of foc_link.sub==&lt;br /&gt;
For each EEG to be loaded write the following lines to the foc_link.sub file&lt;br /&gt;
StartedBy: 		&amp;lt;Your program name&amp;gt;&lt;br /&gt;
EvtFilePath:		&amp;lt;path + filename of the evt-File to be loaded for the EEG&amp;gt;&lt;br /&gt;
EventCode: 		[&amp;lt;number&amp;gt;] &amp;lt;number&amp;gt; &amp;lt;number&amp;gt;&lt;br /&gt;
ElecFilePath: 		&amp;lt;path + filename of the elp-File to be loaded for the EEG&amp;gt;&lt;br /&gt;
ReviewDateTime: 	&amp;lt;YYYY-MM-DD/HH:MM:SS&amp;gt;&lt;br /&gt;
FilePath: 		&amp;lt;path + filename of EEG to be loaded&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The first line, StartedBy (followed by a colon and a blank), is an optional tag that can be set to specify the name of your application which calls BESA Research.&lt;br /&gt;
The second line, EvtFilePath (followed by a colon and a blank), is an optional tag that can be set to load events specified in an evt-file. If this tag is not defined, only the events found in the EEG data file are loaded.&lt;br /&gt;
The third line, EventCode (followed by a colon and a blank), is an optional tag that can be set to define the type and range of your events stored in the event file specified in EvtFilePath. &lt;br /&gt;
The first number defines the code (type) of your events (e.g. 1=Trigger). The second number defines the event ID range minimum and the third number stands for the maximum.&lt;br /&gt;
If this tag is defined, BESA Research will remove all events from the EEG which IDs are within the defined range. Then the new events are loaded instead. If this tag is not defined, the new events are loaded in addition to existing events. This tag will be ignored if no EvtFilePath is defined.&lt;br /&gt;
The fourth line, ElecFilePath (followed by a colon and a blank), is an optional tag that can be set to attach an electrode configuration specified in an elp-file. If this tag is not defined, the original/recorded electrode configuration found in the EEG-Data file is loaded.&lt;br /&gt;
The fifth line, ReviewDateTime (followed by a colon and a blank), is an optional tag that can be set to specify a time at which the review should be started. If this tag is not defined, the review starts at the beginning of the file.&lt;br /&gt;
The FilePath line must be the last line for each EEG entry and has to be defined. The tag is followed by path+filename (after the obligatory colon and blank). A maximum of 256 characters for path+filename is read. &lt;br /&gt;
&lt;br /&gt;
==Examples== &lt;br /&gt;
===Open one EEG data file at the beginning.===&lt;br /&gt;
&lt;br /&gt;
FilePath: D:\EEG\000822WC.eeg&lt;br /&gt;
&lt;br /&gt;
===Open one EEG data file at a defined position.===&lt;br /&gt;
&lt;br /&gt;
ReviewDateTime: 2008-07-02/12:18:12&lt;br /&gt;
FilePath: D:\EEG\000822WC.eeg&lt;br /&gt;
&lt;br /&gt;
===Open three EEG data files, position for second data file is specified.===&lt;br /&gt;
&lt;br /&gt;
FilePath: D:\EEG\000822WC.eeg&lt;br /&gt;
&lt;br /&gt;
ReviewDateTime: 2008-07-02/12:18:12&lt;br /&gt;
FilePath: D:\EEG\000822WD.eeg&lt;br /&gt;
&lt;br /&gt;
FilePath: D:\EEG\000822WE.eeg&lt;br /&gt;
&lt;br /&gt;
We suggest to separate single EEG entries by an empty line, although this is not required.&lt;br /&gt;
===Complete foc_link.sub entry with all possible tags===&lt;br /&gt;
&lt;br /&gt;
StartedBy: BESA Epilepsy&lt;br /&gt;
ElecFilePath: C:\ELP-FILES\000717WA-STD.elp&lt;br /&gt;
EvtFilePath: C:\EVT-FILES\000717WA-STD.evt&lt;br /&gt;
EventCode: 1 51 60&lt;br /&gt;
ReviewDateTime: 2008-07-02/14:20:12&lt;br /&gt;
FilePath: D:\EEG\000717WA.eeg&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:BESA Research]]&lt;/div&gt;</summary>
		<author><name>Andre</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Control_of_BESA_Research_by_external_programs</id>
		<title>Control of BESA Research by external programs</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Control_of_BESA_Research_by_external_programs"/>
				<updated>2016-04-08T11:28:04Z</updated>
		
		<summary type="html">&lt;p&gt;Andre: Control OF BESA ....&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Control of BESA Research by external programs (valid for BESA Research versions 5.2.2 and higher)=&lt;br /&gt;
&lt;br /&gt;
==Purpose and Procedure==&lt;br /&gt;
This document describes how to start BESA Research from an external program (a patient database management program or an EEG review program) with a list of one or more files to be opened in BESA Research. It is recommended to create an icon BESA or BESA Research in the external program and to start BESA Research using this icon.&lt;br /&gt;
* To start BESA Research from the external program to review EEG data, this program must first write the foc_link.sub file to disk. It must contain the data file(s) to be opened (see [[#Format of foc_link.sub|Format of foc_link.sub]]). Then BESA Research needs to be started as described below in [[#Start BESA Research to open EEG data|Start BESA Research to open EEG data]]. &lt;br /&gt;
* If BESA Research is already running, first the file foc_link.sub has to be updated or created. &lt;br /&gt;
* If the foc_link.sub file is written to the BESA Research installation folder, BESA Research can either be accessed by executing a WM_COMMAND (see [[#Open EEG data while BESA Research is running|Open EEG data while BESA Research is running]]) or using the procedure described in [[#Start BESA Research to open EEG data|Start BESA Research to open EEG data]]. &lt;br /&gt;
* If the foc_link.sub file is written to another folder, only the procedure described in [[#Start BESA Research to open EEG data|Start BESA Research to open EEG data]] can be used.&lt;br /&gt;
We recommend using the procedure described in [[#Start BESA Research to open EEG data|Start BESA Research to open EEG data]], since this will work in all cases, and the foc_link.sub file can be located in any arbitrary folder.&lt;br /&gt;
&lt;br /&gt;
==Start BESA Research to open EEG data==&lt;br /&gt;
Use the following command to start BESA Research with the command line parameter: &lt;br /&gt;
&amp;lt;foc_link.sub file path&amp;gt;\foc_link.sub&lt;br /&gt;
The foc_link.sub file contains a list of the datasets to be loaded at program start. The file format is described below in [[#Format of foc_link.sub|Format of foc_link.sub]].&lt;br /&gt;
For example, to load EEGs in BESA 5.2.2 or higher (e.g. BESA Research 5.3) at program start (assumed to be installed in C:\BESA52 and file foc_link.sub file located in the BESA Research installation folder), apply the following command:&lt;br /&gt;
&lt;br /&gt;
C:\BESA52\BESA.exe C:\BESA52\foc_link.sub&lt;br /&gt;
==Open EEG data while BESA Research is running==&lt;br /&gt;
If you want to load a different EEG data file while BESA Research is running, simply execute the same command as upon start of BESA Research after updating the file list in foc_link.sub, e.g.&lt;br /&gt;
C:\BESA52\BESA.exe C:\BESA52\foc_link.sub&lt;br /&gt;
BESA.exe interprets this call from a database or review program. It checks whether BesaMain.exe is already running. If yes, it keeps BesaMain.exe running, closes the old files, and opens the new file(s) listed in foc_link.sub. If not yet running, BESA.exe starts BesaMain.exe with the new file(s) listed in foc_link.sub. Thus, the procedure for changing an EEG file in BESA Research is the same as described in [[#Start BESA Research to open EEG data|Start BESA Research to open EEG data]] for starting BESA Research with the first file(s). &lt;br /&gt;
&lt;br /&gt;
( 	In older BESA versions (up to version 5.2) a different procedure was required that is still working but not required anymore: &lt;br /&gt;
	When BESA receives a WM_COMMAND message with Id 3000 (Id = (int)(LOWORD(wParam)), file foc_link.sub in the BESA installation folder was reread. While this feature is still working, it is not recommended anymore because the automatic handling by BESA.exe is much simpler and no WM_COMMAND message is needed. )&lt;br /&gt;
Notes: &lt;br /&gt;
* Files that are currently open but not specified in foc_link.sub are closed. Only the specified files are opened. &lt;br /&gt;
* When a file is closed in BESA Research, the corresponding entry in the foc_link.sub file is deleted.&lt;br /&gt;
==Format of foc_link.sub==&lt;br /&gt;
For each EEG to be loaded write the following lines to the foc_link.sub file&lt;br /&gt;
StartedBy: 		&amp;lt;Your program name&amp;gt;&lt;br /&gt;
EvtFilePath:		&amp;lt;path + filename of the evt-File to be loaded for the EEG&amp;gt;&lt;br /&gt;
EventCode: 		[&amp;lt;number&amp;gt;] &amp;lt;number&amp;gt; &amp;lt;number&amp;gt;&lt;br /&gt;
ElecFilePath: 		&amp;lt;path + filename of the elp-File to be loaded for the EEG&amp;gt;&lt;br /&gt;
ReviewDateTime: 	&amp;lt;YYYY-MM-DD/HH:MM:SS&amp;gt;&lt;br /&gt;
FilePath: 		&amp;lt;path + filename of EEG to be loaded&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The first line, StartedBy (followed by a colon and a blank), is an optional tag that can be set to specify the name of your application which calls BESA Research.&lt;br /&gt;
The second line, EvtFilePath (followed by a colon and a blank), is an optional tag that can be set to load events specified in an evt-file. If this tag is not defined, only the events found in the EEG data file are loaded.&lt;br /&gt;
The third line, EventCode (followed by a colon and a blank), is an optional tag that can be set to define the type and range of your events stored in the event file specified in EvtFilePath. &lt;br /&gt;
The first number defines the code (type) of your events (e.g. 1=Trigger). The second number defines the event ID range minimum and the third number stands for the maximum.&lt;br /&gt;
If this tag is defined, BESA Research will remove all events from the EEG which IDs are within the defined range. Then the new events are loaded instead. If this tag is not defined, the new events are loaded in addition to existing events. This tag will be ignored if no EvtFilePath is defined.&lt;br /&gt;
The fourth line, ElecFilePath (followed by a colon and a blank), is an optional tag that can be set to attach an electrode configuration specified in an elp-file. If this tag is not defined, the original/recorded electrode configuration found in the EEG-Data file is loaded.&lt;br /&gt;
The fifth line, ReviewDateTime (followed by a colon and a blank), is an optional tag that can be set to specify a time at which the review should be started. If this tag is not defined, the review starts at the beginning of the file.&lt;br /&gt;
The FilePath line must be the last line for each EEG entry and has to be defined. The tag is followed by path+filename (after the obligatory colon and blank). A maximum of 256 characters for path+filename is read. &lt;br /&gt;
&lt;br /&gt;
==Examples== &lt;br /&gt;
===Open one EEG data file at the beginning.===&lt;br /&gt;
&lt;br /&gt;
FilePath: D:\EEG\000822WC.eeg&lt;br /&gt;
&lt;br /&gt;
===Open one EEG data file at a defined position.===&lt;br /&gt;
&lt;br /&gt;
ReviewDateTime: 2008-07-02/12:18:12&lt;br /&gt;
FilePath: D:\EEG\000822WC.eeg&lt;br /&gt;
&lt;br /&gt;
===Open three EEG data files, position for second data file is specified.===&lt;br /&gt;
&lt;br /&gt;
FilePath: D:\EEG\000822WC.eeg&lt;br /&gt;
&lt;br /&gt;
ReviewDateTime: 2008-07-02/12:18:12&lt;br /&gt;
FilePath: D:\EEG\000822WD.eeg&lt;br /&gt;
&lt;br /&gt;
FilePath: D:\EEG\000822WE.eeg&lt;br /&gt;
&lt;br /&gt;
We suggest to separate single EEG entries by an empty line, although this is not required.&lt;br /&gt;
===Complete foc_link.sub entry with all possible tags===&lt;br /&gt;
&lt;br /&gt;
StartedBy: BESA Epilepsy&lt;br /&gt;
ElecFilePath: C:\ELP-FILES\000717WA-STD.elp&lt;br /&gt;
EvtFilePath: C:\EVT-FILES\000717WA-STD.evt&lt;br /&gt;
EventCode: 1 51 60&lt;br /&gt;
ReviewDateTime: 2008-07-02/14:20:12&lt;br /&gt;
FilePath: D:\EEG\000717WA.eeg&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:BESA Research]]&lt;/div&gt;</summary>
		<author><name>Andre</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Main_Page</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Main_Page"/>
				<updated>2016-04-08T10:18:32Z</updated>
		
		<summary type="html">&lt;p&gt;Andre: /* BESA recipes */ added Control BESA Research by external programs&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=&amp;lt;strong&amp;gt;Welcome to the BESA Wiki!&amp;lt;/strong&amp;gt;=&lt;br /&gt;
&lt;br /&gt;
We just started working on this wiki!&lt;br /&gt;
&lt;br /&gt;
This wiki is designed to help users with typical questions around using BESA to achieve their goals.&lt;br /&gt;
Topics are available for the following categories:&lt;br /&gt;
&lt;br /&gt;
== FAQ ==&lt;br /&gt;
&lt;br /&gt;
=== Licensing ===&lt;br /&gt;
[[Licensing]]&lt;br /&gt;
&lt;br /&gt;
=== Data Review and Analysis ===&lt;br /&gt;
&lt;br /&gt;
[[Export Single Trial Data]]&lt;br /&gt;
&lt;br /&gt;
[[How to Average EEG channels]]&lt;br /&gt;
&lt;br /&gt;
[[Averaging Across EEG Datasets from Different Recording Systems]]&lt;br /&gt;
&lt;br /&gt;
[[Time Frequency Resolution In BESA]]&lt;br /&gt;
&lt;br /&gt;
[[Change Waveform Colours]]&lt;br /&gt;
&lt;br /&gt;
[[Supported Data Formats]]&lt;br /&gt;
&lt;br /&gt;
=== Matlab interface ===&lt;br /&gt;
&lt;br /&gt;
[[How Do I Configure the Matlab Interface?]]&lt;br /&gt;
&lt;br /&gt;
[[Updating the Matlab Interface after Matlab Upgrade]]&lt;br /&gt;
&lt;br /&gt;
=== BESA Statistics ===&lt;br /&gt;
&lt;br /&gt;
[[Cluster Alpha vs. Neighbor Distance]]&lt;br /&gt;
&lt;br /&gt;
=== Trouble shooting in BESA MRI and BESA Statistics ===&lt;br /&gt;
&lt;br /&gt;
[[MF Error 211]]&lt;br /&gt;
&lt;br /&gt;
== BESA recipes ==&lt;br /&gt;
&lt;br /&gt;
[[Control BESA Research by external programs]]&lt;br /&gt;
&lt;br /&gt;
[[Correcting Volume Conductor Segmentations]]&lt;br /&gt;
&lt;br /&gt;
[[Random Averaging]]&lt;br /&gt;
&lt;br /&gt;
[[Statistical Analysis for More than Two Levels]]&lt;br /&gt;
&lt;br /&gt;
== Coming soon ==&lt;br /&gt;
* a collection of useful batches&lt;br /&gt;
* and further content we will be publishing on this wiki&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Contributions to the Wiki from the community are very welcome! Please create an account with a valid email to edit the BESA Wiki's content.&lt;br /&gt;
&lt;br /&gt;
Consult the [//meta.wikimedia.org/wiki/Help:Contents User's Guide] for information on using the wiki software.&lt;/div&gt;</summary>
		<author><name>Andre</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Control_of_BESA_Research_by_external_programs</id>
		<title>Control of BESA Research by external programs</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Control_of_BESA_Research_by_external_programs"/>
				<updated>2016-04-08T10:03:34Z</updated>
		
		<summary type="html">&lt;p&gt;Andre: /* Purpose and Procedure */ minor change&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Control BESA Research by external programs (valid for BESA Research versions 5.2.2 and higher)=&lt;br /&gt;
&lt;br /&gt;
==Purpose and Procedure==&lt;br /&gt;
This document describes how to start BESA Research from an external program (a patient database management program or an EEG review program) with a list of one or more files to be opened in BESA Research. It is recommended to create an icon BESA or BESA Research in the external program and to start BESA Research using this icon.&lt;br /&gt;
* To start BESA Research from the external program to review EEG data, this program must first write the foc_link.sub file to disk. It must contain the data file(s) to be opened (see [[#Format of foc_link.sub|Format of foc_link.sub]]). Then BESA Research needs to be started as described below in [[#Start BESA Research to open EEG data|Start BESA Research to open EEG data]]. &lt;br /&gt;
* If BESA Research is already running, first the file foc_link.sub has to be updated or created. &lt;br /&gt;
* If the foc_link.sub file is written to the BESA Research installation folder, BESA Research can either be accessed by executing a WM_COMMAND (see [[#Open EEG data while BESA Research is running|Open EEG data while BESA Research is running]]) or using the procedure described in [[#Start BESA Research to open EEG data|Start BESA Research to open EEG data]]. &lt;br /&gt;
* If the foc_link.sub file is written to another folder, only the procedure described in [[#Start BESA Research to open EEG data|Start BESA Research to open EEG data]] can be used.&lt;br /&gt;
We recommend using the procedure described in [[#Start BESA Research to open EEG data|Start BESA Research to open EEG data]], since this will work in all cases, and the foc_link.sub file can be located in any arbitrary folder.&lt;br /&gt;
&lt;br /&gt;
==Start BESA Research to open EEG data==&lt;br /&gt;
Use the following command to start BESA Research with the command line parameter: &lt;br /&gt;
&amp;lt;foc_link.sub file path&amp;gt;\foc_link.sub&lt;br /&gt;
The foc_link.sub file contains a list of the datasets to be loaded at program start. The file format is described below in [[#Format of foc_link.sub|Format of foc_link.sub]].&lt;br /&gt;
For example, to load EEGs in BESA 5.2.2 or higher (e.g. BESA Research 5.3) at program start (assumed to be installed in C:\BESA52 and file foc_link.sub file located in the BESA Research installation folder), apply the following command:&lt;br /&gt;
&lt;br /&gt;
C:\BESA52\BESA.exe C:\BESA52\foc_link.sub&lt;br /&gt;
==Open EEG data while BESA Research is running==&lt;br /&gt;
If you want to load a different EEG data file while BESA Research is running, simply execute the same command as upon start of BESA Research after updating the file list in foc_link.sub, e.g.&lt;br /&gt;
C:\BESA52\BESA.exe C:\BESA52\foc_link.sub&lt;br /&gt;
BESA.exe interprets this call from a database or review program. It checks whether BesaMain.exe is already running. If yes, it keeps BesaMain.exe running, closes the old files, and opens the new file(s) listed in foc_link.sub. If not yet running, BESA.exe starts BesaMain.exe with the new file(s) listed in foc_link.sub. Thus, the procedure for changing an EEG file in BESA Research is the same as described in [[#Start BESA Research to open EEG data|Start BESA Research to open EEG data]] for starting BESA Research with the first file(s). &lt;br /&gt;
&lt;br /&gt;
( 	In older BESA versions (up to version 5.2) a different procedure was required that is still working but not required anymore: &lt;br /&gt;
	When BESA receives a WM_COMMAND message with Id 3000 (Id = (int)(LOWORD(wParam)), file foc_link.sub in the BESA installation folder was reread. While this feature is still working, it is not recommended anymore because the automatic handling by BESA.exe is much simpler and no WM_COMMAND message is needed. )&lt;br /&gt;
Notes: &lt;br /&gt;
* Files that are currently open but not specified in foc_link.sub are closed. Only the specified files are opened. &lt;br /&gt;
* When a file is closed in BESA Research, the corresponding entry in the foc_link.sub file is deleted.&lt;br /&gt;
==Format of foc_link.sub==&lt;br /&gt;
For each EEG to be loaded write the following lines to the foc_link.sub file&lt;br /&gt;
StartedBy: 		&amp;lt;Your program name&amp;gt;&lt;br /&gt;
EvtFilePath:		&amp;lt;path + filename of the evt-File to be loaded for the EEG&amp;gt;&lt;br /&gt;
EventCode: 		[&amp;lt;number&amp;gt;] &amp;lt;number&amp;gt; &amp;lt;number&amp;gt;&lt;br /&gt;
ElecFilePath: 		&amp;lt;path + filename of the elp-File to be loaded for the EEG&amp;gt;&lt;br /&gt;
ReviewDateTime: 	&amp;lt;YYYY-MM-DD/HH:MM:SS&amp;gt;&lt;br /&gt;
FilePath: 		&amp;lt;path + filename of EEG to be loaded&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The first line, StartedBy (followed by a colon and a blank), is an optional tag that can be set to specify the name of your application which calls BESA Research.&lt;br /&gt;
The second line, EvtFilePath (followed by a colon and a blank), is an optional tag that can be set to load events specified in an evt-file. If this tag is not defined, only the events found in the EEG data file are loaded.&lt;br /&gt;
The third line, EventCode (followed by a colon and a blank), is an optional tag that can be set to define the type and range of your events stored in the event file specified in EvtFilePath. &lt;br /&gt;
The first number defines the code (type) of your events (e.g. 1=Trigger). The second number defines the event ID range minimum and the third number stands for the maximum.&lt;br /&gt;
If this tag is defined, BESA Research will remove all events from the EEG which IDs are within the defined range. Then the new events are loaded instead. If this tag is not defined, the new events are loaded in addition to existing events. This tag will be ignored if no EvtFilePath is defined.&lt;br /&gt;
The fourth line, ElecFilePath (followed by a colon and a blank), is an optional tag that can be set to attach an electrode configuration specified in an elp-file. If this tag is not defined, the original/recorded electrode configuration found in the EEG-Data file is loaded.&lt;br /&gt;
The fifth line, ReviewDateTime (followed by a colon and a blank), is an optional tag that can be set to specify a time at which the review should be started. If this tag is not defined, the review starts at the beginning of the file.&lt;br /&gt;
The FilePath line must be the last line for each EEG entry and has to be defined. The tag is followed by path+filename (after the obligatory colon and blank). A maximum of 256 characters for path+filename is read. &lt;br /&gt;
&lt;br /&gt;
==Examples== &lt;br /&gt;
===Open one EEG data file at the beginning.===&lt;br /&gt;
&lt;br /&gt;
FilePath: D:\EEG\000822WC.eeg&lt;br /&gt;
&lt;br /&gt;
===Open one EEG data file at a defined position.===&lt;br /&gt;
&lt;br /&gt;
ReviewDateTime: 2008-07-02/12:18:12&lt;br /&gt;
FilePath: D:\EEG\000822WC.eeg&lt;br /&gt;
&lt;br /&gt;
===Open three EEG data files, position for second data file is specified.===&lt;br /&gt;
&lt;br /&gt;
FilePath: D:\EEG\000822WC.eeg&lt;br /&gt;
&lt;br /&gt;
ReviewDateTime: 2008-07-02/12:18:12&lt;br /&gt;
FilePath: D:\EEG\000822WD.eeg&lt;br /&gt;
&lt;br /&gt;
FilePath: D:\EEG\000822WE.eeg&lt;br /&gt;
&lt;br /&gt;
We suggest to separate single EEG entries by an empty line, although this is not required.&lt;br /&gt;
===Complete foc_link.sub entry with all possible tags===&lt;br /&gt;
&lt;br /&gt;
StartedBy: BESA Epilepsy&lt;br /&gt;
ElecFilePath: C:\ELP-FILES\000717WA-STD.elp&lt;br /&gt;
EvtFilePath: C:\EVT-FILES\000717WA-STD.evt&lt;br /&gt;
EventCode: 1 51 60&lt;br /&gt;
ReviewDateTime: 2008-07-02/14:20:12&lt;br /&gt;
FilePath: D:\EEG\000717WA.eeg&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:BESA Research]]&lt;/div&gt;</summary>
		<author><name>Andre</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Control_of_BESA_Research_by_external_programs</id>
		<title>Control of BESA Research by external programs</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Control_of_BESA_Research_by_external_programs"/>
				<updated>2016-04-08T09:59:20Z</updated>
		
		<summary type="html">&lt;p&gt;Andre: fixed some section links&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Control BESA Research by external programs (valid for BESA Research versions 5.2.2 and higher)=&lt;br /&gt;
&lt;br /&gt;
==Purpose and Procedure==&lt;br /&gt;
This document describes how to start BESA Research from an external program (a patient database management program or an EEG review program) with a list of one or more files to be opened in BESA Research. It is recommended to create an icon BESA or BESA Research in the external program and to start BESA Research using this icon.&lt;br /&gt;
* To start BESA Research from the external program to review EEG data, this program must first write the foc_link.sub file to disk. It must contain the data file(s) to be opened (see [[#Format of foc_link.sub|Format of foc_link.sub]]). Then BESA Research needs to be started as described below in [[#Start BESA Research to open EEG data|Start BESA Research to open EEG data]]. &lt;br /&gt;
* If BESA Research is already running, first the file foc_link.sub has to be updated or created. &lt;br /&gt;
* If the foc_link.sub file is written to the BESA Research installation folder, BESA Research can either be accessed by executing a WM_COMMAND (see [[#Open EEG data while BESA Research is running|Open EEG data while BESA Research is running]]) or using the procedure described in [[#Start BESA Research to open EEG data|Start BESA Research to open EEG data]]. &lt;br /&gt;
* If the foc_link.sub file is written to another folder, only the procedure described in [[#Start BESA Research to open EEG data|Start BESA Research to open EEG data]] can be used.&lt;br /&gt;
We recommend using the procedure described in [[#Start BESA Research to open EEG data|Start BESA Research to open EEG data]] in all cases, since this will work in all cases, and the foc_link.sub file can be located in any arbitrary folder.&lt;br /&gt;
&lt;br /&gt;
==Start BESA Research to open EEG data==&lt;br /&gt;
Use the following command to start BESA Research with the command line parameter: &lt;br /&gt;
&amp;lt;foc_link.sub file path&amp;gt;\foc_link.sub&lt;br /&gt;
The foc_link.sub file contains a list of the datasets to be loaded at program start. The file format is described below in [[#Format of foc_link.sub|Format of foc_link.sub]].&lt;br /&gt;
For example, to load EEGs in BESA 5.2.2 or higher (e.g. BESA Research 5.3) at program start (assumed to be installed in C:\BESA52 and file foc_link.sub file located in the BESA Research installation folder), apply the following command:&lt;br /&gt;
&lt;br /&gt;
C:\BESA52\BESA.exe C:\BESA52\foc_link.sub&lt;br /&gt;
==Open EEG data while BESA Research is running==&lt;br /&gt;
If you want to load a different EEG data file while BESA Research is running, simply execute the same command as upon start of BESA Research after updating the file list in foc_link.sub, e.g.&lt;br /&gt;
C:\BESA52\BESA.exe C:\BESA52\foc_link.sub&lt;br /&gt;
BESA.exe interprets this call from a database or review program. It checks whether BesaMain.exe is already running. If yes, it keeps BesaMain.exe running, closes the old files, and opens the new file(s) listed in foc_link.sub. If not yet running, BESA.exe starts BesaMain.exe with the new file(s) listed in foc_link.sub. Thus, the procedure for changing an EEG file in BESA Research is the same as described in [[#Start BESA Research to open EEG data|Start BESA Research to open EEG data]] for starting BESA Research with the first file(s). &lt;br /&gt;
&lt;br /&gt;
( 	In older BESA versions (up to version 5.2) a different procedure was required that is still working but not required anymore: &lt;br /&gt;
	When BESA receives a WM_COMMAND message with Id 3000 (Id = (int)(LOWORD(wParam)), file foc_link.sub in the BESA installation folder was reread. While this feature is still working, it is not recommended anymore because the automatic handling by BESA.exe is much simpler and no WM_COMMAND message is needed. )&lt;br /&gt;
Notes: &lt;br /&gt;
* Files that are currently open but not specified in foc_link.sub are closed. Only the specified files are opened. &lt;br /&gt;
* When a file is closed in BESA Research, the corresponding entry in the foc_link.sub file is deleted.&lt;br /&gt;
==Format of foc_link.sub==&lt;br /&gt;
For each EEG to be loaded write the following lines to the foc_link.sub file&lt;br /&gt;
StartedBy: 		&amp;lt;Your program name&amp;gt;&lt;br /&gt;
EvtFilePath:		&amp;lt;path + filename of the evt-File to be loaded for the EEG&amp;gt;&lt;br /&gt;
EventCode: 		[&amp;lt;number&amp;gt;] &amp;lt;number&amp;gt; &amp;lt;number&amp;gt;&lt;br /&gt;
ElecFilePath: 		&amp;lt;path + filename of the elp-File to be loaded for the EEG&amp;gt;&lt;br /&gt;
ReviewDateTime: 	&amp;lt;YYYY-MM-DD/HH:MM:SS&amp;gt;&lt;br /&gt;
FilePath: 		&amp;lt;path + filename of EEG to be loaded&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The first line, StartedBy (followed by a colon and a blank), is an optional tag that can be set to specify the name of your application which calls BESA Research.&lt;br /&gt;
The second line, EvtFilePath (followed by a colon and a blank), is an optional tag that can be set to load events specified in an evt-file. If this tag is not defined, only the events found in the EEG data file are loaded.&lt;br /&gt;
The third line, EventCode (followed by a colon and a blank), is an optional tag that can be set to define the type and range of your events stored in the event file specified in EvtFilePath. &lt;br /&gt;
The first number defines the code (type) of your events (e.g. 1=Trigger). The second number defines the event ID range minimum and the third number stands for the maximum.&lt;br /&gt;
If this tag is defined, BESA Research will remove all events from the EEG which IDs are within the defined range. Then the new events are loaded instead. If this tag is not defined, the new events are loaded in addition to existing events. This tag will be ignored if no EvtFilePath is defined.&lt;br /&gt;
The fourth line, ElecFilePath (followed by a colon and a blank), is an optional tag that can be set to attach an electrode configuration specified in an elp-file. If this tag is not defined, the original/recorded electrode configuration found in the EEG-Data file is loaded.&lt;br /&gt;
The fifth line, ReviewDateTime (followed by a colon and a blank), is an optional tag that can be set to specify a time at which the review should be started. If this tag is not defined, the review starts at the beginning of the file.&lt;br /&gt;
The FilePath line must be the last line for each EEG entry and has to be defined. The tag is followed by path+filename (after the obligatory colon and blank). A maximum of 256 characters for path+filename is read. &lt;br /&gt;
&lt;br /&gt;
==Examples== &lt;br /&gt;
===Open one EEG data file at the beginning.===&lt;br /&gt;
&lt;br /&gt;
FilePath: D:\EEG\000822WC.eeg&lt;br /&gt;
&lt;br /&gt;
===Open one EEG data file at a defined position.===&lt;br /&gt;
&lt;br /&gt;
ReviewDateTime: 2008-07-02/12:18:12&lt;br /&gt;
FilePath: D:\EEG\000822WC.eeg&lt;br /&gt;
&lt;br /&gt;
===Open three EEG data files, position for second data file is specified.===&lt;br /&gt;
&lt;br /&gt;
FilePath: D:\EEG\000822WC.eeg&lt;br /&gt;
&lt;br /&gt;
ReviewDateTime: 2008-07-02/12:18:12&lt;br /&gt;
FilePath: D:\EEG\000822WD.eeg&lt;br /&gt;
&lt;br /&gt;
FilePath: D:\EEG\000822WE.eeg&lt;br /&gt;
&lt;br /&gt;
We suggest to separate single EEG entries by an empty line, although this is not required.&lt;br /&gt;
===Complete foc_link.sub entry with all possible tags===&lt;br /&gt;
&lt;br /&gt;
StartedBy: BESA Epilepsy&lt;br /&gt;
ElecFilePath: C:\ELP-FILES\000717WA-STD.elp&lt;br /&gt;
EvtFilePath: C:\EVT-FILES\000717WA-STD.evt&lt;br /&gt;
EventCode: 1 51 60&lt;br /&gt;
ReviewDateTime: 2008-07-02/14:20:12&lt;br /&gt;
FilePath: D:\EEG\000717WA.eeg&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:BESA Research]]&lt;/div&gt;</summary>
		<author><name>Andre</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Control_of_BESA_Research_by_external_programs</id>
		<title>Control of BESA Research by external programs</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Control_of_BESA_Research_by_external_programs"/>
				<updated>2016-04-08T09:40:31Z</updated>
		
		<summary type="html">&lt;p&gt;Andre: migrated existing description to wiki&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Control BESA Research by external programs (valid for BESA Research versions 5.2.2 and higher)=&lt;br /&gt;
&lt;br /&gt;
==Purpose and Procedure==&lt;br /&gt;
This document describes how to start BESA Research from an external program (a patient database management program or an EEG review program) with a list of one or more files to be opened in BESA Research. It is recommended to create an icon BESA or BESA Research in the external program and to start BESA Research using this icon.&lt;br /&gt;
* To start BESA Research from the external program to review EEG data, this program must first write the foc_link.sub file to disk. It must contain the data file(s) to be opened (see Chapter 4). Then BESA Research needs to be started as described below in Chapter 2. &lt;br /&gt;
* If BESA Research is already running, first the file foc_link.sub has to be updated or created. &lt;br /&gt;
* If the foc_link.sub file is written to the BESA Research installation folder, BESA Research can either be accessed by executing a WM_COMMAND (see Chapter 3) or using the procedure described in Chapter 2. &lt;br /&gt;
* If the foc_link.sub file is written to another folder, only the procedure described in Chapter 2 can be used.&lt;br /&gt;
We recommend using the procedure described in Chapter 2 in all cases, since this will work in all cases, and the foc_link.sub file can be located in any arbitrary folder.&lt;br /&gt;
&lt;br /&gt;
==Start BESA Research to open EEG data==&lt;br /&gt;
Use the following command to start BESA Research with the command line parameter: &lt;br /&gt;
&amp;lt;foc_link.sub file path&amp;gt;\foc_link.sub&lt;br /&gt;
The foc_link.sub file contains a list of the datasets to be loaded at program start. The file format is described below in Chapter 4.&lt;br /&gt;
For example, to load EEGs in BESA 5.2.2 or higher (e.g. BESA Research 5.3) at program start (assumed to be installed in C:\BESA52 and file foc_link.sub file located in the BESA Research installation folder), apply the following command:&lt;br /&gt;
&lt;br /&gt;
C:\BESA52\BESA.exe C:\BESA52\foc_link.sub&lt;br /&gt;
==Open EEG data while BESA Research is running==&lt;br /&gt;
If you want to load a different EEG data file while BESA Research is running, simply execute the same command as upon start of BESA Research after updating the file list in foc_link.sub, e.g.&lt;br /&gt;
C:\BESA52\BESA.exe C:\BESA52\foc_link.sub&lt;br /&gt;
BESA.exe interprets this call from a database or review program. It checks whether BesaMain.exe is already running. If yes, it keeps BesaMain.exe running, closes the old files, and opens the new file(s) listed in foc_link.sub. If not yet running, BESA.exe starts BesaMain.exe with the new file(s) listed in foc_link.sub. Thus, the procedure for changing an EEG file in BESA Research is the same as described in Chapter 2 for starting BESA Research with the first file(s). &lt;br /&gt;
&lt;br /&gt;
( 	In older BESA versions (up to version 5.2) a different procedure was required that is still working but not required anymore: &lt;br /&gt;
	When BESA receives a WM_COMMAND message with Id 3000 (Id = (int)(LOWORD(wParam)), file foc_link.sub in the BESA installation folder was reread. While this feature is still working, it is not recommended anymore because the automatic handling by BESA.exe is much simpler and no WM_COMMAND message is needed. )&lt;br /&gt;
Notes: &lt;br /&gt;
* Files that are currently open but not specified in foc_link.sub are closed. Only the specified files are opened. &lt;br /&gt;
* When a file is closed in BESA Research, the corresponding entry in the foc_link.sub file is deleted.&lt;br /&gt;
* Format of foc_link.sub&lt;br /&gt;
For each EEG to be loaded write the following lines to the foc_link.sub file&lt;br /&gt;
StartedBy: 		&amp;lt;Your program name&amp;gt;&lt;br /&gt;
EvtFilePath:		&amp;lt;path + filename of the evt-File to be loaded for the EEG&amp;gt;&lt;br /&gt;
EventCode: 		[&amp;lt;number&amp;gt;] &amp;lt;number&amp;gt; &amp;lt;number&amp;gt;&lt;br /&gt;
ElecFilePath: 		&amp;lt;path + filename of the elp-File to be loaded for the EEG&amp;gt;&lt;br /&gt;
ReviewDateTime: 	&amp;lt;YYYY-MM-DD/HH:MM:SS&amp;gt;&lt;br /&gt;
FilePath: 		&amp;lt;path + filename of EEG to be loaded&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The first line, StartedBy (followed by a colon and a blank), is an optional tag that can be set to specify the name of your application which calls BESA Research.&lt;br /&gt;
The second line, EvtFilePath (followed by a colon and a blank), is an optional tag that can be set to load events specified in an evt-file. If this tag is not defined, only the events found in the EEG data file are loaded.&lt;br /&gt;
The third line, EventCode (followed by a colon and a blank), is an optional tag that can be set to define the type and range of your events stored in the event file specified in EvtFilePath. &lt;br /&gt;
The first number defines the code (type) of your events (e.g. 1=Trigger). The second number defines the event ID range minimum and the third number stands for the maximum.&lt;br /&gt;
If this tag is defined, BESA Research will remove all events from the EEG which IDs are within the defined range. Then the new events are loaded instead. If this tag is not defined, the new events are loaded in addition to existing events. This tag will be ignored if no EvtFilePath is defined.&lt;br /&gt;
The fourth line, ElecFilePath (followed by a colon and a blank), is an optional tag that can be set to attach an electrode configuration specified in an elp-file. If this tag is not defined, the original/recorded electrode configuration found in the EEG-Data file is loaded.&lt;br /&gt;
The fifth line, ReviewDateTime (followed by a colon and a blank), is an optional tag that can be set to specify a time at which the review should be started. If this tag is not defined, the review starts at the beginning of the file.&lt;br /&gt;
The FilePath line must be the last line for each EEG entry and has to be defined. The tag is followed by path+filename (after the obligatory colon and blank). A maximum of 256 characters for path+filename is read. &lt;br /&gt;
&lt;br /&gt;
==Examples== &lt;br /&gt;
===Open one EEG data file at the beginning.===&lt;br /&gt;
&lt;br /&gt;
FilePath: D:\EEG\000822WC.eeg&lt;br /&gt;
&lt;br /&gt;
===Open one EEG data file at a defined position.===&lt;br /&gt;
&lt;br /&gt;
ReviewDateTime: 2008-07-02/12:18:12&lt;br /&gt;
FilePath: D:\EEG\000822WC.eeg&lt;br /&gt;
&lt;br /&gt;
===Open three EEG data files, position for second data file is specified.===&lt;br /&gt;
&lt;br /&gt;
FilePath: D:\EEG\000822WC.eeg&lt;br /&gt;
&lt;br /&gt;
ReviewDateTime: 2008-07-02/12:18:12&lt;br /&gt;
FilePath: D:\EEG\000822WD.eeg&lt;br /&gt;
&lt;br /&gt;
FilePath: D:\EEG\000822WE.eeg&lt;br /&gt;
&lt;br /&gt;
We suggest to separate single EEG entries by an empty line, although this is not required.&lt;br /&gt;
===Complete foc_link.sub entry with all possible tags===&lt;br /&gt;
&lt;br /&gt;
StartedBy: BESA Epilepsy&lt;br /&gt;
ElecFilePath: C:\ELP-FILES\000717WA-STD.elp&lt;br /&gt;
EvtFilePath: C:\EVT-FILES\000717WA-STD.evt&lt;br /&gt;
EventCode: 1 51 60&lt;br /&gt;
ReviewDateTime: 2008-07-02/14:20:12&lt;br /&gt;
FilePath: D:\EEG\000717WA.eeg&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:BESA Research]]&lt;/div&gt;</summary>
		<author><name>Andre</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Random_Averaging</id>
		<title>Random Averaging</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Random_Averaging"/>
				<updated>2016-02-11T15:53:26Z</updated>
		
		<summary type="html">&lt;p&gt;Andre: Removed Signature on top of the page.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Abstract ==&lt;br /&gt;
The idea of this tutorial is to provide a procedure for random averaging of row data containing triggers. The advantage of random averaging is that the result is not only one average over the trials but many different averages of the same data with different choice of trials and these averages can be statistically analyzed in order to get a statistically verified differences between the signal before and the signal after the trigger point. This can be applied e.g. in the source space and it can be used to determine brain regions with a statistically significant activity against baseline. All steps in this article are demonstrated on a file from the examples of BESA Research - &amp;quot;S1.cnt&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== Export the single trial data in simple binary file format ==&lt;br /&gt;
Load from the examples of BESA Research the file &amp;quot;S1.cnt&amp;quot; in the folder &amp;quot;ERP-Auditory-Intensity&amp;quot;. After the file was loaded select menu &amp;quot;File -&amp;gt; Export...&amp;quot;. The &amp;quot;Export data&amp;quot; dialog opens (see Figure 1).&lt;br /&gt;
[[File:ExportDataDialog.png|thumb|500px|Figure 1 The &amp;quot;Export data&amp;quot;-dialog]]&lt;br /&gt;
In that dialog select &amp;quot;Epochs around triggers&amp;quot; in the section &amp;quot;Data to export&amp;quot;. The two buttons &amp;quot;Interval...&amp;quot; and &amp;quot;Triggers...&amp;quot; become active. Then click on  &amp;quot;Interval...&amp;quot; to set appropriate values for the time interval around the trigger and after that click on &amp;quot;Triggers...&amp;quot; in order to select trigger for the random averaging. Please make sure to select only one trigger (see Figure 2) else the generated random averages will contain mixed data from all selected triggers. In the &amp;quot;Export data&amp;quot;-dialog click &amp;quot;OK&amp;quot; to export the data.&lt;br /&gt;
[[File:SelectTriggerDialog.png|thumb|500px|Figure 2 &amp;quot;Select trigger&amp;quot;-dialog]]&lt;br /&gt;
&lt;br /&gt;
== Use the external tool BesaRandomAveraging.exe to generate the random averages ==&lt;br /&gt;
There exists a tool called &amp;quot;BesaRandomAveraging.exe&amp;quot; which is designed for that to load the exported single trial data and to generate random averages. This tool is based on a Python script called &amp;quot;BesaRandomAveraging.py&amp;quot; which is open source. Both, the source and the binary can be downloaded from here [ftp://h1772544.stratoserver.net/public/Python/BESA_PYTHON.zip] . The usage of the tool is as follows:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;dos&amp;quot;&amp;gt;&lt;br /&gt;
BesaRandomAveraging.exe -f &amp;lt;inputfile&amp;gt; ...&lt;br /&gt;
-n &amp;lt;number of averages&amp;gt; -t &amp;lt;number of trials&amp;gt;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
where '''''&amp;lt;inputfile&amp;gt;''''' is the absolute path (directory + filename) to the file containing the exported single trial data, '''''&amp;lt;number of averages&amp;gt;''''' is the number of random averages to create and '''''&amp;lt;number of trials used for averaging&amp;gt;''''' is the number of trials which are selected for each average.&lt;br /&gt;
&lt;br /&gt;
'''Example:'''&lt;br /&gt;
&amp;lt;source lang=&amp;quot;dos&amp;quot;&amp;gt;&lt;br /&gt;
BesaRandomAveraging.exe -f N:\\Python\\data\\ ...&lt;br /&gt;
S1-export.dat -n 20 -t 50&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
This command line will generate 20 different averages using sample of 50 trials for every average.&lt;br /&gt;
It is possible to start the tool from the DOS prompt or directly from BESA Research (see Figure 3) using the following batch command: &lt;br /&gt;
&amp;lt;source lang=&amp;quot;c&amp;quot;&amp;gt;GENRunProcess(...)&amp;lt;/source&amp;gt;&lt;br /&gt;
[[File:RunExternalTool.png|thumb|500px|Figure 3 Dialog for the batch command &amp;quot;GENRunProcess(...)&amp;quot;]]&lt;br /&gt;
&lt;br /&gt;
== Perform source analysis on the averages ==&lt;br /&gt;
Once the random averages are created we want to perform source analysis on them. For this purpose we are going to use batch in order to save time. The following batch can be used for the source analysis using LORETA:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;c&amp;quot;&amp;gt;&lt;br /&gt;
MAINFilter(LC:0.50-6dB-f,HC:45.00-24dB-z,NF:off,BP:off)&lt;br /&gt;
MAINMarkBlock(WholeSegment,-,1,SendToSA)&lt;br /&gt;
SAimageLORETA(NoImageWeights,ForceRecompute)&lt;br /&gt;
SAimageExport(%basename%_LORETA.dat,All,ASCII,-)&lt;br /&gt;
SAexit()&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
The first line sets the filter, the second marks the entire interval and sends it to the source analysis module, the third computes LORETA over the entire interval, the fourth exports the LORETA results as an ASCII-file and the last just exits the source analysis module.&lt;br /&gt;
Now we have the LORETA results for the entire time interval, however, we need additional results to compare with. This could be either a control condition or LORETA results from the baseline interval. In this tutorial we choose to use the baseline interval. In that case we should use another batch script which is very similar to the previous one in order to calculate LORETA only for the baseline interval:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;c&amp;quot;&amp;gt;&lt;br /&gt;
MAINFilter(LC:0.50-6dB-f,HC:45.00-24dB-z,NF:off,BP:off)&lt;br /&gt;
MAINMarkBlock(WholeSegment,-,1,SendToSA)&lt;br /&gt;
SAfitInterval(-100,0,FitInterval)&lt;br /&gt;
SAimageLORETA(NoImageWeights,ForceRecompute)&lt;br /&gt;
SAimageExport(%basename%_LORETA.dat,All,ASCII,-)&lt;br /&gt;
SAexit()&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
The only difference with respect to the previous script is the command '''''SAfitInterval(-100,0,FitInterval)''''' which sets only the baseline interval [-100 0] for the source localization.&lt;br /&gt;
&lt;br /&gt;
== Calculate root-mean-square (RMS) over the time points in the baseline in order to get only one source image for the baseline interval ==&lt;br /&gt;
Now the LORETA source reconstruction files are generated and we want to compare the evoked response and the response in the baseline in order to get the regions in the brain which are statistically significant. For this purpose we have to choose how to do that. One possible problem is that the baseline interval is not necessarily exactly as long as the interval containing the evoked response of interest. Consequently, it is more convenient to use baseline interval which is as long as we need it. In order to achieve that we calculate the root-mean-square over the time for LORETA images calculated in the baseline interval. In that way we get for every random average one LORETA image representing the localization results for the baseline. After that we can stretch this image to as many time points as we need and save the 4D matrix in an ASCII file. These steps can be performed with a Matlab script:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
%% create constant baseline&lt;br /&gt;
 &lt;br /&gt;
addpath('N:\BESA_MATLAB\BesaIO\besa_matlab_readers')&lt;br /&gt;
addpath('N:\BESA_MATLAB\BesaIO\ersam2besa')&lt;br /&gt;
 &lt;br /&gt;
DataPathSignal = 'N:\Python\data\LoretaData';&lt;br /&gt;
DataPathBaseline = 'N:\Python\data\Baseline';&lt;br /&gt;
DataPathConstBaseline = 'N:\Python\data\ConstantBaseline';&lt;br /&gt;
 &lt;br /&gt;
FirstTimeSample = -100.0; % ms&lt;br /&gt;
TimeStep = 4; % ms&lt;br /&gt;
ImageMethod = 'Standard LORETA';&lt;br /&gt;
 &lt;br /&gt;
FileNames = ...&lt;br /&gt;
    {'S1-export_new15_LORETA.dat',  'S1-export_new4_LORETA.dat', ... &lt;br /&gt;
    'S1-export_new16_LORETA.dat',  'S1-export_new5_LORETA.dat', ...  &lt;br /&gt;
    'S1-export_new0_LORETA.dat',   'S1-export_new17_LORETA.dat', ... &lt;br /&gt;
    'S1-export_new6_LORETA.dat',   'S1-export_new10_LORETA.dat', ... &lt;br /&gt;
    'S1-export_new18_LORETA.dat',  'S1-export_new7_LORETA.dat', ...  &lt;br /&gt;
    'S1-export_new11_LORETA.dat',  'S1-export_new19_LORETA.dat', ... &lt;br /&gt;
    'S1-export_new8_LORETA.dat',   'S1-export_new12_LORETA.dat', ... &lt;br /&gt;
    'S1-export_new1_LORETA.dat',   'S1-export_new9_LORETA.dat',  ... &lt;br /&gt;
    'S1-export_new13_LORETA.dat',  'S1-export_new2_LORETA.dat',  ... &lt;br /&gt;
    'S1-export_new14_LORETA.dat',  'S1-export_new3_LORETA.dat'};&lt;br /&gt;
 &lt;br /&gt;
NumFiles = length(FileNames);&lt;br /&gt;
 &lt;br /&gt;
for f=1:NumFiles&lt;br /&gt;
 &lt;br /&gt;
    CurrFilename = FileNames{f};&lt;br /&gt;
    &lt;br /&gt;
    CompletePathBaseline = fullfile(DataPathBaseline, CurrFilename);&lt;br /&gt;
    CompletePathSignal = fullfile(DataPathSignal, CurrFilename);&lt;br /&gt;
    ConstantBaselineData = fullfile(DataPathConstBaseline, CurrFilename);&lt;br /&gt;
 &lt;br /&gt;
    BaselineData = readBESAimage(CompletePathBaseline);&lt;br /&gt;
    SignalData = readBESAimage(CompletePathSignal);&lt;br /&gt;
 &lt;br /&gt;
    NumTimeSamples = size(SignalData.Data, 4);&lt;br /&gt;
 &lt;br /&gt;
    % Average baseline over time&lt;br /&gt;
%     data4 = squeeze(mean(BaselineData.Data, 4));&lt;br /&gt;
    data4 = squeeze(rms(BaselineData.Data, 4));&lt;br /&gt;
    data5 = repmat(data4, [1 1 1 NumTimeSamples]);&lt;br /&gt;
    data6 = permute(data5, [4 1 2 3]);&lt;br /&gt;
 &lt;br /&gt;
    besa_save4DimageData(ConstantBaselineData, data6, ...&lt;br /&gt;
        min(SignalData.Coordinates.X), min(SignalData.Coordinates.Y), ...&lt;br /&gt;
        min(SignalData.Coordinates.Z), max(SignalData.Coordinates.X), ...&lt;br /&gt;
        max(SignalData.Coordinates.Y), max(SignalData.Coordinates.Z), ...&lt;br /&gt;
        length(SignalData.Coordinates.X), length(SignalData.Coordinates.Y), ...&lt;br /&gt;
        length(SignalData.Coordinates.Z), ImageMethod, ...&lt;br /&gt;
        FirstTimeSample, TimeStep)&lt;br /&gt;
 &lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
The external functions used in this script are part of our open source tools &amp;quot;besa_matlab_readers&amp;quot; and &amp;quot;ersam2besa&amp;quot; which can be downloaded from our ftp-server here: [ftp://h1772544.stratoserver.net/public/Matlab/].&lt;br /&gt;
&lt;br /&gt;
== Perform statistical comparison with the results ==&lt;br /&gt;
After all source reconstruction files were generated it remains to compare the evoked responses against the baseline responses. This can be done with BESA Statistics using either paired t-test or within ANOVA projects.&lt;/div&gt;</summary>
		<author><name>Andre</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Main_Page</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Main_Page"/>
				<updated>2015-12-09T10:27:37Z</updated>
		
		<summary type="html">&lt;p&gt;Andre: very minor changes ~~~~&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=&amp;lt;strong&amp;gt;Welcome to the BESA Wiki!&amp;lt;/strong&amp;gt;=&lt;br /&gt;
&lt;br /&gt;
We just started working on this wiki!&lt;br /&gt;
Soon you will be able to access:&lt;br /&gt;
* tutorials&lt;br /&gt;
* FAQs &lt;br /&gt;
* a collection of useful batches&lt;br /&gt;
* and further content we will be publishing on this wiki&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Contributions to the Wiki from the community are very welcome! Please create an account with a valid email to edit the BESA Wiki's content.&lt;br /&gt;
&lt;br /&gt;
Consult the [//meta.wikimedia.org/wiki/Help:Contents User's Guide] for information on using the wiki software.&lt;/div&gt;</summary>
		<author><name>Andre</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Main_Page</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Main_Page"/>
				<updated>2015-12-08T21:32:28Z</updated>
		
		<summary type="html">&lt;p&gt;Andre: minor improvements ~~~~&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=&amp;lt;strong&amp;gt;Welcome to the BESA Wiki!&amp;lt;/strong&amp;gt;=&lt;br /&gt;
&lt;br /&gt;
We just started working on this wiki!&lt;br /&gt;
Soon you will be able to access:&lt;br /&gt;
* a collection of various tutorials showing examples of some of the BESA workflows&lt;br /&gt;
* a collection of FAQs &lt;br /&gt;
* and further contents we will be publishing&lt;br /&gt;
&lt;br /&gt;
Contributions to the Wiki are very welcome! Please create an account with a valid email to edit the BESA Wiki's content.&lt;br /&gt;
&lt;br /&gt;
Consult the [//meta.wikimedia.org/wiki/Help:Contents User's Guide] for information on using the wiki software.&lt;/div&gt;</summary>
		<author><name>Andre</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Main_Page</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Main_Page"/>
				<updated>2015-12-07T13:52:46Z</updated>
		
		<summary type="html">&lt;p&gt;Andre: First test on creating the main page.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;strong&amp;gt;Welcome to BESA Wiki!&amp;lt;/strong&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Create an account]] to edit the BESA Wiki's content.&lt;br /&gt;
&lt;br /&gt;
Consult the [//meta.wikimedia.org/wiki/Help:Contents User's Guide] for information on using the wiki software.&lt;br /&gt;
&lt;br /&gt;
== Getting started ==&lt;br /&gt;
* [//www.mediawiki.org/wiki/Manual:Configuration_settings Configuration settings list]&lt;br /&gt;
* [//www.mediawiki.org/wiki/Manual:FAQ MediaWiki FAQ]&lt;br /&gt;
* [https://lists.wikimedia.org/mailman/listinfo/mediawiki-announce MediaWiki release mailing list]&lt;br /&gt;
* [//www.mediawiki.org/wiki/Localisation#Translation_resources Localise MediaWiki for your language]&lt;/div&gt;</summary>
		<author><name>Andre</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=User_talk:Andre</id>
		<title>User talk:Andre</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=User_talk:Andre"/>
				<updated>2015-12-07T13:31:00Z</updated>
		
		<summary type="html">&lt;p&gt;Andre: test&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is a test.&lt;/div&gt;</summary>
		<author><name>Andre</name></author>	</entry>

	</feed>