<?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=Todor</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=Todor"/>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Special:Contributions/Todor"/>
		<updated>2026-05-07T06:22:41Z</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-07-07T12:31:04Z</updated>
		
		<summary type="html">&lt;p&gt;Todor: /* Matlab interface */&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;
[[Exporting Data from Matlab to BESA Statistics]]&lt;br /&gt;
&lt;br /&gt;
[[Visualization with BESA Plot in FieldTrip]]&lt;br /&gt;
&lt;br /&gt;
=== BESA MRI===&lt;br /&gt;
&lt;br /&gt;
[[Marking AC-PC Points in BESA MRI]]&lt;br /&gt;
&lt;br /&gt;
=== BESA Statistics ===&lt;br /&gt;
&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;
[[Visualization with BESA Plot in FieldTrip]]&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>Todor</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-07-07T12:30:45Z</updated>
		
		<summary type="html">&lt;p&gt;Todor: /* BESA recipes */&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;
[[Visualization with BESA Plot in FieldTrip]]&lt;br /&gt;
&lt;br /&gt;
=== BESA MRI===&lt;br /&gt;
&lt;br /&gt;
[[Marking AC-PC Points in BESA MRI]]&lt;br /&gt;
&lt;br /&gt;
=== BESA Statistics ===&lt;br /&gt;
&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;
[[Visualization with BESA Plot in FieldTrip]]&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>Todor</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-07-07T12:30:23Z</updated>
		
		<summary type="html">&lt;p&gt;Todor: /* Matlab interface */&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;
[[Visualization with BESA Plot in FieldTrip]]&lt;br /&gt;
&lt;br /&gt;
=== BESA MRI===&lt;br /&gt;
&lt;br /&gt;
[[Marking AC-PC Points in BESA MRI]]&lt;br /&gt;
&lt;br /&gt;
=== BESA Statistics ===&lt;br /&gt;
&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>Todor</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Visualization_with_BESA_Plot_in_FieldTrip</id>
		<title>Visualization with BESA Plot in FieldTrip</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Visualization_with_BESA_Plot_in_FieldTrip"/>
				<updated>2016-07-07T12:27:09Z</updated>
		
		<summary type="html">&lt;p&gt;Todor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{BESAInfobox&lt;br /&gt;
|title = Module information&lt;br /&gt;
|module = BESA Plot&lt;br /&gt;
|version = 1.1 or higher&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
[http://www.besa.de/downloads/besa-plot/ BESA Plot] is a free tool created by [https://www.psychologie.uni-konstanz.de/forschung/clinicalpsychology/mitarbeiter/mitarbeiter-detailseite/berg-patrick-22/7347/7149/ Patrick Berg] ([http://www.besa.de/ BESA GmbH]) for visualization of MEEG data. Initially it was meant to be complementary visualization tool to [http://www.besa.de/products/besa-research/besa-research-overview/ BESA Research], however, it could be used in more general context. In this document we demonstrate the possibility of using BESA Plot as a visualization tool in the [https://www.mathworks.com/ Matlab] based open source package for MEEG data analysis [http://www.fieldtriptoolbox.org/ FieldTrip].&lt;br /&gt;
&lt;br /&gt;
Since BESA Plot can be started with command line arguments, it can be called directly from Matlab and the required input parameters (e.g. data file, settings and plotting modalities) can be committed as such arguments. There are four files necessary for starting BESA Plot from Matlab and visualizing the corresponding data: 1) a data file (e.g. test1.avr), 2) a file containing the channel labels and coordinates (e.g. test1.elp), 3) a control file containing the plotting commands for BESA Plot (e.g. test1.bpctrl) and 4) a dataset file containing general information about the data file (e.g. test1.avr.dataset). These files should be generated dynamically in Matlab in order to be able to plot the Matlab data in BESA Plot.&lt;br /&gt;
&lt;br /&gt;
== Generating the data file ==&lt;br /&gt;
First of all we need the data which are going to be saved as an avr-file. This is usually a Matlab structure generated  in FieldTrip with the function &amp;lt;tt&amp;gt;ft_timelockanalysis&amp;lt;/tt&amp;gt;. Its general form is something like this:&lt;br /&gt;
&amp;lt;tt&amp;gt;&lt;br /&gt;
       avg: [147x271 double]&lt;br /&gt;
       var: [147x271 double]&lt;br /&gt;
      time: [1x271 double]&lt;br /&gt;
       dof: [147x271 double]&lt;br /&gt;
     label: {147x1 cell}&lt;br /&gt;
    dimord: 'chan_time'&lt;br /&gt;
      grad: [1x1 struct]&lt;br /&gt;
       cfg: [1x1 struct]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/tt&amp;gt;&lt;br /&gt;
In order to create a data file from that structure one needs the function &amp;lt;tt&amp;gt;besa_save2Avr&amp;lt;/tt&amp;gt; which can be found in the FieldTrip installation in the folder &amp;lt;tt&amp;gt;external\besa&amp;lt;/tt&amp;gt; or can be downloaded directly from [ftp://h1772544.stratoserver.net/public/Matlab/MATLAB2BESA.zip BESA’s ftp-server]. Just unpack the archive and add the path to the Matlab path (e.g. &amp;lt;tt&amp;gt;addpath(‘D:\Path\to\MATLAB2BESA’)&amp;lt;/tt&amp;gt;).&lt;br /&gt;
Use the function like this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
status = besa_save2Avr(cfg.datapath, DataFile, data_matrix, ...&lt;br /&gt;
        time_samples, channel_labels, data_scale_factor, time_scale_factor);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Generating the channel file (*.elp) ==&lt;br /&gt;
This file contains the channel type, the channel labels and the spherical coordinates of the channels. It can be created using the function &amp;lt;tt&amp;gt;besa_save2Elp&amp;lt;/tt&amp;gt; again from the package &amp;lt;tt&amp;gt;MATLAB2BESA&amp;lt;/tt&amp;gt;. Use the function like this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
status = besa_save2Elp(cfg.datapath, ElpFile, ...&lt;br /&gt;
        SphericalCoords, channel_labels, channel_type);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
== Creating the BESA Plot control file ==&lt;br /&gt;
This is the actual plotting script. It follows the syntax of a scripting language defined in BESA Plot. For more details about the scripting language please refer to the program help. For this file format there is no writer function, since it can contain different scripts for different visualization scenarios. One possible script for plotting two dipoles in a schematic head could look like this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
set color=black&lt;br /&gt;
set size=16&lt;br /&gt;
set dipole number=1 xloc=0.65 yloc=0.16 zloc=0.29 xori=0.15 yori=-0.73 zori=-0.67 color=blue length=0.1 diameter=0.05&lt;br /&gt;
set dipole number=2 xloc=-0.65 yloc=0.16 zloc=0.29 xori=-0.17 yori=-0.57 zori=-0.81 color=blue length=0.1 diameter=0.05&lt;br /&gt;
head width=35 height=40 viewpoint=top brain=on x=20.0 y=75.0&lt;br /&gt;
head width=35 height=40 viewpoint=back brain=on x=20.0 y=30.0&lt;br /&gt;
head width=35 height=40 viewpoint=left brain=on x=77.0 y=77.0&lt;br /&gt;
set dataset=1&lt;br /&gt;
set mapuV=18&lt;br /&gt;
set mapcolor negative=blue positive=red electrode=none&lt;br /&gt;
set mapsize=35&lt;br /&gt;
set maptype=amplitude&lt;br /&gt;
set maplambda=1E-5&lt;br /&gt;
set mapviewpoint=top&lt;br /&gt;
set maprange maximumuV=461 minimumuV=-419 zerouV=0.0 contours=on&lt;br /&gt;
map latency=110.6 end=150.4 step=20 mean=on label=on x=77.0 y=30.0&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
The result after running the script is shown in Figure 1.&lt;br /&gt;
[[File:DipoleFitResults.png|thumb|500px|Figure 1 Dipole fitting results visualized with BESA Plot]]&lt;br /&gt;
[[File:AverageResults.png|thumb|500px|Figure 2 Visualization of sensor level data with BESA Plot]]&lt;br /&gt;
== Creating the dataset file ==&lt;br /&gt;
The dataset file contains basic information about the data in the data file. It is not essential for the visualization process, however, if it is missing, the program asks the user additional questions about the settings before generating the image. The dataset file can be created with the function &amp;lt;tt&amp;gt;besa_save2Dataset&amp;lt;/tt&amp;gt; which also in the package &amp;lt;tt&amp;gt;MATLAB2BESA&amp;lt;/tt&amp;gt;. Use the function like this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
status = besa_save2Dataset(DatasetPath, DataFile, ...&lt;br /&gt;
    ElpFile, ControlFile, NumChannels, NumTimeSamples, ...&lt;br /&gt;
    SamplingInterval, FirstTimeSample);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
== Starting BESA Plot with command line arguments ==&lt;br /&gt;
After the generation of the input files one can start BESA Plot with these files as input in order to visualize data. The syntax of the call is:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;BesaPlot &amp;lt;data_file_name&amp;gt; &amp;lt;control_file_name&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Example:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;dos&amp;quot;&amp;gt;&lt;br /&gt;
start /b cmd /c &amp;quot;C:\Program Files (x86)\BESA\Plot\BesaPlot.exe&amp;quot; &lt;br /&gt;
    M:\QM\BesaPlot\erf1.avr M:\QM\BesaPlot\erf1.bpctrl&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Please note that &amp;lt;tt&amp;gt;start /b cmd /c&amp;lt;/tt&amp;gt; is used to start the program in background.&lt;br /&gt;
== Predefined plotting functions for data from FieldTrip ==&lt;br /&gt;
There are two functions available in the package &amp;lt;tt&amp;gt;MATLAB2BESA&amp;lt;/tt&amp;gt; (and also in FieldTrip in the folder &amp;lt;tt&amp;gt;external\besa&amp;lt;/tt&amp;gt;) which can be used to plot directly data from FieldTrip with BESA Plot. These functions are &amp;lt;tt&amp;gt;besa_plotFtSensorLevelMaps&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;besa_plotFtDipoleResults&amp;lt;/tt&amp;gt;. The first one can be used to plot sensor level MEEG data generated by &amp;lt;tt&amp;gt;ft_timelockanalysis&amp;lt;/tt&amp;gt; and the second one for dipole fit data resulted from &amp;lt;tt&amp;gt;ft_dipolefitting&amp;lt;/tt&amp;gt;. The image gained with the function &amp;lt;tt&amp;gt;besa_plotFtSensorLevelMaps&amp;lt;/tt&amp;gt; is shown in Figure 2 and the one generated with the function &amp;lt;tt&amp;gt;ft_dipolefitting&amp;lt;/tt&amp;gt; is shown in Figure 1.&lt;br /&gt;
The functions can be called like this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
cfg = [];&lt;br /&gt;
cfg.badchannels = 1;  % number of bad channels&lt;br /&gt;
cfg.latency = [0.000 0.250]; % interval of interest in seconds&lt;br /&gt;
cfg.timestep = 0.020; % time interval between two plots&lt;br /&gt;
% path to BESA Plot&lt;br /&gt;
cfg.besaplot = '&amp;quot;C:\Program Files (x86)\BESA\Plot\BesaPlot.exe&amp;quot;';&lt;br /&gt;
cfg.filebasename = 'erf1'; % basename for the generated files&lt;br /&gt;
% folder where to save the generated files&lt;br /&gt;
cfg.datapath = 'D:\Data\BesaPlot';&lt;br /&gt;
&lt;br /&gt;
status = besa_plotFtSensorLevelMaps(cfg, data_avg);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
cfg = [];&lt;br /&gt;
cfg.badchannels = 1; % number of bad channels&lt;br /&gt;
cfg.besaplot = '&amp;quot;C:\Program Files (x86)\BESA\Plot\BesaPlot.exe&amp;quot;'; % path to BESA Plot&lt;br /&gt;
cfg.filebasename = 'megdatafile'; % basename for the generated files&lt;br /&gt;
cfg.datapath = 'D:\Data\BesaPlot'; % folder where to save the generated files&lt;br /&gt;
&lt;br /&gt;
status = besa_plotFtDipoleResults(cfg, data_avg, dipole_source);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Please note that there are two possible ways to customize the plots:&lt;br /&gt;
# Change the section '''Write the control file''' in the plotting functions &amp;lt;tt&amp;gt;besa_plotFtSensorLevelMaps&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;besa_plotFtDipoleResults&amp;lt;/tt&amp;gt;.&lt;br /&gt;
# After the plots were created use BESA Plot to change the images.&lt;br /&gt;
For more information about which visualization possibilities are available in BESA Plot please read the program help or check the [http://www.besa.de/downloads/besa-plot/ feature list].&lt;br /&gt;
&lt;br /&gt;
[[Category:BESA Plot, Matlab]]&lt;/div&gt;</summary>
		<author><name>Todor</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Visualization_with_BESA_Plot_in_FieldTrip</id>
		<title>Visualization with BESA Plot in FieldTrip</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Visualization_with_BESA_Plot_in_FieldTrip"/>
				<updated>2016-07-07T12:23:11Z</updated>
		
		<summary type="html">&lt;p&gt;Todor: /* Predefined plotting functions for data from FieldTrip */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[http://www.besa.de/downloads/besa-plot/ BESA Plot] is a free tool created by [https://www.psychologie.uni-konstanz.de/forschung/clinicalpsychology/mitarbeiter/mitarbeiter-detailseite/berg-patrick-22/7347/7149/ Patrick Berg] ([http://www.besa.de/ BESA GmbH]) for visualization of MEEG data. Initially it was meant to be complementary visualization tool to [http://www.besa.de/products/besa-research/besa-research-overview/ BESA Research], however, it could be used in more general context. In this document we demonstrate the possibility of using BESA Plot as a visualization tool in the [https://www.mathworks.com/ Matlab] based open source package for MEEG data analysis [http://www.fieldtriptoolbox.org/ FieldTrip].&lt;br /&gt;
&lt;br /&gt;
Since BESA Plot can be started with command line arguments, it can be called directly from Matlab and the required input parameters (e.g. data file, settings and plotting modalities) can be committed as such arguments. There are four files necessary for starting BESA Plot from Matlab and visualizing the corresponding data: 1) a data file (e.g. test1.avr), 2) a file containing the channel labels and coordinates (e.g. test1.elp), 3) a control file containing the plotting commands for BESA Plot (e.g. test1.bpctrl) and 4) a dataset file containing general information about the data file (e.g. test1.avr.dataset). These files should be generated dynamically in Matlab in order to be able to plot the Matlab data in BESA Plot.&lt;br /&gt;
&lt;br /&gt;
== Generating the data file ==&lt;br /&gt;
First of all we need the data which are going to be saved as an avr-file. This is usually a Matlab structure generated  in FieldTrip with the function &amp;lt;tt&amp;gt;ft_timelockanalysis&amp;lt;/tt&amp;gt;. Its general form is something like this:&lt;br /&gt;
&amp;lt;tt&amp;gt;&lt;br /&gt;
       avg: [147x271 double]&lt;br /&gt;
       var: [147x271 double]&lt;br /&gt;
      time: [1x271 double]&lt;br /&gt;
       dof: [147x271 double]&lt;br /&gt;
     label: {147x1 cell}&lt;br /&gt;
    dimord: 'chan_time'&lt;br /&gt;
      grad: [1x1 struct]&lt;br /&gt;
       cfg: [1x1 struct]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/tt&amp;gt;&lt;br /&gt;
In order to create a data file from that structure one needs the function &amp;lt;tt&amp;gt;besa_save2Avr&amp;lt;/tt&amp;gt; which can be found in the FieldTrip installation in the folder &amp;lt;tt&amp;gt;external\besa&amp;lt;/tt&amp;gt; or can be downloaded directly from [ftp://h1772544.stratoserver.net/public/Matlab/MATLAB2BESA.zip BESA’s ftp-server]. Just unpack the archive and add the path to the Matlab path (e.g. &amp;lt;tt&amp;gt;addpath(‘D:\Path\to\MATLAB2BESA’)&amp;lt;/tt&amp;gt;).&lt;br /&gt;
Use the function like this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
status = besa_save2Avr(cfg.datapath, DataFile, data_matrix, ...&lt;br /&gt;
        time_samples, channel_labels, data_scale_factor, time_scale_factor);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Generating the channel file (*.elp) ==&lt;br /&gt;
This file contains the channel type, the channel labels and the spherical coordinates of the channels. It can be created using the function &amp;lt;tt&amp;gt;besa_save2Elp&amp;lt;/tt&amp;gt; again from the package &amp;lt;tt&amp;gt;MATLAB2BESA&amp;lt;/tt&amp;gt;. Use the function like this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
status = besa_save2Elp(cfg.datapath, ElpFile, ...&lt;br /&gt;
        SphericalCoords, channel_labels, channel_type);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
== Creating the BESA Plot control file ==&lt;br /&gt;
This is the actual plotting script. It follows the syntax of a scripting language defined in BESA Plot. For more details about the scripting language please refer to the program help. For this file format there is no writer function, since it can contain different scripts for different visualization scenarios. One possible script for plotting two dipoles in a schematic head could look like this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
set color=black&lt;br /&gt;
set size=16&lt;br /&gt;
set dipole number=1 xloc=0.65 yloc=0.16 zloc=0.29 xori=0.15 yori=-0.73 zori=-0.67 color=blue length=0.1 diameter=0.05&lt;br /&gt;
set dipole number=2 xloc=-0.65 yloc=0.16 zloc=0.29 xori=-0.17 yori=-0.57 zori=-0.81 color=blue length=0.1 diameter=0.05&lt;br /&gt;
head width=35 height=40 viewpoint=top brain=on x=20.0 y=75.0&lt;br /&gt;
head width=35 height=40 viewpoint=back brain=on x=20.0 y=30.0&lt;br /&gt;
head width=35 height=40 viewpoint=left brain=on x=77.0 y=77.0&lt;br /&gt;
set dataset=1&lt;br /&gt;
set mapuV=18&lt;br /&gt;
set mapcolor negative=blue positive=red electrode=none&lt;br /&gt;
set mapsize=35&lt;br /&gt;
set maptype=amplitude&lt;br /&gt;
set maplambda=1E-5&lt;br /&gt;
set mapviewpoint=top&lt;br /&gt;
set maprange maximumuV=461 minimumuV=-419 zerouV=0.0 contours=on&lt;br /&gt;
map latency=110.6 end=150.4 step=20 mean=on label=on x=77.0 y=30.0&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
The result after running the script is shown in Figure 1.&lt;br /&gt;
[[File:DipoleFitResults.png|thumb|500px|Figure 1 Dipole fitting results visualized with BESA Plot]]&lt;br /&gt;
[[File:AverageResults.png|thumb|500px|Figure 2 Visualization of sensor level data with BESA Plot]]&lt;br /&gt;
== Creating the dataset file ==&lt;br /&gt;
The dataset file contains basic information about the data in the data file. It is not essential for the visualization process, however, if it is missing, the program asks the user additional questions about the settings before generating the image. The dataset file can be created with the function &amp;lt;tt&amp;gt;besa_save2Dataset&amp;lt;/tt&amp;gt; which also in the package &amp;lt;tt&amp;gt;MATLAB2BESA&amp;lt;/tt&amp;gt;. Use the function like this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
status = besa_save2Dataset(DatasetPath, DataFile, ...&lt;br /&gt;
    ElpFile, ControlFile, NumChannels, NumTimeSamples, ...&lt;br /&gt;
    SamplingInterval, FirstTimeSample);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
== Starting BESA Plot with command line arguments ==&lt;br /&gt;
After the generation of the input files one can start BESA Plot with these files as input in order to visualize data. The syntax of the call is:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;BesaPlot &amp;lt;data_file_name&amp;gt; &amp;lt;control_file_name&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Example:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;dos&amp;quot;&amp;gt;&lt;br /&gt;
start /b cmd /c &amp;quot;C:\Program Files (x86)\BESA\Plot\BesaPlot.exe&amp;quot; &lt;br /&gt;
    M:\QM\BesaPlot\erf1.avr M:\QM\BesaPlot\erf1.bpctrl&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Please note that &amp;lt;tt&amp;gt;start /b cmd /c&amp;lt;/tt&amp;gt; is used to start the program in background.&lt;br /&gt;
== Predefined plotting functions for data from FieldTrip ==&lt;br /&gt;
There are two functions available in the package &amp;lt;tt&amp;gt;MATLAB2BESA&amp;lt;/tt&amp;gt; (and also in FieldTrip in the folder &amp;lt;tt&amp;gt;external\besa&amp;lt;/tt&amp;gt;) which can be used to plot directly data from FieldTrip with BESA Plot. These functions are &amp;lt;tt&amp;gt;besa_plotFtSensorLevelMaps&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;besa_plotFtDipoleResults&amp;lt;/tt&amp;gt;. The first one can be used to plot sensor level MEEG data generated by &amp;lt;tt&amp;gt;ft_timelockanalysis&amp;lt;/tt&amp;gt; and the second one for dipole fit data resulted from &amp;lt;tt&amp;gt;ft_dipolefitting&amp;lt;/tt&amp;gt;. The image gained with the function &amp;lt;tt&amp;gt;besa_plotFtSensorLevelMaps&amp;lt;/tt&amp;gt; is shown in Figure 2 and the one generated with the function &amp;lt;tt&amp;gt;ft_dipolefitting&amp;lt;/tt&amp;gt; is shown in Figure 1.&lt;br /&gt;
The functions can be called like this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
cfg = [];&lt;br /&gt;
cfg.badchannels = 1;  % number of bad channels&lt;br /&gt;
cfg.latency = [0.000 0.250]; % interval of interest in seconds&lt;br /&gt;
cfg.timestep = 0.020; % time interval between two plots&lt;br /&gt;
% path to BESA Plot&lt;br /&gt;
cfg.besaplot = '&amp;quot;C:\Program Files (x86)\BESA\Plot\BesaPlot.exe&amp;quot;';&lt;br /&gt;
cfg.filebasename = 'erf1'; % basename for the generated files&lt;br /&gt;
% folder where to save the generated files&lt;br /&gt;
cfg.datapath = 'D:\Data\BesaPlot';&lt;br /&gt;
&lt;br /&gt;
status = besa_plotFtSensorLevelMaps(cfg, data_avg);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
cfg = [];&lt;br /&gt;
cfg.badchannels = 1; % number of bad channels&lt;br /&gt;
cfg.besaplot = '&amp;quot;C:\Program Files (x86)\BESA\Plot\BesaPlot.exe&amp;quot;'; % path to BESA Plot&lt;br /&gt;
cfg.filebasename = 'megdatafile'; % basename for the generated files&lt;br /&gt;
cfg.datapath = 'D:\Data\BesaPlot'; % folder where to save the generated files&lt;br /&gt;
&lt;br /&gt;
status = besa_plotFtDipoleResults(cfg, data_avg, dipole_source);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Please note that there are two possible ways to customize the plots:&lt;br /&gt;
# Change the section '''Write the control file''' in the plotting functions &amp;lt;tt&amp;gt;besa_plotFtSensorLevelMaps&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;besa_plotFtDipoleResults&amp;lt;/tt&amp;gt;.&lt;br /&gt;
# After the plots were created use BESA Plot to change the images.&lt;br /&gt;
For more information about which visualization possibilities are available in BESA Plot please read the program help or check the [http://www.besa.de/downloads/besa-plot/ feature list].&lt;/div&gt;</summary>
		<author><name>Todor</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Visualization_with_BESA_Plot_in_FieldTrip</id>
		<title>Visualization with BESA Plot in FieldTrip</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Visualization_with_BESA_Plot_in_FieldTrip"/>
				<updated>2016-07-07T12:22:46Z</updated>
		
		<summary type="html">&lt;p&gt;Todor: /* Predefined plotting functions for data from FieldTrip */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[http://www.besa.de/downloads/besa-plot/ BESA Plot] is a free tool created by [https://www.psychologie.uni-konstanz.de/forschung/clinicalpsychology/mitarbeiter/mitarbeiter-detailseite/berg-patrick-22/7347/7149/ Patrick Berg] ([http://www.besa.de/ BESA GmbH]) for visualization of MEEG data. Initially it was meant to be complementary visualization tool to [http://www.besa.de/products/besa-research/besa-research-overview/ BESA Research], however, it could be used in more general context. In this document we demonstrate the possibility of using BESA Plot as a visualization tool in the [https://www.mathworks.com/ Matlab] based open source package for MEEG data analysis [http://www.fieldtriptoolbox.org/ FieldTrip].&lt;br /&gt;
&lt;br /&gt;
Since BESA Plot can be started with command line arguments, it can be called directly from Matlab and the required input parameters (e.g. data file, settings and plotting modalities) can be committed as such arguments. There are four files necessary for starting BESA Plot from Matlab and visualizing the corresponding data: 1) a data file (e.g. test1.avr), 2) a file containing the channel labels and coordinates (e.g. test1.elp), 3) a control file containing the plotting commands for BESA Plot (e.g. test1.bpctrl) and 4) a dataset file containing general information about the data file (e.g. test1.avr.dataset). These files should be generated dynamically in Matlab in order to be able to plot the Matlab data in BESA Plot.&lt;br /&gt;
&lt;br /&gt;
== Generating the data file ==&lt;br /&gt;
First of all we need the data which are going to be saved as an avr-file. This is usually a Matlab structure generated  in FieldTrip with the function &amp;lt;tt&amp;gt;ft_timelockanalysis&amp;lt;/tt&amp;gt;. Its general form is something like this:&lt;br /&gt;
&amp;lt;tt&amp;gt;&lt;br /&gt;
       avg: [147x271 double]&lt;br /&gt;
       var: [147x271 double]&lt;br /&gt;
      time: [1x271 double]&lt;br /&gt;
       dof: [147x271 double]&lt;br /&gt;
     label: {147x1 cell}&lt;br /&gt;
    dimord: 'chan_time'&lt;br /&gt;
      grad: [1x1 struct]&lt;br /&gt;
       cfg: [1x1 struct]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/tt&amp;gt;&lt;br /&gt;
In order to create a data file from that structure one needs the function &amp;lt;tt&amp;gt;besa_save2Avr&amp;lt;/tt&amp;gt; which can be found in the FieldTrip installation in the folder &amp;lt;tt&amp;gt;external\besa&amp;lt;/tt&amp;gt; or can be downloaded directly from [ftp://h1772544.stratoserver.net/public/Matlab/MATLAB2BESA.zip BESA’s ftp-server]. Just unpack the archive and add the path to the Matlab path (e.g. &amp;lt;tt&amp;gt;addpath(‘D:\Path\to\MATLAB2BESA’)&amp;lt;/tt&amp;gt;).&lt;br /&gt;
Use the function like this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
status = besa_save2Avr(cfg.datapath, DataFile, data_matrix, ...&lt;br /&gt;
        time_samples, channel_labels, data_scale_factor, time_scale_factor);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Generating the channel file (*.elp) ==&lt;br /&gt;
This file contains the channel type, the channel labels and the spherical coordinates of the channels. It can be created using the function &amp;lt;tt&amp;gt;besa_save2Elp&amp;lt;/tt&amp;gt; again from the package &amp;lt;tt&amp;gt;MATLAB2BESA&amp;lt;/tt&amp;gt;. Use the function like this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
status = besa_save2Elp(cfg.datapath, ElpFile, ...&lt;br /&gt;
        SphericalCoords, channel_labels, channel_type);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
== Creating the BESA Plot control file ==&lt;br /&gt;
This is the actual plotting script. It follows the syntax of a scripting language defined in BESA Plot. For more details about the scripting language please refer to the program help. For this file format there is no writer function, since it can contain different scripts for different visualization scenarios. One possible script for plotting two dipoles in a schematic head could look like this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
set color=black&lt;br /&gt;
set size=16&lt;br /&gt;
set dipole number=1 xloc=0.65 yloc=0.16 zloc=0.29 xori=0.15 yori=-0.73 zori=-0.67 color=blue length=0.1 diameter=0.05&lt;br /&gt;
set dipole number=2 xloc=-0.65 yloc=0.16 zloc=0.29 xori=-0.17 yori=-0.57 zori=-0.81 color=blue length=0.1 diameter=0.05&lt;br /&gt;
head width=35 height=40 viewpoint=top brain=on x=20.0 y=75.0&lt;br /&gt;
head width=35 height=40 viewpoint=back brain=on x=20.0 y=30.0&lt;br /&gt;
head width=35 height=40 viewpoint=left brain=on x=77.0 y=77.0&lt;br /&gt;
set dataset=1&lt;br /&gt;
set mapuV=18&lt;br /&gt;
set mapcolor negative=blue positive=red electrode=none&lt;br /&gt;
set mapsize=35&lt;br /&gt;
set maptype=amplitude&lt;br /&gt;
set maplambda=1E-5&lt;br /&gt;
set mapviewpoint=top&lt;br /&gt;
set maprange maximumuV=461 minimumuV=-419 zerouV=0.0 contours=on&lt;br /&gt;
map latency=110.6 end=150.4 step=20 mean=on label=on x=77.0 y=30.0&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
The result after running the script is shown in Figure 1.&lt;br /&gt;
[[File:DipoleFitResults.png|thumb|500px|Figure 1 Dipole fitting results visualized with BESA Plot]]&lt;br /&gt;
[[File:AverageResults.png|thumb|500px|Figure 2 Visualization of sensor level data with BESA Plot]]&lt;br /&gt;
== Creating the dataset file ==&lt;br /&gt;
The dataset file contains basic information about the data in the data file. It is not essential for the visualization process, however, if it is missing, the program asks the user additional questions about the settings before generating the image. The dataset file can be created with the function &amp;lt;tt&amp;gt;besa_save2Dataset&amp;lt;/tt&amp;gt; which also in the package &amp;lt;tt&amp;gt;MATLAB2BESA&amp;lt;/tt&amp;gt;. Use the function like this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
status = besa_save2Dataset(DatasetPath, DataFile, ...&lt;br /&gt;
    ElpFile, ControlFile, NumChannels, NumTimeSamples, ...&lt;br /&gt;
    SamplingInterval, FirstTimeSample);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
== Starting BESA Plot with command line arguments ==&lt;br /&gt;
After the generation of the input files one can start BESA Plot with these files as input in order to visualize data. The syntax of the call is:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;BesaPlot &amp;lt;data_file_name&amp;gt; &amp;lt;control_file_name&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Example:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;dos&amp;quot;&amp;gt;&lt;br /&gt;
start /b cmd /c &amp;quot;C:\Program Files (x86)\BESA\Plot\BesaPlot.exe&amp;quot; &lt;br /&gt;
    M:\QM\BesaPlot\erf1.avr M:\QM\BesaPlot\erf1.bpctrl&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Please note that &amp;lt;tt&amp;gt;start /b cmd /c&amp;lt;/tt&amp;gt; is used to start the program in background.&lt;br /&gt;
== Predefined plotting functions for data from FieldTrip ==&lt;br /&gt;
There are two functions available in the package &amp;lt;tt&amp;gt;MATLAB2BESA&amp;lt;/tt&amp;gt; (and also in FieldTrip in the folder &amp;lt;tt&amp;gt;external\besa&amp;lt;/tt&amp;gt;) which can be used to plot directly data from FieldTrip with BESA Plot. These functions are &amp;lt;tt&amp;gt;besa_plotFtSensorLevelMaps&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;besa_plotFtDipoleResults&amp;lt;/tt&amp;gt;. The first one can be used to plot sensor level MEEG data generated by &amp;lt;tt&amp;gt;ft_timelockanalysis&amp;lt;/tt&amp;gt; and the second one for dipole fit data resulted from &amp;lt;tt&amp;gt;ft_dipolefitting&amp;lt;/tt&amp;gt;. The image gained with the function &amp;lt;tt&amp;gt;besa_plotFtSensorLevelMaps&amp;lt;/tt&amp;gt; is shown in Figure 2 and the one generated with the function &amp;lt;tt&amp;gt;ft_dipolefitting&amp;lt;/tt&amp;gt; is shown in Figure 1.&lt;br /&gt;
The functions can be called like this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
cfg = [];&lt;br /&gt;
cfg.badchannels = 1;  % number of bad channels&lt;br /&gt;
cfg.latency = [0.000 0.250]; % interval of interest in seconds&lt;br /&gt;
cfg.timestep = 0.020; % time interval between two plots&lt;br /&gt;
% path to BESA Plot&lt;br /&gt;
cfg.besaplot = '&amp;quot;C:\Program Files (x86)\BESA\Plot\BesaPlot.exe&amp;quot;';&lt;br /&gt;
cfg.filebasename = 'erf1'; % basename for the generated files&lt;br /&gt;
% folder where to save the generated files&lt;br /&gt;
cfg.datapath = 'D:\Data\BesaPlot';&lt;br /&gt;
&lt;br /&gt;
status = besa_plotFtSensorLevelMaps(cfg, data_avg);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
cfg = [];&lt;br /&gt;
cfg.badchannels = 1; % number of bad channels&lt;br /&gt;
cfg.besaplot = '&amp;quot;C:\Program Files (x86)\BESA\Plot\BesaPlot.exe&amp;quot;'; % path to BESA Plot&lt;br /&gt;
cfg.filebasename = 'megdatafile'; % basename for the generated files&lt;br /&gt;
cfg.datapath = 'D:\Data\BesaPlot'; % folder where to save the generated files&lt;br /&gt;
&lt;br /&gt;
status = besa_plotFtDipoleResults(cfg, data_avg, dipole_source);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Please note that there are two possible ways to customize the plots:&lt;br /&gt;
# Change the section '''Write the control file''' in the plotting functions &amp;lt;tt&amp;gt;besa_plotFtSensorLevelMaps&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;besa_plotFtDipoleResults&amp;lt;/tt&amp;gt;.&lt;br /&gt;
## After the plots were created use BESA Plot to change the images.&lt;br /&gt;
For more information about which visualization possibilities are available in BESA Plot please read the program help or check the [http://www.besa.de/downloads/besa-plot/ feature list].&lt;/div&gt;</summary>
		<author><name>Todor</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Visualization_with_BESA_Plot_in_FieldTrip</id>
		<title>Visualization with BESA Plot in FieldTrip</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Visualization_with_BESA_Plot_in_FieldTrip"/>
				<updated>2016-07-07T12:18:41Z</updated>
		
		<summary type="html">&lt;p&gt;Todor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[http://www.besa.de/downloads/besa-plot/ BESA Plot] is a free tool created by [https://www.psychologie.uni-konstanz.de/forschung/clinicalpsychology/mitarbeiter/mitarbeiter-detailseite/berg-patrick-22/7347/7149/ Patrick Berg] ([http://www.besa.de/ BESA GmbH]) for visualization of MEEG data. Initially it was meant to be complementary visualization tool to [http://www.besa.de/products/besa-research/besa-research-overview/ BESA Research], however, it could be used in more general context. In this document we demonstrate the possibility of using BESA Plot as a visualization tool in the [https://www.mathworks.com/ Matlab] based open source package for MEEG data analysis [http://www.fieldtriptoolbox.org/ FieldTrip].&lt;br /&gt;
&lt;br /&gt;
Since BESA Plot can be started with command line arguments, it can be called directly from Matlab and the required input parameters (e.g. data file, settings and plotting modalities) can be committed as such arguments. There are four files necessary for starting BESA Plot from Matlab and visualizing the corresponding data: 1) a data file (e.g. test1.avr), 2) a file containing the channel labels and coordinates (e.g. test1.elp), 3) a control file containing the plotting commands for BESA Plot (e.g. test1.bpctrl) and 4) a dataset file containing general information about the data file (e.g. test1.avr.dataset). These files should be generated dynamically in Matlab in order to be able to plot the Matlab data in BESA Plot.&lt;br /&gt;
&lt;br /&gt;
== Generating the data file ==&lt;br /&gt;
First of all we need the data which are going to be saved as an avr-file. This is usually a Matlab structure generated  in FieldTrip with the function &amp;lt;tt&amp;gt;ft_timelockanalysis&amp;lt;/tt&amp;gt;. Its general form is something like this:&lt;br /&gt;
&amp;lt;tt&amp;gt;&lt;br /&gt;
       avg: [147x271 double]&lt;br /&gt;
       var: [147x271 double]&lt;br /&gt;
      time: [1x271 double]&lt;br /&gt;
       dof: [147x271 double]&lt;br /&gt;
     label: {147x1 cell}&lt;br /&gt;
    dimord: 'chan_time'&lt;br /&gt;
      grad: [1x1 struct]&lt;br /&gt;
       cfg: [1x1 struct]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/tt&amp;gt;&lt;br /&gt;
In order to create a data file from that structure one needs the function &amp;lt;tt&amp;gt;besa_save2Avr&amp;lt;/tt&amp;gt; which can be found in the FieldTrip installation in the folder &amp;lt;tt&amp;gt;external\besa&amp;lt;/tt&amp;gt; or can be downloaded directly from [ftp://h1772544.stratoserver.net/public/Matlab/MATLAB2BESA.zip BESA’s ftp-server]. Just unpack the archive and add the path to the Matlab path (e.g. &amp;lt;tt&amp;gt;addpath(‘D:\Path\to\MATLAB2BESA’)&amp;lt;/tt&amp;gt;).&lt;br /&gt;
Use the function like this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
status = besa_save2Avr(cfg.datapath, DataFile, data_matrix, ...&lt;br /&gt;
        time_samples, channel_labels, data_scale_factor, time_scale_factor);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Generating the channel file (*.elp) ==&lt;br /&gt;
This file contains the channel type, the channel labels and the spherical coordinates of the channels. It can be created using the function &amp;lt;tt&amp;gt;besa_save2Elp&amp;lt;/tt&amp;gt; again from the package &amp;lt;tt&amp;gt;MATLAB2BESA&amp;lt;/tt&amp;gt;. Use the function like this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
status = besa_save2Elp(cfg.datapath, ElpFile, ...&lt;br /&gt;
        SphericalCoords, channel_labels, channel_type);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
== Creating the BESA Plot control file ==&lt;br /&gt;
This is the actual plotting script. It follows the syntax of a scripting language defined in BESA Plot. For more details about the scripting language please refer to the program help. For this file format there is no writer function, since it can contain different scripts for different visualization scenarios. One possible script for plotting two dipoles in a schematic head could look like this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
set color=black&lt;br /&gt;
set size=16&lt;br /&gt;
set dipole number=1 xloc=0.65 yloc=0.16 zloc=0.29 xori=0.15 yori=-0.73 zori=-0.67 color=blue length=0.1 diameter=0.05&lt;br /&gt;
set dipole number=2 xloc=-0.65 yloc=0.16 zloc=0.29 xori=-0.17 yori=-0.57 zori=-0.81 color=blue length=0.1 diameter=0.05&lt;br /&gt;
head width=35 height=40 viewpoint=top brain=on x=20.0 y=75.0&lt;br /&gt;
head width=35 height=40 viewpoint=back brain=on x=20.0 y=30.0&lt;br /&gt;
head width=35 height=40 viewpoint=left brain=on x=77.0 y=77.0&lt;br /&gt;
set dataset=1&lt;br /&gt;
set mapuV=18&lt;br /&gt;
set mapcolor negative=blue positive=red electrode=none&lt;br /&gt;
set mapsize=35&lt;br /&gt;
set maptype=amplitude&lt;br /&gt;
set maplambda=1E-5&lt;br /&gt;
set mapviewpoint=top&lt;br /&gt;
set maprange maximumuV=461 minimumuV=-419 zerouV=0.0 contours=on&lt;br /&gt;
map latency=110.6 end=150.4 step=20 mean=on label=on x=77.0 y=30.0&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
The result after running the script is shown in Figure 1.&lt;br /&gt;
[[File:DipoleFitResults.png|thumb|500px|Figure 1 Dipole fitting results visualized with BESA Plot]]&lt;br /&gt;
[[File:AverageResults.png|thumb|500px|Figure 2 Visualization of sensor level data with BESA Plot]]&lt;br /&gt;
== Creating the dataset file ==&lt;br /&gt;
The dataset file contains basic information about the data in the data file. It is not essential for the visualization process, however, if it is missing, the program asks the user additional questions about the settings before generating the image. The dataset file can be created with the function &amp;lt;tt&amp;gt;besa_save2Dataset&amp;lt;/tt&amp;gt; which also in the package &amp;lt;tt&amp;gt;MATLAB2BESA&amp;lt;/tt&amp;gt;. Use the function like this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
status = besa_save2Dataset(DatasetPath, DataFile, ...&lt;br /&gt;
    ElpFile, ControlFile, NumChannels, NumTimeSamples, ...&lt;br /&gt;
    SamplingInterval, FirstTimeSample);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
== Starting BESA Plot with command line arguments ==&lt;br /&gt;
After the generation of the input files one can start BESA Plot with these files as input in order to visualize data. The syntax of the call is:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;BesaPlot &amp;lt;data_file_name&amp;gt; &amp;lt;control_file_name&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Example:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;dos&amp;quot;&amp;gt;&lt;br /&gt;
start /b cmd /c &amp;quot;C:\Program Files (x86)\BESA\Plot\BesaPlot.exe&amp;quot; &lt;br /&gt;
    M:\QM\BesaPlot\erf1.avr M:\QM\BesaPlot\erf1.bpctrl&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Please note that &amp;lt;tt&amp;gt;start /b cmd /c&amp;lt;/tt&amp;gt; is used to start the program in background.&lt;br /&gt;
== Predefined plotting functions for data from FieldTrip ==&lt;br /&gt;
There are two functions available in the package &amp;lt;tt&amp;gt;MATLAB2BESA&amp;lt;/tt&amp;gt; (and also in FieldTrip in the folder &amp;lt;tt&amp;gt;external\besa&amp;lt;/tt&amp;gt;) which can be used to plot directly data from FieldTrip with BESA Plot. These functions are &amp;lt;tt&amp;gt;besa_plotFtSensorLevelMaps&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;besa_plotFtDipoleResults&amp;lt;/tt&amp;gt;. The first one can be used to plot sensor level MEEG data generated by &amp;lt;tt&amp;gt;ft_timelockanalysis&amp;lt;/tt&amp;gt; and the second one for dipole fit data resulted from &amp;lt;tt&amp;gt;ft_dipolefitting&amp;lt;/tt&amp;gt;. The image gained with the function &amp;lt;tt&amp;gt;besa_plotFtSensorLevelMaps&amp;lt;/tt&amp;gt; is shown in Figure 2 and the one generated with the function &amp;lt;tt&amp;gt;ft_dipolefitting&amp;lt;/tt&amp;gt; is shown in Figure 1.&lt;br /&gt;
The functions can be called like this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
cfg = [];&lt;br /&gt;
cfg.badchannels = 1;  % number of bad channels&lt;br /&gt;
cfg.latency = [0.000 0.250]; % interval of interest in seconds&lt;br /&gt;
cfg.timestep = 0.020; % time interval between two plots&lt;br /&gt;
cfg.besaplot = '&amp;quot;C:\Program Files (x86)\BESA\Plot\BesaPlot.exe&amp;quot;'; % path to BESA Plot&lt;br /&gt;
cfg.filebasename = 'erf1'; % basename for the generated files&lt;br /&gt;
cfg.datapath = 'D:\Data\BesaPlot'; % folder where to save the generated files&lt;br /&gt;
&lt;br /&gt;
status = besa_plotFtSensorLevelMaps(cfg, data_avg);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
and&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
cfg = [];&lt;br /&gt;
cfg.badchannels = 1; % number of bad channels&lt;br /&gt;
cfg.besaplot = '&amp;quot;C:\Program Files (x86)\BESA\Plot\BesaPlot.exe&amp;quot;'; % path to BESA Plot&lt;br /&gt;
cfg.filebasename = 'megdatafile'; % basename for the generated files&lt;br /&gt;
cfg.datapath = 'D:\Data\BesaPlot'; % folder where to save the generated files&lt;br /&gt;
&lt;br /&gt;
status = besa_plotFtDipoleResults(cfg, data_avg, dipole_source);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Todor</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Visualization_with_BESA_Plot_in_FieldTrip</id>
		<title>Visualization with BESA Plot in FieldTrip</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Visualization_with_BESA_Plot_in_FieldTrip"/>
				<updated>2016-07-07T12:17:24Z</updated>
		
		<summary type="html">&lt;p&gt;Todor: /* Predefined plotting functions for data from FieldTrip */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[http://www.besa.de/downloads/besa-plot/ BESA Plot] is a free tool created by [https://www.psychologie.uni-konstanz.de/forschung/clinicalpsychology/mitarbeiter/mitarbeiter-detailseite/berg-patrick-22/7347/7149/ Patrick Berg] ([http://www.besa.de/ BESA GmbH]) for visualization of MEEG data. Initially it was meant to be complementary visualization tool to [http://www.besa.de/products/besa-research/besa-research-overview/ BESA Research], however, it could be used in more general context. In this document we demonstrate the possibility of using BESA Plot as a visualization tool in the [https://www.mathworks.com/ Matlab] based open source package for MEEG data analysis [http://www.fieldtriptoolbox.org/ FieldTrip].&lt;br /&gt;
&lt;br /&gt;
Since BESA Plot can be started with command line arguments, it can be called directly from Matlab and the required input parameters (e.g. data file, settings and plotting modalities) can be committed as such arguments. There are four files necessary for starting BESA Plot from Matlab and visualizing the corresponding data: 1) a data file (e.g. test1.avr), 2) a file containing the channel labels and coordinates (e.g. test1.elp), 3) a control file containing the plotting commands for BESA Plot (e.g. test1.bpctrl) and 4) a dataset file containing general information about the data file (e.g. test1.avr.dataset). These files should be generated dynamically in Matlab in order to be able to plot the Matlab data in BESA Plot.&lt;br /&gt;
&lt;br /&gt;
== Generating the data file ==&lt;br /&gt;
First of all we need the data which are going to be saved as an avr-file. This is usually a Matlab structure generated  in FieldTrip with the function &amp;lt;tt&amp;gt;ft_timelockanalysis&amp;lt;/tt&amp;gt;. Its general form is something like this:&lt;br /&gt;
&amp;lt;tt&amp;gt;&lt;br /&gt;
       avg: [147x271 double]&lt;br /&gt;
       var: [147x271 double]&lt;br /&gt;
      time: [1x271 double]&lt;br /&gt;
       dof: [147x271 double]&lt;br /&gt;
     label: {147x1 cell}&lt;br /&gt;
    dimord: 'chan_time'&lt;br /&gt;
      grad: [1x1 struct]&lt;br /&gt;
       cfg: [1x1 struct]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/tt&amp;gt;&lt;br /&gt;
In order to create a data file from that structure one needs the function &amp;lt;tt&amp;gt;besa_save2Avr&amp;lt;/tt&amp;gt; which can be found in the FieldTrip installation in the folder &amp;lt;tt&amp;gt;external\besa&amp;lt;/tt&amp;gt; or can be downloaded directly from [ftp://h1772544.stratoserver.net/public/Matlab/MATLAB2BESA.zip BESA’s ftp-server]. Just unpack the archive and add the path to the Matlab path (e.g. &amp;lt;tt&amp;gt;addpath(‘D:\Path\to\MATLAB2BESA’)&amp;lt;/tt&amp;gt;).&lt;br /&gt;
Use the function like this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
status = besa_save2Avr(cfg.datapath, DataFile, data_matrix, ...&lt;br /&gt;
        time_samples, channel_labels, data_scale_factor, time_scale_factor);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Generating the channel file (*.elp) ==&lt;br /&gt;
This file contains the channel type, the channel labels and the spherical coordinates of the channels. It can be created using the function &amp;lt;tt&amp;gt;besa_save2Elp&amp;lt;/tt&amp;gt; again from the package &amp;lt;tt&amp;gt;MATLAB2BESA&amp;lt;/tt&amp;gt;. Use the function like this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
status = besa_save2Elp(cfg.datapath, ElpFile, ...&lt;br /&gt;
        SphericalCoords, channel_labels, channel_type);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
== Creating the BESA Plot control file ==&lt;br /&gt;
This is the actual plotting script. It follows the syntax of a scripting language defined in BESA Plot. For more details about the scripting language please refer to the program help. For this file format there is no writer function, since it can contain different scripts for different visualization scenarios. One possible script for plotting two dipoles in a schematic head could look like this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
set color=black&lt;br /&gt;
set size=16&lt;br /&gt;
set dipole number=1 xloc=0.65 yloc=0.16 zloc=0.29 xori=0.15 yori=-0.73 zori=-0.67 color=blue length=0.1 diameter=0.05&lt;br /&gt;
set dipole number=2 xloc=-0.65 yloc=0.16 zloc=0.29 xori=-0.17 yori=-0.57 zori=-0.81 color=blue length=0.1 diameter=0.05&lt;br /&gt;
head width=35 height=40 viewpoint=top brain=on x=20.0 y=75.0&lt;br /&gt;
head width=35 height=40 viewpoint=back brain=on x=20.0 y=30.0&lt;br /&gt;
head width=35 height=40 viewpoint=left brain=on x=77.0 y=77.0&lt;br /&gt;
set dataset=1&lt;br /&gt;
set mapuV=18&lt;br /&gt;
set mapcolor negative=blue positive=red electrode=none&lt;br /&gt;
set mapsize=35&lt;br /&gt;
set maptype=amplitude&lt;br /&gt;
set maplambda=1E-5&lt;br /&gt;
set mapviewpoint=top&lt;br /&gt;
set maprange maximumuV=461 minimumuV=-419 zerouV=0.0 contours=on&lt;br /&gt;
map latency=110.6 end=150.4 step=20 mean=on label=on x=77.0 y=30.0&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
The result after running the script is shown in Figure 1.&lt;br /&gt;
[[File:DipoleFitResults.png|thumb|500px|Figure 1 Dipole fitting results visualized with BESA Plot]]&lt;br /&gt;
[[File:AverageResults.png|thumb|500px|Figure 2 Visualization of sensor level data with BESA Plot]]&lt;br /&gt;
== Creating the dataset file ==&lt;br /&gt;
The dataset file contains basic information about the data in the data file. It is not essential for the visualization process, however, if it is missing, the program asks the user additional questions about the settings before generating the image. The dataset file can be created with the function &amp;lt;tt&amp;gt;besa_save2Dataset&amp;lt;/tt&amp;gt; which also in the package &amp;lt;tt&amp;gt;MATLAB2BESA&amp;lt;/tt&amp;gt;. Use the function like this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
status = besa_save2Dataset(DatasetPath, DataFile, ...&lt;br /&gt;
    ElpFile, ControlFile, NumChannels, NumTimeSamples, ...&lt;br /&gt;
    SamplingInterval, FirstTimeSample);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
== Starting BESA Plot with command line arguments ==&lt;br /&gt;
After the generation of the input files one can start BESA Plot with these files as input in order to visualize data. The syntax of the call is:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;BesaPlot &amp;lt;data_file_name&amp;gt; &amp;lt;control_file_name&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Example:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;dos&amp;quot;&amp;gt;&lt;br /&gt;
start /b cmd /c &amp;quot;C:\Program Files (x86)\BESA\Plot\BesaPlot.exe&amp;quot; &lt;br /&gt;
    M:\QM\BesaPlot\erf1.avr M:\QM\BesaPlot\erf1.bpctrl&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Please note that &amp;lt;tt&amp;gt;start /b cmd /c&amp;lt;/tt&amp;gt; is used to start the program in background.&lt;br /&gt;
== Predefined plotting functions for data from FieldTrip ==&lt;br /&gt;
There are two functions available in the package &amp;lt;tt&amp;gt;MATLAB2BESA&amp;lt;/tt&amp;gt; (and also in FieldTrip in the folder &amp;lt;tt&amp;gt;external\besa&amp;lt;/tt&amp;gt;) which can be used to plot directly data from FieldTrip with BESA Plot. These functions are &amp;lt;tt&amp;gt;besa_plotFtSensorLevelMaps&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;besa_plotFtDipoleResults&amp;lt;/tt&amp;gt;. The first one can be used to plot sensor level MEEG data generated by &amp;lt;tt&amp;gt;ft_timelockanalysis&amp;lt;/tt&amp;gt; and the second one for dipole fit data resulted from &amp;lt;tt&amp;gt;ft_dipolefitting&amp;lt;/tt&amp;gt;. The image gained with the function &amp;lt;tt&amp;gt;besa_plotFtSensorLevelMaps&amp;lt;/tt&amp;gt; is shown in Figure 2 and the one generated with the function &amp;lt;tt&amp;gt;ft_dipolefitting&amp;lt;/tt&amp;gt; is shown in Figure 1.&lt;br /&gt;
The functions can be called like this:&lt;/div&gt;</summary>
		<author><name>Todor</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Visualization_with_BESA_Plot_in_FieldTrip</id>
		<title>Visualization with BESA Plot in FieldTrip</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Visualization_with_BESA_Plot_in_FieldTrip"/>
				<updated>2016-07-07T12:16:34Z</updated>
		
		<summary type="html">&lt;p&gt;Todor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[http://www.besa.de/downloads/besa-plot/ BESA Plot] is a free tool created by [https://www.psychologie.uni-konstanz.de/forschung/clinicalpsychology/mitarbeiter/mitarbeiter-detailseite/berg-patrick-22/7347/7149/ Patrick Berg] ([http://www.besa.de/ BESA GmbH]) for visualization of MEEG data. Initially it was meant to be complementary visualization tool to [http://www.besa.de/products/besa-research/besa-research-overview/ BESA Research], however, it could be used in more general context. In this document we demonstrate the possibility of using BESA Plot as a visualization tool in the [https://www.mathworks.com/ Matlab] based open source package for MEEG data analysis [http://www.fieldtriptoolbox.org/ FieldTrip].&lt;br /&gt;
&lt;br /&gt;
Since BESA Plot can be started with command line arguments, it can be called directly from Matlab and the required input parameters (e.g. data file, settings and plotting modalities) can be committed as such arguments. There are four files necessary for starting BESA Plot from Matlab and visualizing the corresponding data: 1) a data file (e.g. test1.avr), 2) a file containing the channel labels and coordinates (e.g. test1.elp), 3) a control file containing the plotting commands for BESA Plot (e.g. test1.bpctrl) and 4) a dataset file containing general information about the data file (e.g. test1.avr.dataset). These files should be generated dynamically in Matlab in order to be able to plot the Matlab data in BESA Plot.&lt;br /&gt;
&lt;br /&gt;
== Generating the data file ==&lt;br /&gt;
First of all we need the data which are going to be saved as an avr-file. This is usually a Matlab structure generated  in FieldTrip with the function &amp;lt;tt&amp;gt;ft_timelockanalysis&amp;lt;/tt&amp;gt;. Its general form is something like this:&lt;br /&gt;
&amp;lt;tt&amp;gt;&lt;br /&gt;
       avg: [147x271 double]&lt;br /&gt;
       var: [147x271 double]&lt;br /&gt;
      time: [1x271 double]&lt;br /&gt;
       dof: [147x271 double]&lt;br /&gt;
     label: {147x1 cell}&lt;br /&gt;
    dimord: 'chan_time'&lt;br /&gt;
      grad: [1x1 struct]&lt;br /&gt;
       cfg: [1x1 struct]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/tt&amp;gt;&lt;br /&gt;
In order to create a data file from that structure one needs the function &amp;lt;tt&amp;gt;besa_save2Avr&amp;lt;/tt&amp;gt; which can be found in the FieldTrip installation in the folder &amp;lt;tt&amp;gt;external\besa&amp;lt;/tt&amp;gt; or can be downloaded directly from [ftp://h1772544.stratoserver.net/public/Matlab/MATLAB2BESA.zip BESA’s ftp-server]. Just unpack the archive and add the path to the Matlab path (e.g. &amp;lt;tt&amp;gt;addpath(‘D:\Path\to\MATLAB2BESA’)&amp;lt;/tt&amp;gt;).&lt;br /&gt;
Use the function like this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
status = besa_save2Avr(cfg.datapath, DataFile, data_matrix, ...&lt;br /&gt;
        time_samples, channel_labels, data_scale_factor, time_scale_factor);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Generating the channel file (*.elp) ==&lt;br /&gt;
This file contains the channel type, the channel labels and the spherical coordinates of the channels. It can be created using the function &amp;lt;tt&amp;gt;besa_save2Elp&amp;lt;/tt&amp;gt; again from the package &amp;lt;tt&amp;gt;MATLAB2BESA&amp;lt;/tt&amp;gt;. Use the function like this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
status = besa_save2Elp(cfg.datapath, ElpFile, ...&lt;br /&gt;
        SphericalCoords, channel_labels, channel_type);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
== Creating the BESA Plot control file ==&lt;br /&gt;
This is the actual plotting script. It follows the syntax of a scripting language defined in BESA Plot. For more details about the scripting language please refer to the program help. For this file format there is no writer function, since it can contain different scripts for different visualization scenarios. One possible script for plotting two dipoles in a schematic head could look like this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
set color=black&lt;br /&gt;
set size=16&lt;br /&gt;
set dipole number=1 xloc=0.65 yloc=0.16 zloc=0.29 xori=0.15 yori=-0.73 zori=-0.67 color=blue length=0.1 diameter=0.05&lt;br /&gt;
set dipole number=2 xloc=-0.65 yloc=0.16 zloc=0.29 xori=-0.17 yori=-0.57 zori=-0.81 color=blue length=0.1 diameter=0.05&lt;br /&gt;
head width=35 height=40 viewpoint=top brain=on x=20.0 y=75.0&lt;br /&gt;
head width=35 height=40 viewpoint=back brain=on x=20.0 y=30.0&lt;br /&gt;
head width=35 height=40 viewpoint=left brain=on x=77.0 y=77.0&lt;br /&gt;
set dataset=1&lt;br /&gt;
set mapuV=18&lt;br /&gt;
set mapcolor negative=blue positive=red electrode=none&lt;br /&gt;
set mapsize=35&lt;br /&gt;
set maptype=amplitude&lt;br /&gt;
set maplambda=1E-5&lt;br /&gt;
set mapviewpoint=top&lt;br /&gt;
set maprange maximumuV=461 minimumuV=-419 zerouV=0.0 contours=on&lt;br /&gt;
map latency=110.6 end=150.4 step=20 mean=on label=on x=77.0 y=30.0&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
The result after running the script is shown in Figure 1.&lt;br /&gt;
[[File:DipoleFitResults.png|thumb|500px|Figure 1 Dipole fitting results visualized with BESA Plot]]&lt;br /&gt;
[[File:AverageResults.png|thumb|500px|Figure 2 Visualization of sensor level data with BESA Plot]]&lt;br /&gt;
== Creating the dataset file ==&lt;br /&gt;
The dataset file contains basic information about the data in the data file. It is not essential for the visualization process, however, if it is missing, the program asks the user additional questions about the settings before generating the image. The dataset file can be created with the function &amp;lt;tt&amp;gt;besa_save2Dataset&amp;lt;/tt&amp;gt; which also in the package &amp;lt;tt&amp;gt;MATLAB2BESA&amp;lt;/tt&amp;gt;. Use the function like this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
status = besa_save2Dataset(DatasetPath, DataFile, ...&lt;br /&gt;
    ElpFile, ControlFile, NumChannels, NumTimeSamples, ...&lt;br /&gt;
    SamplingInterval, FirstTimeSample);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
== Starting BESA Plot with command line arguments ==&lt;br /&gt;
After the generation of the input files one can start BESA Plot with these files as input in order to visualize data. The syntax of the call is:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;BesaPlot &amp;lt;data_file_name&amp;gt; &amp;lt;control_file_name&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Example:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;dos&amp;quot;&amp;gt;&lt;br /&gt;
start /b cmd /c &amp;quot;C:\Program Files (x86)\BESA\Plot\BesaPlot.exe&amp;quot; &lt;br /&gt;
    M:\QM\BesaPlot\erf1.avr M:\QM\BesaPlot\erf1.bpctrl&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Please note that &amp;lt;tt&amp;gt;start /b cmd /c&amp;lt;/tt&amp;gt; is used to start the program in background.&lt;br /&gt;
== Predefined plotting functions for data from FieldTrip ==&lt;br /&gt;
There are two functions available in the package &amp;lt;tt&amp;gt;MATLAB2BESA&amp;lt;/tt&amp;gt; (and also in FieldTrip in the folder &amp;lt;tt&amp;gt;external\besa&amp;lt;/tt&amp;gt;) which can be used to plot directly data from FieldTrip with BESA Plot. These functions are &amp;lt;tt&amp;gt;besa_plotFtSensorLevelMaps&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;besa_plotFtDipoleResults&amp;lt;/tt&amp;gt;. The first one can be used to plot sensor level MEEG data generated by &amp;lt;tt&amp;gt;ft_timelockanalysis&amp;lt;/tt&amp;gt; and the second one for dipole fit data resulted from &amp;lt;tt&amp;gt;ft_dipolefitting&amp;lt;/tt&amp;gt;. The image gained with the function &amp;lt;tt&amp;gt;besa_plotFtSensorLevelMaps&amp;lt;/tt&amp;gt; is shown in Figure 2 and the one generated with the function &amp;lt;tt&amp;gt;ft_dipolefitting&amp;lt;/tt&amp;gt; is shown in Figure 1.&lt;/div&gt;</summary>
		<author><name>Todor</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Visualization_with_BESA_Plot_in_FieldTrip</id>
		<title>Visualization with BESA Plot in FieldTrip</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Visualization_with_BESA_Plot_in_FieldTrip"/>
				<updated>2016-07-07T12:13:45Z</updated>
		
		<summary type="html">&lt;p&gt;Todor: /* Starting BESA Plot with command line arguments */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[http://www.besa.de/downloads/besa-plot/ BESA Plot] is a free tool created by [https://www.psychologie.uni-konstanz.de/forschung/clinicalpsychology/mitarbeiter/mitarbeiter-detailseite/berg-patrick-22/7347/7149/ Patrick Berg] ([http://www.besa.de/ BESA GmbH]) for visualization of MEEG data. Initially it was meant to be complementary visualization tool to [http://www.besa.de/products/besa-research/besa-research-overview/ BESA Research], however, it could be used in more general context. In this document we demonstrate the possibility of using BESA Plot as a visualization tool in the [https://www.mathworks.com/ Matlab] based open source package for MEEG data analysis [http://www.fieldtriptoolbox.org/ FieldTrip].&lt;br /&gt;
&lt;br /&gt;
Since BESA Plot can be started with command line arguments, it can be called directly from Matlab and the required input parameters (e.g. data file, settings and plotting modalities) can be committed as such arguments. There are four files necessary for starting BESA Plot from Matlab and visualizing the corresponding data: 1) a data file (e.g. test1.avr), 2) a file containing the channel labels and coordinates (e.g. test1.elp), 3) a control file containing the plotting commands for BESA Plot (e.g. test1.bpctrl) and 4) a dataset file containing general information about the data file (e.g. test1.avr.dataset). These files should be generated dynamically in Matlab in order to be able to plot the Matlab data in BESA Plot.&lt;br /&gt;
&lt;br /&gt;
== Generating the data file ==&lt;br /&gt;
First of all we need the data which are going to be saved as an avr-file. This is usually a Matlab structure generated  in FieldTrip with the function &amp;lt;tt&amp;gt;ft_timelockanalysis&amp;lt;/tt&amp;gt;. Its general form is something like this:&lt;br /&gt;
&amp;lt;tt&amp;gt;&lt;br /&gt;
       avg: [147x271 double]&lt;br /&gt;
       var: [147x271 double]&lt;br /&gt;
      time: [1x271 double]&lt;br /&gt;
       dof: [147x271 double]&lt;br /&gt;
     label: {147x1 cell}&lt;br /&gt;
    dimord: 'chan_time'&lt;br /&gt;
      grad: [1x1 struct]&lt;br /&gt;
       cfg: [1x1 struct]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/tt&amp;gt;&lt;br /&gt;
In order to create a data file from that structure one needs the function &amp;lt;tt&amp;gt;besa_save2Avr&amp;lt;/tt&amp;gt; which can be found in the FieldTrip installation in the folder &amp;lt;tt&amp;gt;external\besa&amp;lt;/tt&amp;gt; or can be downloaded directly from [ftp://h1772544.stratoserver.net/public/Matlab/MATLAB2BESA.zip BESA’s ftp-server]. Just unpack the archive and add the path to the Matlab path (e.g. &amp;lt;tt&amp;gt;addpath(‘D:\Path\to\MATLAB2BESA’)&amp;lt;/tt&amp;gt;).&lt;br /&gt;
Use the function like this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
status = besa_save2Avr(cfg.datapath, DataFile, data_matrix, ...&lt;br /&gt;
        time_samples, channel_labels, data_scale_factor, time_scale_factor);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Generating the channel file (*.elp) ==&lt;br /&gt;
This file contains the channel type, the channel labels and the spherical coordinates of the channels. It can be created using the function &amp;lt;tt&amp;gt;besa_save2Elp&amp;lt;/tt&amp;gt; again from the package &amp;lt;tt&amp;gt;MATLAB2BESA&amp;lt;/tt&amp;gt;. Use the function like this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
status = besa_save2Elp(cfg.datapath, ElpFile, ...&lt;br /&gt;
        SphericalCoords, channel_labels, channel_type);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
== Creating the BESA Plot control file ==&lt;br /&gt;
This is the actual plotting script. It follows the syntax of a scripting language defined in BESA Plot. For more details about the scripting language please refer to the program help. For this file format there is no writer function, since it can contain different scripts for different visualization scenarios. One possible script for plotting two dipoles in a schematic head could look like this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
set color=black&lt;br /&gt;
set size=16&lt;br /&gt;
set dipole number=1 xloc=0.65 yloc=0.16 zloc=0.29 xori=0.15 yori=-0.73 zori=-0.67 color=blue length=0.1 diameter=0.05&lt;br /&gt;
set dipole number=2 xloc=-0.65 yloc=0.16 zloc=0.29 xori=-0.17 yori=-0.57 zori=-0.81 color=blue length=0.1 diameter=0.05&lt;br /&gt;
head width=35 height=40 viewpoint=top brain=on x=20.0 y=75.0&lt;br /&gt;
head width=35 height=40 viewpoint=back brain=on x=20.0 y=30.0&lt;br /&gt;
head width=35 height=40 viewpoint=left brain=on x=77.0 y=77.0&lt;br /&gt;
set dataset=1&lt;br /&gt;
set mapuV=18&lt;br /&gt;
set mapcolor negative=blue positive=red electrode=none&lt;br /&gt;
set mapsize=35&lt;br /&gt;
set maptype=amplitude&lt;br /&gt;
set maplambda=1E-5&lt;br /&gt;
set mapviewpoint=top&lt;br /&gt;
set maprange maximumuV=461 minimumuV=-419 zerouV=0.0 contours=on&lt;br /&gt;
map latency=110.6 end=150.4 step=20 mean=on label=on x=77.0 y=30.0&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
The result after running the script is shown in Figure 1.&lt;br /&gt;
[[File:DipoleFitResults.png|thumb|500px|Figure 1 Dipole fitting results visualized with BESA Plot]]&lt;br /&gt;
[[File:AverageResults.png|thumb|500px|Figure 2 Visualization of sensor level data with BESA Plot]]&lt;br /&gt;
== Creating the dataset file ==&lt;br /&gt;
The dataset file contains basic information about the data in the data file. It is not essential for the visualization process, however, if it is missing, the program asks the user additional questions about the settings before generating the image. The dataset file can be created with the function &amp;lt;tt&amp;gt;besa_save2Dataset&amp;lt;/tt&amp;gt; which also in the package &amp;lt;tt&amp;gt;MATLAB2BESA&amp;lt;/tt&amp;gt;. Use the function like this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
status = besa_save2Dataset(DatasetPath, DataFile, ...&lt;br /&gt;
    ElpFile, ControlFile, NumChannels, NumTimeSamples, ...&lt;br /&gt;
    SamplingInterval, FirstTimeSample);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
== Starting BESA Plot with command line arguments ==&lt;br /&gt;
After the generation of the input files one can start BESA Plot with these files as input in order to visualize data. The syntax of the call is:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;BesaPlot &amp;lt;data_file_name&amp;gt; &amp;lt;control_file_name&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Example:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;dos&amp;quot;&amp;gt;&lt;br /&gt;
start /b cmd /c &amp;quot;C:\Program Files (x86)\BESA\Plot\BesaPlot.exe&amp;quot; &lt;br /&gt;
    M:\QM\BesaPlot\erf1.avr M:\QM\BesaPlot\erf1.bpctrl&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Please note that &amp;lt;tt&amp;gt;start /b cmd /c&amp;lt;/tt&amp;gt; is used to start the program in background.&lt;/div&gt;</summary>
		<author><name>Todor</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Visualization_with_BESA_Plot_in_FieldTrip</id>
		<title>Visualization with BESA Plot in FieldTrip</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Visualization_with_BESA_Plot_in_FieldTrip"/>
				<updated>2016-07-07T12:12:58Z</updated>
		
		<summary type="html">&lt;p&gt;Todor: /* Starting BESA Plot with command line arguments */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[http://www.besa.de/downloads/besa-plot/ BESA Plot] is a free tool created by [https://www.psychologie.uni-konstanz.de/forschung/clinicalpsychology/mitarbeiter/mitarbeiter-detailseite/berg-patrick-22/7347/7149/ Patrick Berg] ([http://www.besa.de/ BESA GmbH]) for visualization of MEEG data. Initially it was meant to be complementary visualization tool to [http://www.besa.de/products/besa-research/besa-research-overview/ BESA Research], however, it could be used in more general context. In this document we demonstrate the possibility of using BESA Plot as a visualization tool in the [https://www.mathworks.com/ Matlab] based open source package for MEEG data analysis [http://www.fieldtriptoolbox.org/ FieldTrip].&lt;br /&gt;
&lt;br /&gt;
Since BESA Plot can be started with command line arguments, it can be called directly from Matlab and the required input parameters (e.g. data file, settings and plotting modalities) can be committed as such arguments. There are four files necessary for starting BESA Plot from Matlab and visualizing the corresponding data: 1) a data file (e.g. test1.avr), 2) a file containing the channel labels and coordinates (e.g. test1.elp), 3) a control file containing the plotting commands for BESA Plot (e.g. test1.bpctrl) and 4) a dataset file containing general information about the data file (e.g. test1.avr.dataset). These files should be generated dynamically in Matlab in order to be able to plot the Matlab data in BESA Plot.&lt;br /&gt;
&lt;br /&gt;
== Generating the data file ==&lt;br /&gt;
First of all we need the data which are going to be saved as an avr-file. This is usually a Matlab structure generated  in FieldTrip with the function &amp;lt;tt&amp;gt;ft_timelockanalysis&amp;lt;/tt&amp;gt;. Its general form is something like this:&lt;br /&gt;
&amp;lt;tt&amp;gt;&lt;br /&gt;
       avg: [147x271 double]&lt;br /&gt;
       var: [147x271 double]&lt;br /&gt;
      time: [1x271 double]&lt;br /&gt;
       dof: [147x271 double]&lt;br /&gt;
     label: {147x1 cell}&lt;br /&gt;
    dimord: 'chan_time'&lt;br /&gt;
      grad: [1x1 struct]&lt;br /&gt;
       cfg: [1x1 struct]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/tt&amp;gt;&lt;br /&gt;
In order to create a data file from that structure one needs the function &amp;lt;tt&amp;gt;besa_save2Avr&amp;lt;/tt&amp;gt; which can be found in the FieldTrip installation in the folder &amp;lt;tt&amp;gt;external\besa&amp;lt;/tt&amp;gt; or can be downloaded directly from [ftp://h1772544.stratoserver.net/public/Matlab/MATLAB2BESA.zip BESA’s ftp-server]. Just unpack the archive and add the path to the Matlab path (e.g. &amp;lt;tt&amp;gt;addpath(‘D:\Path\to\MATLAB2BESA’)&amp;lt;/tt&amp;gt;).&lt;br /&gt;
Use the function like this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
status = besa_save2Avr(cfg.datapath, DataFile, data_matrix, ...&lt;br /&gt;
        time_samples, channel_labels, data_scale_factor, time_scale_factor);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Generating the channel file (*.elp) ==&lt;br /&gt;
This file contains the channel type, the channel labels and the spherical coordinates of the channels. It can be created using the function &amp;lt;tt&amp;gt;besa_save2Elp&amp;lt;/tt&amp;gt; again from the package &amp;lt;tt&amp;gt;MATLAB2BESA&amp;lt;/tt&amp;gt;. Use the function like this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
status = besa_save2Elp(cfg.datapath, ElpFile, ...&lt;br /&gt;
        SphericalCoords, channel_labels, channel_type);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
== Creating the BESA Plot control file ==&lt;br /&gt;
This is the actual plotting script. It follows the syntax of a scripting language defined in BESA Plot. For more details about the scripting language please refer to the program help. For this file format there is no writer function, since it can contain different scripts for different visualization scenarios. One possible script for plotting two dipoles in a schematic head could look like this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
set color=black&lt;br /&gt;
set size=16&lt;br /&gt;
set dipole number=1 xloc=0.65 yloc=0.16 zloc=0.29 xori=0.15 yori=-0.73 zori=-0.67 color=blue length=0.1 diameter=0.05&lt;br /&gt;
set dipole number=2 xloc=-0.65 yloc=0.16 zloc=0.29 xori=-0.17 yori=-0.57 zori=-0.81 color=blue length=0.1 diameter=0.05&lt;br /&gt;
head width=35 height=40 viewpoint=top brain=on x=20.0 y=75.0&lt;br /&gt;
head width=35 height=40 viewpoint=back brain=on x=20.0 y=30.0&lt;br /&gt;
head width=35 height=40 viewpoint=left brain=on x=77.0 y=77.0&lt;br /&gt;
set dataset=1&lt;br /&gt;
set mapuV=18&lt;br /&gt;
set mapcolor negative=blue positive=red electrode=none&lt;br /&gt;
set mapsize=35&lt;br /&gt;
set maptype=amplitude&lt;br /&gt;
set maplambda=1E-5&lt;br /&gt;
set mapviewpoint=top&lt;br /&gt;
set maprange maximumuV=461 minimumuV=-419 zerouV=0.0 contours=on&lt;br /&gt;
map latency=110.6 end=150.4 step=20 mean=on label=on x=77.0 y=30.0&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
The result after running the script is shown in Figure 1.&lt;br /&gt;
[[File:DipoleFitResults.png|thumb|500px|Figure 1 Dipole fitting results visualized with BESA Plot]]&lt;br /&gt;
[[File:AverageResults.png|thumb|500px|Figure 2 Visualization of sensor level data with BESA Plot]]&lt;br /&gt;
== Creating the dataset file ==&lt;br /&gt;
The dataset file contains basic information about the data in the data file. It is not essential for the visualization process, however, if it is missing, the program asks the user additional questions about the settings before generating the image. The dataset file can be created with the function &amp;lt;tt&amp;gt;besa_save2Dataset&amp;lt;/tt&amp;gt; which also in the package &amp;lt;tt&amp;gt;MATLAB2BESA&amp;lt;/tt&amp;gt;. Use the function like this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
status = besa_save2Dataset(DatasetPath, DataFile, ...&lt;br /&gt;
    ElpFile, ControlFile, NumChannels, NumTimeSamples, ...&lt;br /&gt;
    SamplingInterval, FirstTimeSample);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
== Starting BESA Plot with command line arguments ==&lt;br /&gt;
After the generation of the input files one can start BESA Plot with these files as input in order to visualize data. The syntax of the call is:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;BesaPlot &amp;lt;data_file_name&amp;gt; &amp;lt;control_file_name&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Example:'''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;dos&amp;quot;&amp;gt;&lt;br /&gt;
start /b cmd /c &amp;quot;C:\Program Files (x86)\BESA\Plot\BesaPlot.exe&amp;quot; &lt;br /&gt;
    M:\QM\BesaPlot\erf1.avr M:\QM\BesaPlot\erf1.bpctrl&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Todor</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Visualization_with_BESA_Plot_in_FieldTrip</id>
		<title>Visualization with BESA Plot in FieldTrip</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Visualization_with_BESA_Plot_in_FieldTrip"/>
				<updated>2016-07-07T12:12:15Z</updated>
		
		<summary type="html">&lt;p&gt;Todor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[http://www.besa.de/downloads/besa-plot/ BESA Plot] is a free tool created by [https://www.psychologie.uni-konstanz.de/forschung/clinicalpsychology/mitarbeiter/mitarbeiter-detailseite/berg-patrick-22/7347/7149/ Patrick Berg] ([http://www.besa.de/ BESA GmbH]) for visualization of MEEG data. Initially it was meant to be complementary visualization tool to [http://www.besa.de/products/besa-research/besa-research-overview/ BESA Research], however, it could be used in more general context. In this document we demonstrate the possibility of using BESA Plot as a visualization tool in the [https://www.mathworks.com/ Matlab] based open source package for MEEG data analysis [http://www.fieldtriptoolbox.org/ FieldTrip].&lt;br /&gt;
&lt;br /&gt;
Since BESA Plot can be started with command line arguments, it can be called directly from Matlab and the required input parameters (e.g. data file, settings and plotting modalities) can be committed as such arguments. There are four files necessary for starting BESA Plot from Matlab and visualizing the corresponding data: 1) a data file (e.g. test1.avr), 2) a file containing the channel labels and coordinates (e.g. test1.elp), 3) a control file containing the plotting commands for BESA Plot (e.g. test1.bpctrl) and 4) a dataset file containing general information about the data file (e.g. test1.avr.dataset). These files should be generated dynamically in Matlab in order to be able to plot the Matlab data in BESA Plot.&lt;br /&gt;
&lt;br /&gt;
== Generating the data file ==&lt;br /&gt;
First of all we need the data which are going to be saved as an avr-file. This is usually a Matlab structure generated  in FieldTrip with the function &amp;lt;tt&amp;gt;ft_timelockanalysis&amp;lt;/tt&amp;gt;. Its general form is something like this:&lt;br /&gt;
&amp;lt;tt&amp;gt;&lt;br /&gt;
       avg: [147x271 double]&lt;br /&gt;
       var: [147x271 double]&lt;br /&gt;
      time: [1x271 double]&lt;br /&gt;
       dof: [147x271 double]&lt;br /&gt;
     label: {147x1 cell}&lt;br /&gt;
    dimord: 'chan_time'&lt;br /&gt;
      grad: [1x1 struct]&lt;br /&gt;
       cfg: [1x1 struct]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/tt&amp;gt;&lt;br /&gt;
In order to create a data file from that structure one needs the function &amp;lt;tt&amp;gt;besa_save2Avr&amp;lt;/tt&amp;gt; which can be found in the FieldTrip installation in the folder &amp;lt;tt&amp;gt;external\besa&amp;lt;/tt&amp;gt; or can be downloaded directly from [ftp://h1772544.stratoserver.net/public/Matlab/MATLAB2BESA.zip BESA’s ftp-server]. Just unpack the archive and add the path to the Matlab path (e.g. &amp;lt;tt&amp;gt;addpath(‘D:\Path\to\MATLAB2BESA’)&amp;lt;/tt&amp;gt;).&lt;br /&gt;
Use the function like this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
status = besa_save2Avr(cfg.datapath, DataFile, data_matrix, ...&lt;br /&gt;
        time_samples, channel_labels, data_scale_factor, time_scale_factor);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Generating the channel file (*.elp) ==&lt;br /&gt;
This file contains the channel type, the channel labels and the spherical coordinates of the channels. It can be created using the function &amp;lt;tt&amp;gt;besa_save2Elp&amp;lt;/tt&amp;gt; again from the package &amp;lt;tt&amp;gt;MATLAB2BESA&amp;lt;/tt&amp;gt;. Use the function like this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
status = besa_save2Elp(cfg.datapath, ElpFile, ...&lt;br /&gt;
        SphericalCoords, channel_labels, channel_type);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
== Creating the BESA Plot control file ==&lt;br /&gt;
This is the actual plotting script. It follows the syntax of a scripting language defined in BESA Plot. For more details about the scripting language please refer to the program help. For this file format there is no writer function, since it can contain different scripts for different visualization scenarios. One possible script for plotting two dipoles in a schematic head could look like this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
set color=black&lt;br /&gt;
set size=16&lt;br /&gt;
set dipole number=1 xloc=0.65 yloc=0.16 zloc=0.29 xori=0.15 yori=-0.73 zori=-0.67 color=blue length=0.1 diameter=0.05&lt;br /&gt;
set dipole number=2 xloc=-0.65 yloc=0.16 zloc=0.29 xori=-0.17 yori=-0.57 zori=-0.81 color=blue length=0.1 diameter=0.05&lt;br /&gt;
head width=35 height=40 viewpoint=top brain=on x=20.0 y=75.0&lt;br /&gt;
head width=35 height=40 viewpoint=back brain=on x=20.0 y=30.0&lt;br /&gt;
head width=35 height=40 viewpoint=left brain=on x=77.0 y=77.0&lt;br /&gt;
set dataset=1&lt;br /&gt;
set mapuV=18&lt;br /&gt;
set mapcolor negative=blue positive=red electrode=none&lt;br /&gt;
set mapsize=35&lt;br /&gt;
set maptype=amplitude&lt;br /&gt;
set maplambda=1E-5&lt;br /&gt;
set mapviewpoint=top&lt;br /&gt;
set maprange maximumuV=461 minimumuV=-419 zerouV=0.0 contours=on&lt;br /&gt;
map latency=110.6 end=150.4 step=20 mean=on label=on x=77.0 y=30.0&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
The result after running the script is shown in Figure 1.&lt;br /&gt;
[[File:DipoleFitResults.png|thumb|500px|Figure 1 Dipole fitting results visualized with BESA Plot]]&lt;br /&gt;
[[File:AverageResults.png|thumb|500px|Figure 2 Visualization of sensor level data with BESA Plot]]&lt;br /&gt;
== Creating the dataset file ==&lt;br /&gt;
The dataset file contains basic information about the data in the data file. It is not essential for the visualization process, however, if it is missing, the program asks the user additional questions about the settings before generating the image. The dataset file can be created with the function &amp;lt;tt&amp;gt;besa_save2Dataset&amp;lt;/tt&amp;gt; which also in the package &amp;lt;tt&amp;gt;MATLAB2BESA&amp;lt;/tt&amp;gt;. Use the function like this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
status = besa_save2Dataset(DatasetPath, DataFile, ...&lt;br /&gt;
    ElpFile, ControlFile, NumChannels, NumTimeSamples, ...&lt;br /&gt;
    SamplingInterval, FirstTimeSample);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
== Starting BESA Plot with command line arguments ==&lt;br /&gt;
After the generation of the input files one can start BESA Plot with these files as input in order to visualize data. The syntax of the call is:  &lt;br /&gt;
&amp;lt;tt&amp;gt;BesaPlot &amp;lt;data_file_name&amp;gt; &amp;lt;control_file_name&amp;gt;&amp;lt;/tt&amp;gt;&lt;br /&gt;
'''Example:'''&lt;br /&gt;
&amp;lt;source lang=&amp;quot;dos&amp;quot;&amp;gt;&lt;br /&gt;
start /b cmd /c &amp;quot;C:\Program Files (x86)\BESA\Plot\BesaPlot.exe&amp;quot; &lt;br /&gt;
    M:\QM\BesaPlot\erf1.avr M:\QM\BesaPlot\erf1.bpctrl&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Todor</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Visualization_with_BESA_Plot_in_FieldTrip</id>
		<title>Visualization with BESA Plot in FieldTrip</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Visualization_with_BESA_Plot_in_FieldTrip"/>
				<updated>2016-07-07T12:08:16Z</updated>
		
		<summary type="html">&lt;p&gt;Todor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[http://www.besa.de/downloads/besa-plot/ BESA Plot] is a free tool created by [https://www.psychologie.uni-konstanz.de/forschung/clinicalpsychology/mitarbeiter/mitarbeiter-detailseite/berg-patrick-22/7347/7149/ Patrick Berg] ([http://www.besa.de/ BESA GmbH]) for visualization of MEEG data. Initially it was meant to be complementary visualization tool to [http://www.besa.de/products/besa-research/besa-research-overview/ BESA Research], however, it could be used in more general context. In this document we demonstrate the possibility of using BESA Plot as a visualization tool in the [https://www.mathworks.com/ Matlab] based open source package for MEEG data analysis [http://www.fieldtriptoolbox.org/ FieldTrip].&lt;br /&gt;
&lt;br /&gt;
Since BESA Plot can be started with command line arguments, it can be called directly from Matlab and the required input parameters (e.g. data file, settings and plotting modalities) can be committed as such arguments. There are four files necessary for starting BESA Plot from Matlab and visualizing the corresponding data: 1) a data file (e.g. test1.avr), 2) a file containing the channel labels and coordinates (e.g. test1.elp), 3) a control file containing the plotting commands for BESA Plot (e.g. test1.bpctrl) and 4) a dataset file containing general information about the data file (e.g. test1.avr.dataset). These files should be generated dynamically in Matlab in order to be able to plot the Matlab data in BESA Plot.&lt;br /&gt;
&lt;br /&gt;
== Generating the data file ==&lt;br /&gt;
First of all we need the data which are going to be saved as an avr-file. This is usually a Matlab structure generated  in FieldTrip with the function &amp;lt;tt&amp;gt;ft_timelockanalysis&amp;lt;/tt&amp;gt;. Its general form is something like this:&lt;br /&gt;
&amp;lt;tt&amp;gt;&lt;br /&gt;
       avg: [147x271 double]&lt;br /&gt;
       var: [147x271 double]&lt;br /&gt;
      time: [1x271 double]&lt;br /&gt;
       dof: [147x271 double]&lt;br /&gt;
     label: {147x1 cell}&lt;br /&gt;
    dimord: 'chan_time'&lt;br /&gt;
      grad: [1x1 struct]&lt;br /&gt;
       cfg: [1x1 struct]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/tt&amp;gt;&lt;br /&gt;
In order to create a data file from that structure one needs the function &amp;lt;tt&amp;gt;besa_save2Avr&amp;lt;/tt&amp;gt; which can be found in the FieldTrip installation in the folder &amp;lt;tt&amp;gt;external\besa&amp;lt;/tt&amp;gt; or can be downloaded directly from [ftp://h1772544.stratoserver.net/public/Matlab/MATLAB2BESA.zip BESA’s ftp-server]. Just unpack the archive and add the path to the Matlab path (e.g. &amp;lt;tt&amp;gt;addpath(‘D:\Path\to\MATLAB2BESA’)&amp;lt;/tt&amp;gt;).&lt;br /&gt;
Use the function like this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
status = besa_save2Avr(cfg.datapath, DataFile, data_matrix, ...&lt;br /&gt;
        time_samples, channel_labels, data_scale_factor, time_scale_factor);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Generating the channel file (*.elp) ==&lt;br /&gt;
This file contains the channel type, the channel labels and the spherical coordinates of the channels. It can be created using the function &amp;lt;tt&amp;gt;besa_save2Elp&amp;lt;/tt&amp;gt; again from the package &amp;lt;tt&amp;gt;MATLAB2BESA&amp;lt;/tt&amp;gt;. Use the function like this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
status = besa_save2Elp(cfg.datapath, ElpFile, ...&lt;br /&gt;
        SphericalCoords, channel_labels, channel_type);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
== Creating the BESA Plot control file ==&lt;br /&gt;
This is the actual plotting script. It follows the syntax of a scripting language defined in BESA Plot. For more details about the scripting language please refer to the program help. For this file format there is no writer function, since it can contain different scripts for different visualization scenarios. One possible script for plotting two dipoles in a schematic head could look like this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
set color=black&lt;br /&gt;
set size=16&lt;br /&gt;
set dipole number=1 xloc=0.65 yloc=0.16 zloc=0.29 xori=0.15 yori=-0.73 zori=-0.67 color=blue length=0.1 diameter=0.05&lt;br /&gt;
set dipole number=2 xloc=-0.65 yloc=0.16 zloc=0.29 xori=-0.17 yori=-0.57 zori=-0.81 color=blue length=0.1 diameter=0.05&lt;br /&gt;
head width=35 height=40 viewpoint=top brain=on x=20.0 y=75.0&lt;br /&gt;
head width=35 height=40 viewpoint=back brain=on x=20.0 y=30.0&lt;br /&gt;
head width=35 height=40 viewpoint=left brain=on x=77.0 y=77.0&lt;br /&gt;
set dataset=1&lt;br /&gt;
set mapuV=18&lt;br /&gt;
set mapcolor negative=blue positive=red electrode=none&lt;br /&gt;
set mapsize=35&lt;br /&gt;
set maptype=amplitude&lt;br /&gt;
set maplambda=1E-5&lt;br /&gt;
set mapviewpoint=top&lt;br /&gt;
set maprange maximumuV=461 minimumuV=-419 zerouV=0.0 contours=on&lt;br /&gt;
map latency=110.6 end=150.4 step=20 mean=on label=on x=77.0 y=30.0&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
The result after running the script is shown in Figure 1.&lt;br /&gt;
[[File:DipoleFitResults.png|thumb|500px|Figure 1 Dipole fitting results visualized with BESA Plot]]&lt;br /&gt;
[[File:AverageResults.png|thumb|500px|Figure 2 Visualization of sensor level data with BESA Plot]]&lt;br /&gt;
== Creating the dataset file ==&lt;br /&gt;
The dataset file contains basic information about the data in the data file. It is not essential for the visualization process, however, if it is missing, the program asks the user additional questions about the settings before generating the image. The dataset file can be created with the function &amp;lt;tt&amp;gt;besa_save2Dataset&amp;lt;/tt&amp;gt; which also in the package &amp;lt;tt&amp;gt;MATLAB2BESA&amp;lt;/tt&amp;gt;. Use the function like this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
status = besa_save2Dataset(DatasetPath, DataFile, ElpFile, ...&lt;br /&gt;
        ControlFile, NumChannels, NumTimeSamples, SamplingInterval, ...&lt;br /&gt;
        FirstTimeSample);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Todor</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Visualization_with_BESA_Plot_in_FieldTrip</id>
		<title>Visualization with BESA Plot in FieldTrip</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Visualization_with_BESA_Plot_in_FieldTrip"/>
				<updated>2016-07-07T12:06:45Z</updated>
		
		<summary type="html">&lt;p&gt;Todor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[http://www.besa.de/downloads/besa-plot/ BESA Plot] is a free tool created by [https://www.psychologie.uni-konstanz.de/forschung/clinicalpsychology/mitarbeiter/mitarbeiter-detailseite/berg-patrick-22/7347/7149/ Patrick Berg] ([http://www.besa.de/ BESA GmbH]) for visualization of MEEG data. Initially it was meant to be complementary visualization tool to [http://www.besa.de/products/besa-research/besa-research-overview/ BESA Research], however, it could be used in more general context. In this document we demonstrate the possibility of using BESA Plot as a visualization tool in the [https://www.mathworks.com/ Matlab] based open source package for MEEG data analysis [http://www.fieldtriptoolbox.org/ FieldTrip].&lt;br /&gt;
&lt;br /&gt;
Since BESA Plot can be started with command line arguments, it can be called directly from Matlab and the required input parameters (e.g. data file, settings and plotting modalities) can be committed as such arguments. There are four files necessary for starting BESA Plot from Matlab and visualizing the corresponding data: 1) a data file (e.g. test1.avr), 2) a file containing the channel labels and coordinates (e.g. test1.elp), 3) a control file containing the plotting commands for BESA Plot (e.g. test1.bpctrl) and 4) a dataset file containing general information about the data file (e.g. test1.avr.dataset). These files should be generated dynamically in Matlab in order to be able to plot the Matlab data in BESA Plot.&lt;br /&gt;
&lt;br /&gt;
== Generating the data file ==&lt;br /&gt;
First of all we need the data which are going to be saved as an avr-file. This is usually a Matlab structure generated  in FieldTrip with the function &amp;lt;tt&amp;gt;ft_timelockanalysis&amp;lt;/tt&amp;gt;. Its general form is something like this:&lt;br /&gt;
&amp;lt;tt&amp;gt;&lt;br /&gt;
       avg: [147x271 double]&lt;br /&gt;
       var: [147x271 double]&lt;br /&gt;
      time: [1x271 double]&lt;br /&gt;
       dof: [147x271 double]&lt;br /&gt;
     label: {147x1 cell}&lt;br /&gt;
    dimord: 'chan_time'&lt;br /&gt;
      grad: [1x1 struct]&lt;br /&gt;
       cfg: [1x1 struct]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/tt&amp;gt;&lt;br /&gt;
In order to create a data file from that structure one needs the function &amp;lt;tt&amp;gt;besa_save2Avr&amp;lt;/tt&amp;gt; which can be found in the FieldTrip installation in the folder &amp;lt;tt&amp;gt;external\besa&amp;lt;/tt&amp;gt; or can be downloaded directly from [ftp://h1772544.stratoserver.net/public/Matlab/MATLAB2BESA.zip BESA’s ftp-server]. Just unpack the archive and add the path to the Matlab path (e.g. &amp;lt;tt&amp;gt;addpath(‘D:\Path\to\MATLAB2BESA’)&amp;lt;/tt&amp;gt;).&lt;br /&gt;
Use the function like this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
status = besa_save2Avr(cfg.datapath, DataFile, data_matrix, ...&lt;br /&gt;
        time_samples, channel_labels, data_scale_factor, time_scale_factor);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Generating the channel file (*.elp) ==&lt;br /&gt;
This file contains the channel type, the channel labels and the spherical coordinates of the channels. It can be created using the function &amp;lt;tt&amp;gt;besa_save2Elp&amp;lt;/tt&amp;gt; again from the package &amp;lt;tt&amp;gt;MATLAB2BESA&amp;lt;/tt&amp;gt;. Use the function like this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
status = besa_save2Elp(cfg.datapath, ElpFile, ...&lt;br /&gt;
        SphericalCoords, channel_labels, channel_type);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
== Creating the BESA Plot control file ==&lt;br /&gt;
This is the actual plotting script. It follows the syntax of a scripting language defined in BESA Plot. For more details about the scripting language please refer to the program help. For this file format there is no writer function, since it can contain different scripts for different visualization scenarios. One possible script for plotting two dipoles in a schematic head could look like this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
set color=black&lt;br /&gt;
set size=16&lt;br /&gt;
set dipole number=1 xloc=0.65 yloc=0.16 zloc=0.29 xori=0.15 yori=-0.73 zori=-0.67 color=blue length=0.1 diameter=0.05&lt;br /&gt;
set dipole number=2 xloc=-0.65 yloc=0.16 zloc=0.29 xori=-0.17 yori=-0.57 zori=-0.81 color=blue length=0.1 diameter=0.05&lt;br /&gt;
head width=35 height=40 viewpoint=top brain=on x=20.0 y=75.0&lt;br /&gt;
head width=35 height=40 viewpoint=back brain=on x=20.0 y=30.0&lt;br /&gt;
head width=35 height=40 viewpoint=left brain=on x=77.0 y=77.0&lt;br /&gt;
set dataset=1&lt;br /&gt;
set mapuV=18&lt;br /&gt;
set mapcolor negative=blue positive=red electrode=none&lt;br /&gt;
set mapsize=35&lt;br /&gt;
set maptype=amplitude&lt;br /&gt;
set maplambda=1E-5&lt;br /&gt;
set mapviewpoint=top&lt;br /&gt;
set maprange maximumuV=461 minimumuV=-419 zerouV=0.0 contours=on&lt;br /&gt;
map latency=110.6 end=150.4 step=20 mean=on label=on x=77.0 y=30.0&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
The result after running the script is shown in Figure 1.&lt;br /&gt;
[[File:DipoleFitResults.png|thumb|500px|Figure 1 Dipole fitting results visualized with BESA Plot]]&lt;br /&gt;
== Creating the dataset file ==&lt;br /&gt;
The dataset file contains basic information about the data in the data file. It is not essential for the visualization process, however, if it is missing, the program asks the user additional questions about the settings before generating the image. The dataset file can be created with the function &amp;lt;tt&amp;gt;besa_save2Dataset&amp;lt;/tt&amp;gt; which also in the package &amp;lt;tt&amp;gt;MATLAB2BESA&amp;lt;/tt&amp;gt;. Use the function like this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
status = besa_save2Dataset(DatasetPath, DataFile, ElpFile, ...&lt;br /&gt;
        ControlFile, NumChannels, NumTimeSamples, SamplingInterval, ...&lt;br /&gt;
        FirstTimeSample);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Todor</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Visualization_with_BESA_Plot_in_FieldTrip</id>
		<title>Visualization with BESA Plot in FieldTrip</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Visualization_with_BESA_Plot_in_FieldTrip"/>
				<updated>2016-07-07T12:04:38Z</updated>
		
		<summary type="html">&lt;p&gt;Todor: /* Creating the BESA Plot control file */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[http://www.besa.de/downloads/besa-plot/ BESA Plot] is a free tool created by [https://www.psychologie.uni-konstanz.de/forschung/clinicalpsychology/mitarbeiter/mitarbeiter-detailseite/berg-patrick-22/7347/7149/ Patrick Berg] ([http://www.besa.de/ BESA GmbH]) for visualization of MEEG data. Initially it was meant to be complementary visualization tool to [http://www.besa.de/products/besa-research/besa-research-overview/ BESA Research], however, it could be used in more general context. In this document we demonstrate the possibility of using BESA Plot as a visualization tool in the [https://www.mathworks.com/ Matlab] based open source package for MEEG data analysis [http://www.fieldtriptoolbox.org/ FieldTrip].&lt;br /&gt;
&lt;br /&gt;
Since BESA Plot can be started with command line arguments, it can be called directly from Matlab and the required input parameters (e.g. data file, settings and plotting modalities) can be committed as such arguments. There are four files necessary for starting BESA Plot from Matlab and visualizing the corresponding data: 1) a data file (e.g. test1.avr), 2) a file containing the channel labels and coordinates (e.g. test1.elp), 3) a control file containing the plotting commands for BESA Plot (e.g. test1.bpctrl) and 4) a dataset file containing general information about the data file (e.g. test1.avr.dataset). These files should be generated dynamically in Matlab in order to be able to plot the Matlab data in BESA Plot.&lt;br /&gt;
&lt;br /&gt;
== Generating the data file ==&lt;br /&gt;
First of all we need the data which are going to be saved as an avr-file. This is usually a Matlab structure generated  in FieldTrip with the function &amp;lt;tt&amp;gt;ft_timelockanalysis&amp;lt;/tt&amp;gt;. Its general form is something like this:&lt;br /&gt;
&amp;lt;tt&amp;gt;&lt;br /&gt;
       avg: [147x271 double]&lt;br /&gt;
       var: [147x271 double]&lt;br /&gt;
      time: [1x271 double]&lt;br /&gt;
       dof: [147x271 double]&lt;br /&gt;
     label: {147x1 cell}&lt;br /&gt;
    dimord: 'chan_time'&lt;br /&gt;
      grad: [1x1 struct]&lt;br /&gt;
       cfg: [1x1 struct]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/tt&amp;gt;&lt;br /&gt;
In order to create a data file from that structure one needs the function &amp;lt;tt&amp;gt;besa_save2Avr&amp;lt;/tt&amp;gt; which can be found in the FieldTrip installation in the folder &amp;lt;tt&amp;gt;external\besa&amp;lt;/tt&amp;gt; or can be downloaded directly from [ftp://h1772544.stratoserver.net/public/Matlab/MATLAB2BESA.zip BESA’s ftp-server]. Just unpack the archive and add the path to the Matlab path (e.g. &amp;lt;tt&amp;gt;addpath(‘D:\Path\to\MATLAB2BESA’)&amp;lt;/tt&amp;gt;).&lt;br /&gt;
Use the function like this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
status = besa_save2Avr(cfg.datapath, DataFile, data_matrix, ...&lt;br /&gt;
        time_samples, channel_labels, data_scale_factor, time_scale_factor);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Generating the channel file (*.elp) ==&lt;br /&gt;
This file contains the channel type, the channel labels and the spherical coordinates of the channels. It can be created using the function &amp;lt;tt&amp;gt;besa_save2Elp&amp;lt;/tt&amp;gt; again from the package &amp;lt;tt&amp;gt;MATLAB2BESA&amp;lt;/tt&amp;gt;. Use the function like this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
status = besa_save2Elp(cfg.datapath, ElpFile, ...&lt;br /&gt;
        SphericalCoords, channel_labels, channel_type);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
== Creating the BESA Plot control file ==&lt;br /&gt;
This is the actual plotting script. It follows the syntax of a scripting language defined in BESA Plot. For more details about the scripting language please refer to the program help. For this file format there is no writer function, since it can contain different scripts for different visualization scenarios. One possible script for plotting two dipoles in a schematic head could look like this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
set color=black&lt;br /&gt;
set size=16&lt;br /&gt;
set dipole number=1 xloc=0.65 yloc=0.16 zloc=0.29 xori=0.15 yori=-0.73 zori=-0.67 color=blue length=0.1 diameter=0.05&lt;br /&gt;
set dipole number=2 xloc=-0.65 yloc=0.16 zloc=0.29 xori=-0.17 yori=-0.57 zori=-0.81 color=blue length=0.1 diameter=0.05&lt;br /&gt;
head width=35 height=40 viewpoint=top brain=on x=20.0 y=75.0&lt;br /&gt;
head width=35 height=40 viewpoint=back brain=on x=20.0 y=30.0&lt;br /&gt;
head width=35 height=40 viewpoint=left brain=on x=77.0 y=77.0&lt;br /&gt;
set dataset=1&lt;br /&gt;
set mapuV=18&lt;br /&gt;
set mapcolor negative=blue positive=red electrode=none&lt;br /&gt;
set mapsize=35&lt;br /&gt;
set maptype=amplitude&lt;br /&gt;
set maplambda=1E-5&lt;br /&gt;
set mapviewpoint=top&lt;br /&gt;
set maprange maximumuV=461 minimumuV=-419 zerouV=0.0 contours=on&lt;br /&gt;
map latency=110.6 end=150.4 step=20 mean=on label=on x=77.0 y=30.0&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
The result after running the script is shown in Figure 1.&lt;br /&gt;
[[File:DipoleFitResults.png|thumb|500px|Figure 1 Dipole fitting results visualized with BESA Plot]]&lt;/div&gt;</summary>
		<author><name>Todor</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Visualization_with_BESA_Plot_in_FieldTrip</id>
		<title>Visualization with BESA Plot in FieldTrip</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Visualization_with_BESA_Plot_in_FieldTrip"/>
				<updated>2016-07-07T12:03:02Z</updated>
		
		<summary type="html">&lt;p&gt;Todor: /* Creating the BESA Plot control file */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[http://www.besa.de/downloads/besa-plot/ BESA Plot] is a free tool created by [https://www.psychologie.uni-konstanz.de/forschung/clinicalpsychology/mitarbeiter/mitarbeiter-detailseite/berg-patrick-22/7347/7149/ Patrick Berg] ([http://www.besa.de/ BESA GmbH]) for visualization of MEEG data. Initially it was meant to be complementary visualization tool to [http://www.besa.de/products/besa-research/besa-research-overview/ BESA Research], however, it could be used in more general context. In this document we demonstrate the possibility of using BESA Plot as a visualization tool in the [https://www.mathworks.com/ Matlab] based open source package for MEEG data analysis [http://www.fieldtriptoolbox.org/ FieldTrip].&lt;br /&gt;
&lt;br /&gt;
Since BESA Plot can be started with command line arguments, it can be called directly from Matlab and the required input parameters (e.g. data file, settings and plotting modalities) can be committed as such arguments. There are four files necessary for starting BESA Plot from Matlab and visualizing the corresponding data: 1) a data file (e.g. test1.avr), 2) a file containing the channel labels and coordinates (e.g. test1.elp), 3) a control file containing the plotting commands for BESA Plot (e.g. test1.bpctrl) and 4) a dataset file containing general information about the data file (e.g. test1.avr.dataset). These files should be generated dynamically in Matlab in order to be able to plot the Matlab data in BESA Plot.&lt;br /&gt;
&lt;br /&gt;
== Generating the data file ==&lt;br /&gt;
First of all we need the data which are going to be saved as an avr-file. This is usually a Matlab structure generated  in FieldTrip with the function &amp;lt;tt&amp;gt;ft_timelockanalysis&amp;lt;/tt&amp;gt;. Its general form is something like this:&lt;br /&gt;
&amp;lt;tt&amp;gt;&lt;br /&gt;
       avg: [147x271 double]&lt;br /&gt;
       var: [147x271 double]&lt;br /&gt;
      time: [1x271 double]&lt;br /&gt;
       dof: [147x271 double]&lt;br /&gt;
     label: {147x1 cell}&lt;br /&gt;
    dimord: 'chan_time'&lt;br /&gt;
      grad: [1x1 struct]&lt;br /&gt;
       cfg: [1x1 struct]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/tt&amp;gt;&lt;br /&gt;
In order to create a data file from that structure one needs the function &amp;lt;tt&amp;gt;besa_save2Avr&amp;lt;/tt&amp;gt; which can be found in the FieldTrip installation in the folder &amp;lt;tt&amp;gt;external\besa&amp;lt;/tt&amp;gt; or can be downloaded directly from [ftp://h1772544.stratoserver.net/public/Matlab/MATLAB2BESA.zip BESA’s ftp-server]. Just unpack the archive and add the path to the Matlab path (e.g. &amp;lt;tt&amp;gt;addpath(‘D:\Path\to\MATLAB2BESA’)&amp;lt;/tt&amp;gt;).&lt;br /&gt;
Use the function like this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
status = besa_save2Avr(cfg.datapath, DataFile, data_matrix, ...&lt;br /&gt;
        time_samples, channel_labels, data_scale_factor, time_scale_factor);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Generating the channel file (*.elp) ==&lt;br /&gt;
This file contains the channel type, the channel labels and the spherical coordinates of the channels. It can be created using the function &amp;lt;tt&amp;gt;besa_save2Elp&amp;lt;/tt&amp;gt; again from the package &amp;lt;tt&amp;gt;MATLAB2BESA&amp;lt;/tt&amp;gt;. Use the function like this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
status = besa_save2Elp(cfg.datapath, ElpFile, ...&lt;br /&gt;
        SphericalCoords, channel_labels, channel_type);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
== Creating the BESA Plot control file ==&lt;br /&gt;
This is the actual plotting script. It follows the syntax of a scripting language defined in BESA Plot. For more details about the scripting language please refer to the program help. For this file format there is no writer function, since it can contain different scripts for different visualization scenarios. One possible script for plotting two dipoles in a schematic head could look like this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
set color=black&lt;br /&gt;
set size=16&lt;br /&gt;
set dipole number=1 xloc=0.645106 yloc=0.159181 zloc=0.288564 xori=0.147790 yori=-0.726931 zori=-0.670619 color=blue length=0.1 diameter=0.05&lt;br /&gt;
set dipole number=2 xloc=-0.645106 yloc=0.159181 zloc=0.288564 xori=-0.166429 yori=-0.567066 zori=-0.806683 color=blue length=0.1 diameter=0.05&lt;br /&gt;
head width=35 height=40 viewpoint=top brain=on x=20.0 y=75.0&lt;br /&gt;
head width=35 height=40 viewpoint=back brain=on x=20.0 y=30.0&lt;br /&gt;
head width=35 height=40 viewpoint=left brain=on x=77.0 y=77.0&lt;br /&gt;
set dataset=1&lt;br /&gt;
set mapuV=18&lt;br /&gt;
set mapcolor negative=blue positive=red electrode=none&lt;br /&gt;
set mapsize=35&lt;br /&gt;
set maptype=amplitude&lt;br /&gt;
set maplambda=1E-5&lt;br /&gt;
set mapviewpoint=top&lt;br /&gt;
set maprange maximumuV=461 minimumuV=-419 zerouV=0.0 contours=on&lt;br /&gt;
map latency=110.6 end=150.4 step=20 mean=on label=on x=77.0 y=30.0&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
The result after running the script is shown in Figure 1.&lt;br /&gt;
[[File:DipoleFitResults.png|thumb|500px|Figure 1 Dipole fitting results visualized with BESA Plot]]&lt;/div&gt;</summary>
		<author><name>Todor</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=File:AverageResults.png</id>
		<title>File:AverageResults.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=File:AverageResults.png"/>
				<updated>2016-07-07T12:00:32Z</updated>
		
		<summary type="html">&lt;p&gt;Todor: Visualization of sensor level data with BESA Plot&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Visualization of sensor level data with BESA Plot&lt;/div&gt;</summary>
		<author><name>Todor</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=File:DipoleFitResults.png</id>
		<title>File:DipoleFitResults.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=File:DipoleFitResults.png"/>
				<updated>2016-07-07T11:59:15Z</updated>
		
		<summary type="html">&lt;p&gt;Todor: Visualization of dipole fit results with BESA Plot&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Visualization of dipole fit results with BESA Plot&lt;/div&gt;</summary>
		<author><name>Todor</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Visualization_with_BESA_Plot_in_FieldTrip</id>
		<title>Visualization with BESA Plot in FieldTrip</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Visualization_with_BESA_Plot_in_FieldTrip"/>
				<updated>2016-07-07T11:57:46Z</updated>
		
		<summary type="html">&lt;p&gt;Todor: /* Creating the BESA Plot control file */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[http://www.besa.de/downloads/besa-plot/ BESA Plot] is a free tool created by [https://www.psychologie.uni-konstanz.de/forschung/clinicalpsychology/mitarbeiter/mitarbeiter-detailseite/berg-patrick-22/7347/7149/ Patrick Berg] ([http://www.besa.de/ BESA GmbH]) for visualization of MEEG data. Initially it was meant to be complementary visualization tool to [http://www.besa.de/products/besa-research/besa-research-overview/ BESA Research], however, it could be used in more general context. In this document we demonstrate the possibility of using BESA Plot as a visualization tool in the [https://www.mathworks.com/ Matlab] based open source package for MEEG data analysis [http://www.fieldtriptoolbox.org/ FieldTrip].&lt;br /&gt;
&lt;br /&gt;
Since BESA Plot can be started with command line arguments, it can be called directly from Matlab and the required input parameters (e.g. data file, settings and plotting modalities) can be committed as such arguments. There are four files necessary for starting BESA Plot from Matlab and visualizing the corresponding data: 1) a data file (e.g. test1.avr), 2) a file containing the channel labels and coordinates (e.g. test1.elp), 3) a control file containing the plotting commands for BESA Plot (e.g. test1.bpctrl) and 4) a dataset file containing general information about the data file (e.g. test1.avr.dataset). These files should be generated dynamically in Matlab in order to be able to plot the Matlab data in BESA Plot.&lt;br /&gt;
&lt;br /&gt;
== Generating the data file ==&lt;br /&gt;
First of all we need the data which are going to be saved as an avr-file. This is usually a Matlab structure generated  in FieldTrip with the function &amp;lt;tt&amp;gt;ft_timelockanalysis&amp;lt;/tt&amp;gt;. Its general form is something like this:&lt;br /&gt;
&amp;lt;tt&amp;gt;&lt;br /&gt;
       avg: [147x271 double]&lt;br /&gt;
       var: [147x271 double]&lt;br /&gt;
      time: [1x271 double]&lt;br /&gt;
       dof: [147x271 double]&lt;br /&gt;
     label: {147x1 cell}&lt;br /&gt;
    dimord: 'chan_time'&lt;br /&gt;
      grad: [1x1 struct]&lt;br /&gt;
       cfg: [1x1 struct]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/tt&amp;gt;&lt;br /&gt;
In order to create a data file from that structure one needs the function &amp;lt;tt&amp;gt;besa_save2Avr&amp;lt;/tt&amp;gt; which can be found in the FieldTrip installation in the folder &amp;lt;tt&amp;gt;external\besa&amp;lt;/tt&amp;gt; or can be downloaded directly from [ftp://h1772544.stratoserver.net/public/Matlab/MATLAB2BESA.zip BESA’s ftp-server]. Just unpack the archive and add the path to the Matlab path (e.g. &amp;lt;tt&amp;gt;addpath(‘D:\Path\to\MATLAB2BESA’)&amp;lt;/tt&amp;gt;).&lt;br /&gt;
Use the function like this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
status = besa_save2Avr(cfg.datapath, DataFile, data_matrix, ...&lt;br /&gt;
        time_samples, channel_labels, data_scale_factor, time_scale_factor);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Generating the channel file (*.elp) ==&lt;br /&gt;
This file contains the channel type, the channel labels and the spherical coordinates of the channels. It can be created using the function &amp;lt;tt&amp;gt;besa_save2Elp&amp;lt;/tt&amp;gt; again from the package &amp;lt;tt&amp;gt;MATLAB2BESA&amp;lt;/tt&amp;gt;. Use the function like this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
status = besa_save2Elp(cfg.datapath, ElpFile, ...&lt;br /&gt;
        SphericalCoords, channel_labels, channel_type);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
== Creating the BESA Plot control file ==&lt;br /&gt;
This is the actual plotting script. It follows the syntax of a scripting language defined in BESA Plot. For more details about the scripting language please refer to the program help. For this file format there is no writer function, since it can contain different scripts for different visualization scenarios. One possible script for plotting two dipoles in a schematic head could look like this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
set color=black&lt;br /&gt;
set size=16&lt;br /&gt;
set dipole number=1 xloc=0.645106 yloc=0.159181 zloc=0.288564 xori=0.147790 yori=-0.726931 zori=-0.670619 color=blue length=0.1 diameter=0.05&lt;br /&gt;
set dipole number=2 xloc=-0.645106 yloc=0.159181 zloc=0.288564 xori=-0.166429 yori=-0.567066 zori=-0.806683 color=blue length=0.1 diameter=0.05&lt;br /&gt;
head width=35 height=40 viewpoint=top brain=on x=20.0 y=75.0&lt;br /&gt;
head width=35 height=40 viewpoint=back brain=on x=20.0 y=30.0&lt;br /&gt;
head width=35 height=40 viewpoint=left brain=on x=77.0 y=77.0&lt;br /&gt;
set dataset=1&lt;br /&gt;
set mapuV=18&lt;br /&gt;
set mapcolor negative=blue positive=red electrode=none&lt;br /&gt;
set mapsize=35&lt;br /&gt;
set maptype=amplitude&lt;br /&gt;
set maplambda=1E-5&lt;br /&gt;
set mapviewpoint=top&lt;br /&gt;
set maprange maximumuV=461 minimumuV=-419 zerouV=0.0 contours=on&lt;br /&gt;
map latency=110.6 end=150.4 step=20 mean=on label=on x=77.0 y=30.0&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
The result after running the script is shown in Figure 1.&lt;br /&gt;
[[File:DipoleFitResults.png|frame|Figure 1 Dipole fitting results visualized with BESA Plot]]&lt;/div&gt;</summary>
		<author><name>Todor</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Visualization_with_BESA_Plot_in_FieldTrip</id>
		<title>Visualization with BESA Plot in FieldTrip</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Visualization_with_BESA_Plot_in_FieldTrip"/>
				<updated>2016-07-07T11:50:16Z</updated>
		
		<summary type="html">&lt;p&gt;Todor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[http://www.besa.de/downloads/besa-plot/ BESA Plot] is a free tool created by [https://www.psychologie.uni-konstanz.de/forschung/clinicalpsychology/mitarbeiter/mitarbeiter-detailseite/berg-patrick-22/7347/7149/ Patrick Berg] ([http://www.besa.de/ BESA GmbH]) for visualization of MEEG data. Initially it was meant to be complementary visualization tool to [http://www.besa.de/products/besa-research/besa-research-overview/ BESA Research], however, it could be used in more general context. In this document we demonstrate the possibility of using BESA Plot as a visualization tool in the [https://www.mathworks.com/ Matlab] based open source package for MEEG data analysis [http://www.fieldtriptoolbox.org/ FieldTrip].&lt;br /&gt;
&lt;br /&gt;
Since BESA Plot can be started with command line arguments, it can be called directly from Matlab and the required input parameters (e.g. data file, settings and plotting modalities) can be committed as such arguments. There are four files necessary for starting BESA Plot from Matlab and visualizing the corresponding data: 1) a data file (e.g. test1.avr), 2) a file containing the channel labels and coordinates (e.g. test1.elp), 3) a control file containing the plotting commands for BESA Plot (e.g. test1.bpctrl) and 4) a dataset file containing general information about the data file (e.g. test1.avr.dataset). These files should be generated dynamically in Matlab in order to be able to plot the Matlab data in BESA Plot.&lt;br /&gt;
&lt;br /&gt;
== Generating the data file ==&lt;br /&gt;
First of all we need the data which are going to be saved as an avr-file. This is usually a Matlab structure generated  in FieldTrip with the function &amp;lt;tt&amp;gt;ft_timelockanalysis&amp;lt;/tt&amp;gt;. Its general form is something like this:&lt;br /&gt;
&amp;lt;tt&amp;gt;&lt;br /&gt;
       avg: [147x271 double]&lt;br /&gt;
       var: [147x271 double]&lt;br /&gt;
      time: [1x271 double]&lt;br /&gt;
       dof: [147x271 double]&lt;br /&gt;
     label: {147x1 cell}&lt;br /&gt;
    dimord: 'chan_time'&lt;br /&gt;
      grad: [1x1 struct]&lt;br /&gt;
       cfg: [1x1 struct]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/tt&amp;gt;&lt;br /&gt;
In order to create a data file from that structure one needs the function &amp;lt;tt&amp;gt;besa_save2Avr&amp;lt;/tt&amp;gt; which can be found in the FieldTrip installation in the folder &amp;lt;tt&amp;gt;external\besa&amp;lt;/tt&amp;gt; or can be downloaded directly from [ftp://h1772544.stratoserver.net/public/Matlab/MATLAB2BESA.zip BESA’s ftp-server]. Just unpack the archive and add the path to the Matlab path (e.g. &amp;lt;tt&amp;gt;addpath(‘D:\Path\to\MATLAB2BESA’)&amp;lt;/tt&amp;gt;).&lt;br /&gt;
Use the function like this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
status = besa_save2Avr(cfg.datapath, DataFile, data_matrix, ...&lt;br /&gt;
        time_samples, channel_labels, data_scale_factor, time_scale_factor);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Generating the channel file (*.elp) ==&lt;br /&gt;
This file contains the channel type, the channel labels and the spherical coordinates of the channels. It can be created using the function &amp;lt;tt&amp;gt;besa_save2Elp&amp;lt;/tt&amp;gt; again from the package &amp;lt;tt&amp;gt;MATLAB2BESA&amp;lt;/tt&amp;gt;. Use the function like this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
status = besa_save2Elp(cfg.datapath, ElpFile, ...&lt;br /&gt;
        SphericalCoords, channel_labels, channel_type);&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
== Creating the BESA Plot control file ==&lt;br /&gt;
This is the actual plotting script. It follows the syntax of a scripting language defined in BESA Plot. For more details about the scripting language please refer to the program help. For this file format there is no writer function, since it can contain different scripts for different visualization scenarios. One possible script for plotting two dipoles in a schematic head could look like this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
set color=black&lt;br /&gt;
set size=16&lt;br /&gt;
set dipole number=1 xloc=0.645106 yloc=0.159181 zloc=0.288564 xori=0.147790 yori=-0.726931 zori=-0.670619 color=blue length=0.1 diameter=0.05&lt;br /&gt;
set dipole number=2 xloc=-0.645106 yloc=0.159181 zloc=0.288564 xori=-0.166429 yori=-0.567066 zori=-0.806683 color=blue length=0.1 diameter=0.05&lt;br /&gt;
head width=35 height=40 viewpoint=top brain=on x=20.0 y=75.0&lt;br /&gt;
head width=35 height=40 viewpoint=back brain=on x=20.0 y=30.0&lt;br /&gt;
head width=35 height=40 viewpoint=left brain=on x=77.0 y=77.0&lt;br /&gt;
set dataset=1&lt;br /&gt;
set mapuV=18&lt;br /&gt;
set mapcolor negative=blue positive=red electrode=none&lt;br /&gt;
set mapsize=35&lt;br /&gt;
set maptype=amplitude&lt;br /&gt;
set maplambda=1E-5&lt;br /&gt;
set mapviewpoint=top&lt;br /&gt;
set maprange maximumuV=461 minimumuV=-419 zerouV=0.0 contours=on&lt;br /&gt;
map latency=110.6 end=150.4 step=20 mean=on label=on x=77.0 y=30.0&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
The result after running the script is shown in Figure 1.&lt;/div&gt;</summary>
		<author><name>Todor</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Visualization_with_BESA_Plot_in_FieldTrip</id>
		<title>Visualization with BESA Plot in FieldTrip</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Visualization_with_BESA_Plot_in_FieldTrip"/>
				<updated>2016-07-07T11:45:56Z</updated>
		
		<summary type="html">&lt;p&gt;Todor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[http://www.besa.de/downloads/besa-plot/ BESA Plot] is a free tool created by [https://www.psychologie.uni-konstanz.de/forschung/clinicalpsychology/mitarbeiter/mitarbeiter-detailseite/berg-patrick-22/7347/7149/ Patrick Berg] ([http://www.besa.de/ BESA GmbH]) for visualization of MEEG data. Initially it was meant to be complementary visualization tool to [http://www.besa.de/products/besa-research/besa-research-overview/ BESA Research], however, it could be used in more general context. In this document we demonstrate the possibility of using BESA Plot as a visualization tool in the [https://www.mathworks.com/ Matlab] based open source package for MEEG data analysis [http://www.fieldtriptoolbox.org/ FieldTrip].&lt;br /&gt;
&lt;br /&gt;
Since BESA Plot can be started with command line arguments, it can be called directly from Matlab and the required input parameters (e.g. data file, settings and plotting modalities) can be committed as such arguments. There are four files necessary for starting BESA Plot from Matlab and visualizing the corresponding data: 1) a data file (e.g. test1.avr), 2) a file containing the channel labels and coordinates (e.g. test1.elp), 3) a control file containing the plotting commands for BESA Plot (e.g. test1.bpctrl) and 4) a dataset file containing general information about the data file (e.g. test1.avr.dataset). These files should be generated dynamically in Matlab in order to be able to plot the Matlab data in BESA Plot.&lt;br /&gt;
&lt;br /&gt;
== Generating the data file ==&lt;br /&gt;
First of all we need the data which are going to be saved as an avr-file. This is usually a Matlab structure generated  in FieldTrip with the function &amp;lt;tt&amp;gt;ft_timelockanalysis&amp;lt;/tt&amp;gt;. Its general form is something like this:&lt;br /&gt;
&amp;lt;tt&amp;gt;&lt;br /&gt;
       avg: [147x271 double]&lt;br /&gt;
       var: [147x271 double]&lt;br /&gt;
      time: [1x271 double]&lt;br /&gt;
       dof: [147x271 double]&lt;br /&gt;
     label: {147x1 cell}&lt;br /&gt;
    dimord: 'chan_time'&lt;br /&gt;
      grad: [1x1 struct]&lt;br /&gt;
       cfg: [1x1 struct]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/tt&amp;gt;&lt;br /&gt;
In order to create a data file from that structure one needs the function &amp;lt;tt&amp;gt;besa_save2Avr&amp;lt;/tt&amp;gt; which can be found in the FieldTrip installation in the folder &amp;lt;tt&amp;gt;external\besa&amp;lt;/tt&amp;gt; or can be downloaded directly from [ftp://h1772544.stratoserver.net/public/Matlab/MATLAB2BESA.zip BESA’s ftp-server]:. Just unpack the archive and add the path to the Matlab path (e.g. &amp;lt;tt&amp;gt;addpath(‘D:\Path\to\MATLAB2BESA’)&amp;lt;/tt&amp;gt;).&lt;br /&gt;
Use the function like this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
status = besa_save2Avr(cfg.datapath, DataFile, data_matrix, ...&lt;br /&gt;
        time_samples, channel_labels, data_scale_factor, time_scale_factor);&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Todor</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Visualization_with_BESA_Plot_in_FieldTrip</id>
		<title>Visualization with BESA Plot in FieldTrip</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Visualization_with_BESA_Plot_in_FieldTrip"/>
				<updated>2016-07-07T11:44:40Z</updated>
		
		<summary type="html">&lt;p&gt;Todor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[http://www.besa.de/downloads/besa-plot/ BESA Plot] is a free tool created by [https://www.psychologie.uni-konstanz.de/forschung/clinicalpsychology/mitarbeiter/mitarbeiter-detailseite/berg-patrick-22/7347/7149/ Patrick Berg] ([http://www.besa.de/ BESA GmbH]) for visualization of MEEG data. Initially it was meant to be complementary visualization tool to [http://www.besa.de/products/besa-research/besa-research-overview/ BESA Research], however, it could be used in more general context. In this document we demonstrate the possibility of using BESA Plot as a visualization tool in the [https://www.mathworks.com/ Matlab] based open source package for MEEG data analysis [http://www.fieldtriptoolbox.org/ FieldTrip].&lt;br /&gt;
&lt;br /&gt;
Since BESA Plot can be started with command line arguments, it can be called directly from Matlab and the required input parameters (e.g. data file, settings and plotting modalities) can be committed as such arguments. There are four files necessary for starting BESA Plot from Matlab and visualizing the corresponding data: 1) a data file (e.g. test1.avr), 2) a file containing the channel labels and coordinates (e.g. test1.elp), 3) a control file containing the plotting commands for BESA Plot (e.g. test1.bpctrl) and 4) a dataset file containing general information about the data file (e.g. test1.avr.dataset). These files should be generated dynamically in Matlab in order to be able to plot the Matlab data in BESA Plot.&lt;br /&gt;
&lt;br /&gt;
== Generating the data file ==&lt;br /&gt;
First of all we need the data which are going to be saved as an avr-file. This is usually a Matlab structure generated  in FieldTrip with the function &amp;lt;tt&amp;gt;ft_timelockanalysis&amp;lt;/tt&amp;gt;. Its general form is something like this:&lt;br /&gt;
&amp;lt;tt&amp;gt;&lt;br /&gt;
       avg: [147x271 double]&lt;br /&gt;
       var: [147x271 double]&lt;br /&gt;
      time: [1x271 double]&lt;br /&gt;
       dof: [147x271 double]&lt;br /&gt;
     label: {147x1 cell}&lt;br /&gt;
    dimord: 'chan_time'&lt;br /&gt;
      grad: [1x1 struct]&lt;br /&gt;
       cfg: [1x1 struct]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/tt&amp;gt;&lt;br /&gt;
In order to create a data file from that structure one needs the function &amp;lt;tt&amp;gt;besa_save2Avr&amp;lt;/tt&amp;gt; which can be found in the FieldTrip installation in the folder &amp;lt;tt&amp;gt;external\besa&amp;lt;/tt&amp;gt; or can be downloaded directly from BESA’s ftp-server here: [ftp://h1772544.stratoserver.net/public/Matlab/MATLAB2BESA.zip]. Just unpack the archive and add the path to the Matlab path (e.g. &amp;lt;tt&amp;gt;addpath(‘D:\Path\to\MATLAB2BESA’)&amp;lt;/tt&amp;gt;).&lt;br /&gt;
Use the function like this:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;&lt;br /&gt;
status = besa_save2Avr(cfg.datapath, DataFile, data_matrix, ...&lt;br /&gt;
        time_samples, channel_labels, data_scale_factor, time_scale_factor);&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Todor</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Visualization_with_BESA_Plot_in_FieldTrip</id>
		<title>Visualization with BESA Plot in FieldTrip</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Visualization_with_BESA_Plot_in_FieldTrip"/>
				<updated>2016-07-07T11:43:25Z</updated>
		
		<summary type="html">&lt;p&gt;Todor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[http://www.besa.de/downloads/besa-plot/ BESA Plot] is a free tool created by [https://www.psychologie.uni-konstanz.de/forschung/clinicalpsychology/mitarbeiter/mitarbeiter-detailseite/berg-patrick-22/7347/7149/ Patrick Berg] ([http://www.besa.de/ BESA GmbH]) for visualization of MEEG data. Initially it was meant to be complementary visualization tool to [http://www.besa.de/products/besa-research/besa-research-overview/ BESA Research], however, it could be used in more general context. In this document we demonstrate the possibility of using BESA Plot as a visualization tool in the [https://www.mathworks.com/ Matlab] based open source package for MEEG data analysis [http://www.fieldtriptoolbox.org/ FieldTrip].&lt;br /&gt;
&lt;br /&gt;
Since BESA Plot can be started with command line arguments, it can be called directly from Matlab and the required input parameters (e.g. data file, settings and plotting modalities) can be committed as such arguments. There are four files necessary for starting BESA Plot from Matlab and visualizing the corresponding data: 1) a data file (e.g. test1.avr), 2) a file containing the channel labels and coordinates (e.g. test1.elp), 3) a control file containing the plotting commands for BESA Plot (e.g. test1.bpctrl) and 4) a dataset file containing general information about the data file (e.g. test1.avr.dataset). These files should be generated dynamically in Matlab in order to be able to plot the Matlab data in BESA Plot.&lt;br /&gt;
&lt;br /&gt;
== Generating the data file ==&lt;br /&gt;
First of all we need the data which are going to be saved as an avr-file. This is usually a Matlab structure generated  in FieldTrip with the function &amp;lt;tt&amp;gt;ft_timelockanalysis&amp;lt;/tt&amp;gt;. Its general form is something like this:&lt;br /&gt;
&amp;lt;tt&amp;gt;&lt;br /&gt;
       avg: [147x271 double]&lt;br /&gt;
       var: [147x271 double]&lt;br /&gt;
      time: [1x271 double]&lt;br /&gt;
       dof: [147x271 double]&lt;br /&gt;
     label: {147x1 cell}&lt;br /&gt;
    dimord: 'chan_time'&lt;br /&gt;
      grad: [1x1 struct]&lt;br /&gt;
       cfg: [1x1 struct]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/tt&amp;gt;&lt;br /&gt;
In order to create a data file from that structure one needs the function &amp;lt;tt&amp;gt;besa_save2Avr&amp;lt;/tt&amp;gt; which can be found in the FieldTrip installation in the folder &amp;lt;tt&amp;gt;external\besa&amp;lt;/tt&amp;gt; or can be downloaded directly from BESA’s ftp-server here: [ftp://h1772544.stratoserver.net/public/Matlab/MATLAB2BESA.zip]. Just unpack the archive and add the path to the Matlab path (e.g. &amp;lt;source lang=&amp;quot;matlab&amp;quot;&amp;gt;addpath(‘D:\Path\to\MATLAB2BESA’)&amp;lt;/source&amp;gt;).&lt;br /&gt;
Use the function like this:&lt;/div&gt;</summary>
		<author><name>Todor</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Visualization_with_BESA_Plot_in_FieldTrip</id>
		<title>Visualization with BESA Plot in FieldTrip</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Visualization_with_BESA_Plot_in_FieldTrip"/>
				<updated>2016-07-07T11:40:09Z</updated>
		
		<summary type="html">&lt;p&gt;Todor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[http://www.besa.de/downloads/besa-plot/ BESA Plot] is a free tool created by [https://www.psychologie.uni-konstanz.de/forschung/clinicalpsychology/mitarbeiter/mitarbeiter-detailseite/berg-patrick-22/7347/7149/ Patrick Berg] ([http://www.besa.de/ BESA GmbH]) for visualization of MEEG data. Initially it was meant to be complementary visualization tool to [http://www.besa.de/products/besa-research/besa-research-overview/ BESA Research], however, it could be used in more general context. In this document we demonstrate the possibility of using BESA Plot as a visualization tool in the [https://www.mathworks.com/ Matlab] based open source package for MEEG data analysis [http://www.fieldtriptoolbox.org/ FieldTrip].&lt;br /&gt;
&lt;br /&gt;
Since BESA Plot can be started with command line arguments, it can be called directly from Matlab and the required input parameters (e.g. data file, settings and plotting modalities) can be committed as such arguments. There are four files necessary for starting BESA Plot from Matlab and visualizing the corresponding data: 1) a data file (e.g. test1.avr), 2) a file containing the channel labels and coordinates (e.g. test1.elp), 3) a control file containing the plotting commands for BESA Plot (e.g. test1.bpctrl) and 4) a dataset file containing general information about the data file (e.g. test1.avr.dataset). These files should be generated dynamically in Matlab in order to be able to plot the Matlab data in BESA Plot.&lt;br /&gt;
&lt;br /&gt;
== Generating the data file ==&lt;br /&gt;
First of all we need the data which are going to be saved as an avr-file. This is usually a Matlab structure generated  in FieldTrip with the function &amp;lt;tt&amp;gt;ft_timelockanalysis&amp;lt;/tt&amp;gt;. Its general form is something like this:&lt;br /&gt;
&amp;lt;tt&amp;gt;&lt;br /&gt;
       avg: [147x271 double]&lt;br /&gt;
       var: [147x271 double]&lt;br /&gt;
      time: [1x271 double]&lt;br /&gt;
       dof: [147x271 double]&lt;br /&gt;
     label: {147x1 cell}&lt;br /&gt;
    dimord: 'chan_time'&lt;br /&gt;
      grad: [1x1 struct]&lt;br /&gt;
       cfg: [1x1 struct]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/tt&amp;gt;&lt;/div&gt;</summary>
		<author><name>Todor</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Visualization_with_BESA_Plot_in_FieldTrip</id>
		<title>Visualization with BESA Plot in FieldTrip</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Visualization_with_BESA_Plot_in_FieldTrip"/>
				<updated>2016-07-07T11:39:30Z</updated>
		
		<summary type="html">&lt;p&gt;Todor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[http://www.besa.de/downloads/besa-plot/ BESA Plot] is a free tool created by [https://www.psychologie.uni-konstanz.de/forschung/clinicalpsychology/mitarbeiter/mitarbeiter-detailseite/berg-patrick-22/7347/7149/ Patrick Berg] ([http://www.besa.de/ BESA GmbH]) for visualization of MEEG data. Initially it was meant to be complementary visualization tool to [http://www.besa.de/products/besa-research/besa-research-overview/ BESA Research], however, it could be used in more general context. In this document we demonstrate the possibility of using BESA Plot as a visualization tool in the [https://www.mathworks.com/ Matlab] based open source package for MEEG data analysis [http://www.fieldtriptoolbox.org/ FieldTrip].&lt;br /&gt;
&lt;br /&gt;
Since BESA Plot can be started with command line arguments, it can be called directly from Matlab and the required input parameters (e.g. data file, settings and plotting modalities) can be committed as such arguments. There are four files necessary for starting BESA Plot from Matlab and visualizing the corresponding data: 1) a data file (e.g. test1.avr), 2) a file containing the channel labels and coordinates (e.g. test1.elp), 3) a control file containing the plotting commands for BESA Plot (e.g. test1.bpctrl) and 4) a dataset file containing general information about the data file (e.g. test1.avr.dataset). These files should be generated dynamically in Matlab in order to be able to plot the Matlab data in BESA Plot.&lt;br /&gt;
&lt;br /&gt;
== Generating the data file ==&lt;br /&gt;
First of all we need the data which are going to be saved as an avr-file. This is usually a Matlab structure generated  in FieldTrip with the function &amp;lt;tt&amp;gt;ft_timelockanalysis&amp;lt;/tt&amp;gt;. Its general form is something like this:&lt;br /&gt;
&amp;lt;tt&amp;gt;&lt;br /&gt;
data_avg = &lt;br /&gt;
       avg: [147x271 double]&lt;br /&gt;
       var: [147x271 double]&lt;br /&gt;
      time: [1x271 double]&lt;br /&gt;
       dof: [147x271 double]&lt;br /&gt;
     label: {147x1 cell}&lt;br /&gt;
    dimord: 'chan_time'&lt;br /&gt;
      grad: [1x1 struct]&lt;br /&gt;
       cfg: [1x1 struct]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/tt&amp;gt;&lt;/div&gt;</summary>
		<author><name>Todor</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Visualization_with_BESA_Plot_in_FieldTrip</id>
		<title>Visualization with BESA Plot in FieldTrip</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Visualization_with_BESA_Plot_in_FieldTrip"/>
				<updated>2016-07-07T11:38:28Z</updated>
		
		<summary type="html">&lt;p&gt;Todor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[http://www.besa.de/downloads/besa-plot/ BESA Plot] is a free tool created by [https://www.psychologie.uni-konstanz.de/forschung/clinicalpsychology/mitarbeiter/mitarbeiter-detailseite/berg-patrick-22/7347/7149/ Patrick Berg] ([http://www.besa.de/ BESA GmbH]) for visualization of MEEG data. Initially it was meant to be complementary visualization tool to [http://www.besa.de/products/besa-research/besa-research-overview/ BESA Research], however, it could be used in more general context. In this document we demonstrate the possibility of using BESA Plot as a visualization tool in the [https://www.mathworks.com/ Matlab] based open source package for MEEG data analysis [http://www.fieldtriptoolbox.org/ FieldTrip].&lt;br /&gt;
&lt;br /&gt;
Since BESA Plot can be started with command line arguments, it can be called directly from Matlab and the required input parameters (e.g. data file, settings and plotting modalities) can be committed as such arguments. There are four files necessary for starting BESA Plot from Matlab and visualizing the corresponding data: 1) a data file (e.g. test1.avr), 2) a file containing the channel labels and coordinates (e.g. test1.elp), 3) a control file containing the plotting commands for BESA Plot (e.g. test1.bpctrl) and 4) a dataset file containing general information about the data file (e.g. test1.avr.dataset). These files should be generated dynamically in Matlab in order to be able to plot the Matlab data in BESA Plot.&lt;br /&gt;
&lt;br /&gt;
== Generating the data file ==&lt;br /&gt;
First of all we need the data which are going to be saved as an avr-file. This is usually a Matlab structure generated  in FieldTrip with the function &amp;lt;tt&amp;gt;ft_timelockanalysis&amp;lt;/tt&amp;gt;. Its general form is something like this:&lt;/div&gt;</summary>
		<author><name>Todor</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Visualization_with_BESA_Plot_in_FieldTrip</id>
		<title>Visualization with BESA Plot in FieldTrip</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Visualization_with_BESA_Plot_in_FieldTrip"/>
				<updated>2016-07-07T11:34:25Z</updated>
		
		<summary type="html">&lt;p&gt;Todor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[http://www.besa.de/downloads/besa-plot/ BESA Plot] is a free tool created by [https://www.psychologie.uni-konstanz.de/forschung/clinicalpsychology/mitarbeiter/mitarbeiter-detailseite/berg-patrick-22/7347/7149/ Patrick Berg] ([http://www.besa.de/ BESA GmbH]) for visualization of MEEG data. Initially it was meant to be complementary visualization tool to [http://www.besa.de/products/besa-research/besa-research-overview/ BESA Research], however, it could be used in more general context. In this document we demonstrate the possibility of using BESA Plot as a visualization tool in the [https://www.mathworks.com/ Matlab] based open source package for MEEG data analysis [http://www.fieldtriptoolbox.org/ FieldTrip].&lt;/div&gt;</summary>
		<author><name>Todor</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Visualization_with_BESA_Plot_in_FieldTrip</id>
		<title>Visualization with BESA Plot in FieldTrip</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Visualization_with_BESA_Plot_in_FieldTrip"/>
				<updated>2016-07-07T11:30:01Z</updated>
		
		<summary type="html">&lt;p&gt;Todor: Created page with &amp;quot;[http://www.besa.de/downloads/besa-plot/ BESA Plot] (http://www.besa.de/downloads/besa-plot/) is a free tool created by Patrick Berg (https://www.psychologie.uni-konstanz.de/f...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[http://www.besa.de/downloads/besa-plot/ BESA Plot] (http://www.besa.de/downloads/besa-plot/) is a free tool created by Patrick Berg (https://www.psychologie.uni-konstanz.de/forschung/clinicalpsychology/mitarbeiter/mitarbeiter-detailseite/berg-patrick-22/7347/7149/) (BESA GmbH) for visualization of MEEG data. Initially it was meant to be complementary visualization tool to BESA Research, however, it could be used in more general context. In this document we demonstrate the possibility to use BESA Plot as a visualization tool in the Matlab based open source package for MEEG data analysis FieldTrip (http://www.fieldtriptoolbox.org/).&lt;/div&gt;</summary>
		<author><name>Todor</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:52:59Z</updated>
		
		<summary type="html">&lt;p&gt;Todor: /* FAQ */&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 MRI===&lt;br /&gt;
&lt;br /&gt;
[[Marking AC-PC Points in BESA MRI]]&lt;br /&gt;
&lt;br /&gt;
=== BESA Statistics ===&lt;br /&gt;
&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>Todor</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:28:34Z</updated>
		
		<summary type="html">&lt;p&gt;Todor: /* FAQ */&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;
[[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>Todor</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:25:31Z</updated>
		
		<summary type="html">&lt;p&gt;Todor: /* Trouble shooting in BESA MRI and BESA Statistics */&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;
[[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 in BESA MRI and BESA Statistics ===&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>Todor</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:25:17Z</updated>
		
		<summary type="html">&lt;p&gt;Todor: /* Data Review and Analysis */&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;
[[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 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>Todor</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:22:46Z</updated>
		
		<summary type="html">&lt;p&gt;Todor: /* Data Review and Analysis */&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;
[[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 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>Todor</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:10:40Z</updated>
		
		<summary type="html">&lt;p&gt;Todor: /* Data Review and Analysis */&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;
=== 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>Todor</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:07:52Z</updated>
		
		<summary type="html">&lt;p&gt;Todor: /* Data Review and Analysis */&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;
=== 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>Todor</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:03:54Z</updated>
		
		<summary type="html">&lt;p&gt;Todor: /* BESA Statistics */&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;
=== 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>Todor</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:02:17Z</updated>
		
		<summary type="html">&lt;p&gt;Todor: /* Data Review and Analysis */&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;
=== 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;
[[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>Todor</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-12T13:57:15Z</updated>
		
		<summary type="html">&lt;p&gt;Todor: /* File Formats */&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;
=== 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;
[[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>Todor</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Paradigm_File_Format_in_BESA</id>
		<title>Paradigm File Format in BESA</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Paradigm_File_Format_in_BESA"/>
				<updated>2016-05-12T13:51:25Z</updated>
		
		<summary type="html">&lt;p&gt;Todor: &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;
== General remarks ==&lt;br /&gt;
A paradigm description file (“PDG file”) contains the information which is relevant for describing an experimental setup in terms of the stimulation and response events that occurred. To describe the experimental paradigm, three terms are introduced:&lt;br /&gt;
# An '''attribute''' is used to group trigger events into a certain class. For example, in an auditory experiment, triggers could be grouped according to an attribute “modality” to distinguish stimulation and response, and another attribute “side” to distinguish left and right.&lt;br /&gt;
# An '''attribute value''' defines how a trigger event is classified in the class defined by an attribute. For example, the trigger with the code 1 could be a tone stimulus, and the trigger with the code 2 could be the subject’s response. That means that for the “modality” attribute, trigger 1 would receive an attribute value “tone”, whereas trigger 2 would receive an attribute value “response”.&lt;br /&gt;
# A '''condition''' defines which trigger events form the set of events that should be averaged. For example, this could simply be all trigger events with the modality “tone”, or all trigger events which have the modality “response”, and follow a trigger event with the modality “tone”.&lt;br /&gt;
&lt;br /&gt;
The PDG file is written in ASCII format and can thus be viewed and edited in any text editor. It is subdivided into a maximum of 9 sections:&lt;br /&gt;
# [Attributes] 	Attributes which are used to group the trigger events. This section is mandatory.&lt;br /&gt;
# [Values]	A table of attribute values which are defined for the triggers used in the experiment.&lt;br /&gt;
# [Names]	Names of conditions which are defined in detail in section 8&lt;br /&gt;
# [Epochs]	For each condition, averaging epochs, baseline epochs, and some other epochs are defined&lt;br /&gt;
# [Thresholds]	Threshold settings used for artifact rejection&lt;br /&gt;
# [Averaging]	Defines which conditions are selected for averaging&lt;br /&gt;
# [Filter]		Filter settings for averaging&lt;br /&gt;
# [TimeFrequency]	Settings for time-frequency analysis&lt;br /&gt;
# [Selections]	Each condition is written here as a statement using Boolean logic &lt;br /&gt;
# [ArtifactScan] The artifact scan results are written here&lt;br /&gt;
&lt;br /&gt;
Most sections can be omitted; their entries are then filled with default values. The default settings are given in the detailed description (see below). The most relevant sections for describing an experiment are '''Attributes''', '''Values''', and '''Selections'''.&lt;br /&gt;
&lt;br /&gt;
Connection to BESA paradigm editing tool:&lt;br /&gt;
Sections 1 and 2 define entries in the “Trigger” tab. &lt;br /&gt;
Sections 3 and 9 define entries in the “Condition” tab. &lt;br /&gt;
Section 4 defines entries in the “Epoch” tab. &lt;br /&gt;
Sections 5 and 10 define entries in the “Artifact” tab.&lt;br /&gt;
Section 6 defines entries in the “Average” tab.&lt;br /&gt;
Section 7 defines entries in the “Filter” tab.&lt;br /&gt;
Section 8 defines entries in the “Coherence” tab (if available).&lt;br /&gt;
&lt;br /&gt;
All values can be edited in the respective tabs of the paradigm editing tool.&lt;br /&gt;
&lt;br /&gt;
== Detailed description of the sections ==&lt;br /&gt;
=== Attributes ===&lt;br /&gt;
This section is mandatory.&lt;br /&gt;
It holds the attributes which are used to group the trigger events. The first attribute is always the trigger code (“code”). Attributes are separated by a tabulator. By default, the ERP module defines a second attribute “name” which can take trigger names as attribute values.&lt;br /&gt;
&lt;br /&gt;
'''Example:'''&lt;br /&gt;
&amp;lt;source lang=&amp;quot;dos&amp;quot;&amp;gt;&lt;br /&gt;
[Attributes]&lt;br /&gt;
code	name	modality&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
=== Values ===&lt;br /&gt;
This section holds a table of attribute values which are defined for the triggers used in the experiment. Each row defines one trigger. The first column holds the trigger codes, since the trigger code is the only mandatory attribute. The second column holds the values for the second attribute (default in the ERP module: name), and so on. If no value is defined for an attribute, “NULL” is entered. For trigger codes which are not listed, no values are defined.&lt;br /&gt;
&lt;br /&gt;
'''Example:'''&lt;br /&gt;
&amp;lt;source lang=&amp;quot;dos&amp;quot;&amp;gt;&lt;br /&gt;
[Values]&lt;br /&gt;
0	NULL	NULL&lt;br /&gt;
1	tone	auditory&lt;br /&gt;
2	rare	auditory&lt;br /&gt;
3	frequent	auditory&lt;br /&gt;
128	response	motor&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
The trigger with code 0 has no values defined, the trigger with code 1 has the name “tone” and the modality “auditory”, and so on.&lt;br /&gt;
&lt;br /&gt;
=== Names ===&lt;br /&gt;
This section holds the names of conditions which are defined in detail in the section “Selections”. It is not necessary to give names to conditions. By default, conditions are simply named “Condition 1” through “Condition 32”. If a name is given, it is followed by the zero-based index of the condition it refers to. This enables mixing of conditions with user-given names and conditions with default names.&lt;br /&gt;
&lt;br /&gt;
'''Example:'''&lt;br /&gt;
&amp;lt;source lang=&amp;quot;dos&amp;quot;&amp;gt;&lt;br /&gt;
[Names]&lt;br /&gt;
target	0&lt;br /&gt;
hit	1&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The first condition obtains the name “target”, the second one obtains the name “hit”.&lt;br /&gt;
&lt;br /&gt;
=== Epochs ===&lt;br /&gt;
This section holds the averaging epochs for each condition. Furthermore, additional epochs can be specified. Each epoch is defined by a floating point value which gives the pre-stimulus interval in milliseconds (ms), and a second floating point value which gives the post-stimulus interval in ms. Epochs are given in the following order:&lt;br /&gt;
&lt;br /&gt;
'''Averaging epoch:''' 	The epoch used for averaging&lt;br /&gt;
&lt;br /&gt;
'''Baseline epoch:'''	The epoch over which the baseline is calculated&lt;br /&gt;
&lt;br /&gt;
'''Epoch used for artifact rejection:'''	The epoch in which the data are checked for artifacts&lt;br /&gt;
&lt;br /&gt;
'''Stimulus artifact epoch:'''	An epoch where a stimulus artifact occurred. This epoch is interpolated over before artifact rejection takes place&lt;br /&gt;
&lt;br /&gt;
'''Stimulus delay:'''	Only one value. This value gives the delay of the stimulus relative to the trigger event (e.g. when tactile stimulation is performed, where air pressure builds up after the trigger was set).&lt;br /&gt;
&lt;br /&gt;
Not all epochs have to be provided. If the epochs list for a condition is incomplete, default values are used.&lt;br /&gt;
&lt;br /&gt;
By default, the following values are used:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! style=&amp;quot;font-weight: bold;&amp;quot; | Epoch&lt;br /&gt;
! style=&amp;quot;font-weight: bold;&amp;quot; | Pre-stimulus value&lt;br /&gt;
! style=&amp;quot;font-weight: bold;&amp;quot; | Post-stimulus value&lt;br /&gt;
|-&lt;br /&gt;
| Averaging&lt;br /&gt;
| -100&lt;br /&gt;
| 500&lt;br /&gt;
|-&lt;br /&gt;
| Baseline&lt;br /&gt;
| -100&lt;br /&gt;
| 0&lt;br /&gt;
|-&lt;br /&gt;
| Artifact rejection  &lt;br /&gt;
| -100&lt;br /&gt;
| 500&lt;br /&gt;
|-&lt;br /&gt;
| Stimulus artifact  &lt;br /&gt;
| 0&lt;br /&gt;
| 0&lt;br /&gt;
|-&lt;br /&gt;
| Stimulus delay  &lt;br /&gt;
| 0&lt;br /&gt;
| &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
'''Example:'''&lt;br /&gt;
&amp;lt;source lang=&amp;quot;dos&amp;quot;&amp;gt;&lt;br /&gt;
[Epochs]&lt;br /&gt;
-500.0	1000.0	-100.0	0.0	-500.0	1000.0	0.0	0.0	0.0&lt;br /&gt;
-800.0	500.0	-800.0	-700.0	-800.0	500.0	0.0	0.0	0.0&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The first condition is averaged from 500ms before the trigger event to 1000ms after the trigger event. Baseline is calculated in the pre-stimulus interval between 100ms before the trigger event and the trigger event. Artifacts are rejected between –500ms and +1000ms, i.e. over the entire averaging epoch. No stimulus artifact interval and no stimulus delay is given.&lt;br /&gt;
&lt;br /&gt;
For the second condition, averaging and artifact rejection are set to –800...500 ms, and baseline calculation is performed in the interval from –800ms to –700ms. Again, no stimulus artifact interval, and no stimulus delay is given.&lt;br /&gt;
&lt;br /&gt;
=== Thresholds ===&lt;br /&gt;
This section holds values for artifact rejection. It can hold two sets of values. The first set contains settings for the color normalization of the BESA artifact scan tool. These values are not directly used for artifact rejection, but merely for visual control if the BESA artifact scan tool is used for artifact rejection. &lt;br /&gt;
&lt;br /&gt;
The line following the first set of values contains either the string “AUTO_REJECT”, or “MANUAL_REJECT”. &lt;br /&gt;
The second set contains settings for automatic rejection of artifacts. It is used if the preceding line contains the string “AUTO_REJECT”. Otherwise, only artifacts which were manually marked in the data are excluded from the averaging process.&lt;br /&gt;
&lt;br /&gt;
The following table gives the order of the entries in the thresholds section:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! style=&amp;quot;font-weight: bold;&amp;quot; | Line #&lt;br /&gt;
! style=&amp;quot;font-weight: bold;&amp;quot; | First column&lt;br /&gt;
! style=&amp;quot;font-weight: bold;&amp;quot; | Second column&lt;br /&gt;
|-&lt;br /&gt;
| 1&lt;br /&gt;
| Max. amplitude in EEG [µV] (display)&lt;br /&gt;
| Max. amplitude in MEG [fT or fT/cm] (display)&lt;br /&gt;
|-&lt;br /&gt;
| 2&lt;br /&gt;
| Square root of variance of gradient in EEG (display)&lt;br /&gt;
| Square root of variance of gradient in MEG (display)&lt;br /&gt;
|-&lt;br /&gt;
| 3&lt;br /&gt;
| Max. gradient in EEG (display)&lt;br /&gt;
| Max. gradient in MEG (display)&lt;br /&gt;
|-&lt;br /&gt;
| 4&lt;br /&gt;
| AUTO_REJECT or MANUAL_REJECT&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| 5&lt;br /&gt;
| Max. amplitude in EEG [µV] (for rejection)&lt;br /&gt;
| Max. amplitude in MEG [fT or fT/cm] (for rejection)&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| Square root of variance of gradient in EEG (for rejection)&lt;br /&gt;
| Square root of variance of gradient in MEG (for rejection)&lt;br /&gt;
|-&lt;br /&gt;
| 7&lt;br /&gt;
| Max. gradient in EEG (for rejection)&lt;br /&gt;
| Max. gradient in MEG (for rejection)&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
If no values are given , the following values are used by default:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! style=&amp;quot;font-weight: bold;&amp;quot; | Threshold type&lt;br /&gt;
! style=&amp;quot;font-weight: bold;&amp;quot; | EEG&lt;br /&gt;
! style=&amp;quot;font-weight: bold;&amp;quot; | MEG&lt;br /&gt;
|-&lt;br /&gt;
| Max. amplitude&lt;br /&gt;
| 100 µV&lt;br /&gt;
| 1000 fT or fT/cm (depending on data)&lt;br /&gt;
|-&lt;br /&gt;
| Variance of gradient&lt;br /&gt;
| 0.001 µV/∂T&lt;br /&gt;
| 64 fT/∂T or 64 fT/(∂T cm) (depending on data)&lt;br /&gt;
|-&lt;br /&gt;
| Max. gradient&lt;br /&gt;
| 75 µV/∂T&lt;br /&gt;
| 800 fT/∂T or fT/(cm ∂T) (depending on data)&lt;br /&gt;
|}&lt;br /&gt;
The unit &amp;amp;part;T stands for the sampling interval.&lt;br /&gt;
&lt;br /&gt;
'''Example:'''&lt;br /&gt;
&amp;lt;source lang=&amp;quot;dos&amp;quot;&amp;gt;&lt;br /&gt;
[Thresholds]&lt;br /&gt;
100.0	1000.0&lt;br /&gt;
0.001	64.000&lt;br /&gt;
75.0	800.0&lt;br /&gt;
AUTO_REJECT&lt;br /&gt;
100.0	1000.0&lt;br /&gt;
0.001	64.000&lt;br /&gt;
75.0	800.0&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Automatic artifact rejection is active. The rejection thresholds are:&lt;br /&gt;
&lt;br /&gt;
* 100 µV for EEG amplitude, &lt;br /&gt;
* 1000 fT for MEG amplitude, &lt;br /&gt;
* µV/&amp;amp;part;T for the square root of the variance of the gradient of the EEG signal, &lt;br /&gt;
* 64 fT/&amp;amp;part;T for the square root of the variance of the gradient of the MEG signal, &lt;br /&gt;
* 75 µV/&amp;amp;part;T for the gradient of the EEG amplitude, and &lt;br /&gt;
* 800 fT/&amp;amp;part;T for the gradient of the MEG amplitude.&lt;br /&gt;
&lt;br /&gt;
The display thresholds for the BESA artifact scan tool are set to the same values.&lt;br /&gt;
&lt;br /&gt;
Rejection behavior:&lt;br /&gt;
&lt;br /&gt;
A sweep is rejected from averaging if:&lt;br /&gt;
&lt;br /&gt;
* The signal exceeds the max. amplitude threshold at any sampling point in any of the “good” channels.&lt;br /&gt;
* The variance of the gradient of the signal, taken over the whole sweep, does not exceed the variance threshold in any of the “good” channels. This criteria is especially useful for MEG channels, where channels may show a flat signal temporarily during the measurement.&lt;br /&gt;
* The gradient of the signal exceeds the max. gradient threshold at any sampling point in any of the “good” channels.&lt;br /&gt;
&lt;br /&gt;
=== Averaging ===&lt;br /&gt;
This section holds the conditions which are selected for averaging, and further information about whether all sweeps or a sub-set will be averaged.&lt;br /&gt;
&lt;br /&gt;
The first line holds the number of conditions currently selected (N). If N=0 or if the section is not present, all conditions which have at least 1 matching trigger event are automatically selected for averaging.&lt;br /&gt;
&lt;br /&gt;
The next N lines are organized as follows:&lt;br /&gt;
&lt;br /&gt;
Column 1: 1 if the condition is selected and activated, 0 if it is selected, but not activated.&lt;br /&gt;
&lt;br /&gt;
Column 2: Zero-based index of the condition.&lt;br /&gt;
&lt;br /&gt;
Column 3: Information about whether all sweeps or a sub-set will be averaged, encoded bit-wise:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! style=&amp;quot;font-weight: bold;&amp;quot; | Bit&lt;br /&gt;
! style=&amp;quot;font-weight: bold;&amp;quot; | If set:&lt;br /&gt;
|-&lt;br /&gt;
| 0&lt;br /&gt;
| Average all matching sweeps&lt;br /&gt;
|-&lt;br /&gt;
| 1&lt;br /&gt;
| Average every second matching sweep (even)&lt;br /&gt;
|-&lt;br /&gt;
| 2&lt;br /&gt;
| Average every second matching sweep (odd)&lt;br /&gt;
|-&lt;br /&gt;
| 3&lt;br /&gt;
| Average the first half of matching sweeps&lt;br /&gt;
|-&lt;br /&gt;
| 4&lt;br /&gt;
| Average the second half of matching sweeps&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
If more than one bit is set, a different averaging buffer will be created for each sub-set.&lt;br /&gt;
&lt;br /&gt;
'''Example:'''&lt;br /&gt;
&amp;lt;source lang=&amp;quot;dos&amp;quot;&amp;gt;&lt;br /&gt;
[Averaging]&lt;br /&gt;
1&lt;br /&gt;
1	1	9&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
One condition was selected. The second condition (condition index 1) is selected and activated, and two buffers will be averaged: the first buffer for all matching sweeps (bit 0 set), the second buffer for the first half of matching sweeps (bit 3 set).&lt;br /&gt;
=== Filter ===&lt;br /&gt;
This section holds filter settings which were chosen for averaging. The following table gives the possible settings.&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! style=&amp;quot;font-weight: bold;&amp;quot; | Line #&lt;br /&gt;
! style=&amp;quot;font-weight: bold;&amp;quot; | Filter type&lt;br /&gt;
! style=&amp;quot;font-weight: bold;&amp;quot; | Column 1&lt;br /&gt;
! style=&amp;quot;font-weight: bold;&amp;quot; | Column 2&lt;br /&gt;
! style=&amp;quot;font-weight: bold;&amp;quot; | Column 3&lt;br /&gt;
! style=&amp;quot;font-weight: bold;&amp;quot; | Column 4&lt;br /&gt;
|-&lt;br /&gt;
| 1&lt;br /&gt;
| High pass&lt;br /&gt;
| Frequency [Hz]&lt;br /&gt;
| Slope (see below)&lt;br /&gt;
| Type (see below)&lt;br /&gt;
| 1 if filter is applied,&lt;br /&gt;
0 if not applied&lt;br /&gt;
|-&lt;br /&gt;
| 2&lt;br /&gt;
| Low pass&lt;br /&gt;
| Frequency [Hz]&lt;br /&gt;
| Slope (see below)&lt;br /&gt;
| Type (see below)&lt;br /&gt;
| 1 if filter is applied,&lt;br /&gt;
0 if not applied&lt;br /&gt;
|-&lt;br /&gt;
| 3&lt;br /&gt;
| Notch&lt;br /&gt;
| Frequency [Hz]&lt;br /&gt;
| Width [Hz]&lt;br /&gt;
| TRUE if on,&lt;br /&gt;
FALSE if off&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| 4&lt;br /&gt;
| Band pass&lt;br /&gt;
| Frequency [Hz]&lt;br /&gt;
| Width [Hz]&lt;br /&gt;
| TRUE if on,&lt;br /&gt;
FALSE if off&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| 5&lt;br /&gt;
| Polygraphic channels&lt;br /&gt;
| TRUE if polygraphic channels unfiltered,&lt;br /&gt;
FALSE if filtered like EEG/MEG channels&lt;br /&gt;
| TRUE if polygraphic channels rectified,&lt;br /&gt;
FALSE if not rectified&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| Selected channels&lt;br /&gt;
| TRUE if selected channels differentiated,&lt;br /&gt;
FALSE if not differentiated&lt;br /&gt;
| TRUE if selected channels rectified,&lt;br /&gt;
FALSE if not rectified&lt;br /&gt;
| TRUE if selected channels smoothed,&lt;br /&gt;
FALSE if not smoothed&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| 7&lt;br /&gt;
| High pass,&lt;br /&gt;
Low pass&lt;br /&gt;
| TRUE if high pass filter applied to artifact scan, &lt;br /&gt;
FALSE if not&lt;br /&gt;
| TRUE if low pass filter applied to artifact scan, &lt;br /&gt;
FALSE if not&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The parameters Slope and Type are set to one of the following values:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! style=&amp;quot;font-weight: bold;&amp;quot; | Slope value in file&lt;br /&gt;
! style=&amp;quot;font-weight: bold;&amp;quot; | Corresponding filter slope [dB/Oct]&lt;br /&gt;
|-&lt;br /&gt;
| 0&lt;br /&gt;
| 6&lt;br /&gt;
|-&lt;br /&gt;
| 1&lt;br /&gt;
| 12&lt;br /&gt;
|-&lt;br /&gt;
| 2&lt;br /&gt;
| 24&lt;br /&gt;
|-&lt;br /&gt;
| 3&lt;br /&gt;
| 48&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! style=&amp;quot;font-weight: bold;&amp;quot; | Type value in file&lt;br /&gt;
! style=&amp;quot;font-weight: bold;&amp;quot; | Corresponding filter type&lt;br /&gt;
|-&lt;br /&gt;
| 0&lt;br /&gt;
| Zero phase&lt;br /&gt;
|-&lt;br /&gt;
| 1&lt;br /&gt;
| Forward&lt;br /&gt;
|-&lt;br /&gt;
| 2&lt;br /&gt;
| Backward&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
If any of the required settings are missing, the filters that are currently set in the data file are used for averaging.&lt;br /&gt;
&lt;br /&gt;
'''Example:'''&lt;br /&gt;
&amp;lt;source lang=&amp;quot;dos&amp;quot;&amp;gt;&lt;br /&gt;
[Filter]&lt;br /&gt;
0.200000	0	1	1&lt;br /&gt;
75.000000	1	0	0&lt;br /&gt;
0.000000	1.000000	FALSE&lt;br /&gt;
75.000000	7.500000	FALSE&lt;br /&gt;
FALSE	FALSE&lt;br /&gt;
FALSE	FALSE	FALSE&lt;br /&gt;
TRUE		FALSE&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The filters are set as follows:&lt;br /&gt;
&lt;br /&gt;
High pass at 0.2 Hz, 6 db/Oct, forward filtering, activated.&lt;br /&gt;
&lt;br /&gt;
Low pass at 75.0 Hz, 12 db/Oct, zero phase filtering, not activated&lt;br /&gt;
&lt;br /&gt;
Notch filter at 0 Hz, width 1 Hz, not activated&lt;br /&gt;
&lt;br /&gt;
Band pass filter at 75 Hz, width 7.5 Hz, not activated&lt;br /&gt;
&lt;br /&gt;
Polygraphic channels are filtered like the EEG and MEG channels. They are not rectified.&lt;br /&gt;
&lt;br /&gt;
Selected channels are not differentiated, not rectified, and not smoothed.&lt;br /&gt;
&lt;br /&gt;
High pass filter is also activated for the artifact scan, and low pass filter is not activated for the artifact scan.&lt;br /&gt;
&lt;br /&gt;
So, the only filter that will be applied to the data for both averaging and artifact scan is the high pass filter at 0.2 Hz.&lt;br /&gt;
&lt;br /&gt;
The last line holds activation settings for the artifact scan. Thus, it is possible to activate or de-activate filters solely for the artifact scan.&lt;br /&gt;
&lt;br /&gt;
=== TimeFrequency ===&lt;br /&gt;
&lt;br /&gt;
This section holds the settings of the Time-Frequency dialog. It is only read if the time-frequency module is loaded. The following values are stored:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! style=&amp;quot;font-weight: bold;&amp;quot; | Line # &lt;br /&gt;
! style=&amp;quot;font-weight: bold;&amp;quot; | First column&lt;br /&gt;
! style=&amp;quot;font-weight: bold;&amp;quot; | Second column&lt;br /&gt;
! style=&amp;quot;font-weight: bold;&amp;quot; | Third column&lt;br /&gt;
|-&lt;br /&gt;
| 1&lt;br /&gt;
| ID for analysis type:&lt;br /&gt;
0: time-frequency&lt;br /&gt;
1: mean coherence&lt;br /&gt;
2: coherence&lt;br /&gt;
| ID for coherence computation type:&lt;br /&gt;
2: fixed reference channel&lt;br /&gt;
6: any reference channel. Currently, &lt;br /&gt;
this value is always used.&lt;br /&gt;
| Channel index in case a fixed &lt;br /&gt;
reference channel was used. Currently, &lt;br /&gt;
this value is meaningless.&lt;br /&gt;
|-&lt;br /&gt;
| 2&lt;br /&gt;
| Reduced sampling interval (in microseconds) &lt;br /&gt;
after time-frequency transformation&lt;br /&gt;
| &lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| 3&lt;br /&gt;
| Index of the condition which&lt;br /&gt;
was chosen as target condition&lt;br /&gt;
| TRUE if a control condition was specified, &lt;br /&gt;
FALSE if not&lt;br /&gt;
| Index of the control condition if a&lt;br /&gt;
control condition was specified, &lt;br /&gt;
or -1 if no condition was specified&lt;br /&gt;
|-&lt;br /&gt;
| 4&lt;br /&gt;
| ID for option of regional source usage:&lt;br /&gt;
0: radial orientation (not available for MEG)&lt;br /&gt;
1: all traces are taken&lt;br /&gt;
2: orientation which maximizes power is taken (not yet available)&lt;br /&gt;
3: first orientation is taken (interesting for oriented sources)&lt;br /&gt;
| TRUE if a Gaussian FIR filter is used &lt;br /&gt;
for complex demodulation (default),&lt;br /&gt;
FALSE if a non-Gaussian FIR filter is used &lt;br /&gt;
for complex demodulation&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| 5&lt;br /&gt;
| Index for the frequency spacing &lt;br /&gt;
that is used (index of the array entry &lt;br /&gt;
in the combo box array of the dialog box)&lt;br /&gt;
| ID for bandwidth of the&lt;br /&gt;
demodulation filter that was chosen.&lt;br /&gt;
2: 2 frequency spacings&lt;br /&gt;
4: 4 frequency spacings (default)&lt;br /&gt;
| &lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| ID for lower frequency cutoff index &lt;br /&gt;
(index of the array entry in the combo box&lt;br /&gt;
array of the dialog box)&lt;br /&gt;
| Value of lower frequency cutoff in Hz&lt;br /&gt;
| ID for higher frequency cutoff (index &lt;br /&gt;
of the array entry in the combo box array &lt;br /&gt;
of the dialog box)&lt;br /&gt;
|-&lt;br /&gt;
| 7&lt;br /&gt;
| ID for the range in which mean coherence is &lt;br /&gt;
computed (currently not used):&lt;br /&gt;
1: whole data set&lt;br /&gt;
2: all epochs&lt;br /&gt;
3: epochs with a specific label&lt;br /&gt;
| ID of the epoch which was chosen for mean &lt;br /&gt;
coherence computation (currently not used)&lt;br /&gt;
| &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
'''Example:'''&lt;br /&gt;
&amp;lt;source lang=&amp;quot;dos&amp;quot;&amp;gt;&lt;br /&gt;
[TimeFrequency]&lt;br /&gt;
2	6	0&lt;br /&gt;
25000.000000&lt;br /&gt;
2	FALSE	-1&lt;br /&gt;
0	TRUE&lt;br /&gt;
4	4&lt;br /&gt;
3	4.000000	6&lt;br /&gt;
1	0&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
In this example, the values have the following meaning:&lt;br /&gt;
&lt;br /&gt;
1st line: Coherence analysis with any reference channel possible. &lt;br /&gt;
&lt;br /&gt;
2nd line: The reduced sampling interval after Time-frequency transformation is 25 ms, i.e. 25000 µs.&lt;br /&gt;
&lt;br /&gt;
3rd line: Target condition has condition index 2, no control condition was specified.&lt;br /&gt;
&lt;br /&gt;
4th line: For regional sources, the radial orientation is taken. The Gaussian FIR filter is used.&lt;br /&gt;
&lt;br /&gt;
5th line: Array entry with index 4 was chosen for the frequency spacing. The demodulation filter is calculated for a bandwidth of 4 frequency spacings.&lt;br /&gt;
&lt;br /&gt;
6th line: Array entry with index 3 was chosen for the lower frequency cutoff. The lower cutoff frequency is 4 Hz. Array entry with index 6 was chosen for the higher frequency cutoff.&lt;br /&gt;
&lt;br /&gt;
7th line: (currently not used) For mean coherence analysis, the whole data set is used. The epoch length of each epoch is given by array index 0.&lt;br /&gt;
&lt;br /&gt;
=== Selections ===&lt;br /&gt;
This section holds the definition of conditions in boolean logic. Each line corresponds to either a logic statement, a bracket, or a boolean operator. Conditions are separated by blank lines. There are no default settings for this section.&lt;br /&gt;
&lt;br /&gt;
Tokens are written in uppercase. &lt;br /&gt;
&lt;br /&gt;
A statement consists of &lt;br /&gt;
* a qualifier that can be either CURRENT, PREVIOUS, or NEXT depending on which trigger event is tested&lt;br /&gt;
* an attribute (e.g. code, name, interval, ...)&lt;br /&gt;
* a comparison operator (IS, IS NOT, IS MORE THAN, IS LESS THAN)&lt;br /&gt;
* a value (e.g. “tone”, 300ms, ...)&lt;br /&gt;
Operators can be AND, OR. Bracketing is also possible.&lt;br /&gt;
&lt;br /&gt;
'''Example:'''&lt;br /&gt;
&amp;lt;source lang=&amp;quot;dos&amp;quot;&amp;gt;&lt;br /&gt;
[Selections]&lt;br /&gt;
CURRENT.name IS &amp;quot;tone&amp;quot;&lt;br /&gt;
&lt;br /&gt;
CURRENT.name IS &amp;quot;response&amp;quot;&lt;br /&gt;
AND&lt;br /&gt;
PREVIOUS.name IS &amp;quot;tone&amp;quot;&lt;br /&gt;
AND&lt;br /&gt;
PREVIOUS.interval IS LESS THAN 300ms&lt;br /&gt;
&lt;br /&gt;
CURRENT.name IS &amp;quot;response&amp;quot;&lt;br /&gt;
AND&lt;br /&gt;
(&lt;br /&gt;
PREVIOUS.name IS &amp;quot;rare&amp;quot;&lt;br /&gt;
OR&lt;br /&gt;
PREVIOUS.name IS &amp;quot;frequent&amp;quot;&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This example contains 3 conditions. &lt;br /&gt;
&lt;br /&gt;
The first one selects all trigger events with the value “tone” for the attribute “name”. &lt;br /&gt;
&lt;br /&gt;
The second one selects all trigger events with the value “response” for the attribute “name” which are preceded by trigger events with the name “tone” with an interval between the two of less than 300ms. &lt;br /&gt;
&lt;br /&gt;
The third one selects all trigger events with the name “response” which are preceded by either a trigger event with the name “rare” or a trigger event with the name “frequent”. The bracket is important; without the bracket, the order of testing is changed, with a possibly different result.&lt;br /&gt;
&lt;br /&gt;
=== Artifact Scan ===&lt;br /&gt;
&lt;br /&gt;
This section holds the results of an artifact scan. They are plotted in the artifact tab central window. For each epoch which was scanned, all values are written. The format contains 4 header lines, followed by 4 lines for each epoch:&lt;br /&gt;
&lt;br /&gt;
Line 1: &amp;lt;Number of EEG channels&amp;gt; &amp;lt;Number of magnetometer or axial gradiometer channels&amp;gt; &amp;lt;Number of planar gradiometer channels&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Line 2: &amp;lt;Channel badness flag for channel 1&amp;gt; &amp;lt;Channel badness flag for channel 2&amp;gt; … &amp;lt;Channel badness flag for channel N&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The channel badness flag is set as follows:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! style=&amp;quot;font-weight: bold;&amp;quot; | 0&lt;br /&gt;
! style=&amp;quot;font-weight: bold;&amp;quot; | not bad or bad due to user interaction&lt;br /&gt;
|-&lt;br /&gt;
| bit 0 set:&lt;br /&gt;
| bad due to minimum signal/variance crit., max.&lt;br /&gt;
|-&lt;br /&gt;
| bit 1 set:&lt;br /&gt;
| bad due to amplitude criterion, integral crit.&lt;br /&gt;
|-&lt;br /&gt;
| bit 2 set:&lt;br /&gt;
| bad due to amplitude criterion, max. crit.&lt;br /&gt;
|-&lt;br /&gt;
| bit 3 set:&lt;br /&gt;
| bad due to gradient criterion, integral crit.&lt;br /&gt;
|-&lt;br /&gt;
| bit 4 set:&lt;br /&gt;
| bad due to gradient criterion, max. crit.&lt;br /&gt;
|-&lt;br /&gt;
| bit 5 set:&lt;br /&gt;
| bad due to minimum signal/variance crit., int.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Line 3: &amp;lt;Number of conditions&amp;gt;&amp;lt;index of first condition in list&amp;gt;&amp;lt;index of 2nd condition in list&amp;gt;…&amp;lt;index of last condition in list&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The list is the artifact scan list of conditions. &lt;br /&gt;
&lt;br /&gt;
Line 4: &amp;lt;Start of scanned range (position in microseconds)&amp;gt;&amp;lt;end of scanned range (position in microseconds&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The remaining lines come in groups of 4. Each group contains the settings for one epoch. For each epoch:&lt;br /&gt;
&lt;br /&gt;
Line 1: &amp;lt;artifact scan list index&amp;gt;&amp;lt;position in microseconds&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The artifact scan list index is not necessarily the same as the condition index. It is possible that no artifact scan list index exists for a condition index, e.g. if no matches were found for a condition. The artifact scan list index runs from 0 to the number of conditions for which a scan was performed. The relation to the real condition index is given by the header line 3.&lt;br /&gt;
&lt;br /&gt;
Line 2: &amp;lt;max_amp_in_channel1&amp;gt;&amp;lt; max_amp_in_channel2&amp;gt;…&amp;lt; max_amp_in_channelN&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Line 3: &amp;lt;variance_in_channel1&amp;gt;&amp;lt;variance_in_channel2&amp;gt;…&amp;lt;variance_in_channelN&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Line 4: &amp;lt;max_gradient_in_channel1&amp;gt;&amp;lt; max_gradient_in_channel2&amp;gt;…&amp;lt; max_gradient_in_channelN&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Example:'''&lt;br /&gt;
&lt;br /&gt;
Please note that one color denotes one line in the PDG-file.&lt;br /&gt;
&lt;br /&gt;
[ArtifactScan]&lt;br /&gt;
&lt;br /&gt;
{{font color|blue|65	0	0}}&lt;br /&gt;
&lt;br /&gt;
{{font color|red|0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0}}&lt;br /&gt;
	&lt;br /&gt;
{{font color|red|0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0}}	&lt;br /&gt;
&lt;br /&gt;
{{font color|red|0	0	0	8	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0}}	&lt;br /&gt;
&lt;br /&gt;
{{font color|red|0	0	0	0	0}}&lt;br /&gt;
&lt;br /&gt;
{{font color|deeppink|2	1	2}}&lt;br /&gt;
&lt;br /&gt;
{{font color|green|0.000000	319120000.000000}}&lt;br /&gt;
&lt;br /&gt;
{{font color|blue|0	7700000.00}}&lt;br /&gt;
&lt;br /&gt;
{{font color|red|6.71 18.46 44.48 23.50 48.68 24.34 60.42 13.43 20.14 44.48 21.82 60.42 25.18 62.94 15.11 35.25 18.46 36.93 51.19 32.73 41.96 16.78 35.25}} &lt;br /&gt;
&lt;br /&gt;
{{font color|red|20.14 26.02 4.20 35.25 12.59 35.25 21.82 33.57 21.82 7.55 15.95 34.41 31.89 31.89 16.78 27.69 28.53 36.09 11.75 29.37 46.16 19.30 24.34 10.91}} &lt;br /&gt;
&lt;br /&gt;
{{font color|red|26.86 19.30 31.05 7.55 22.66 36.93 33.57 37.77 27.69 21.82 10.91 28.53 34.41 48.68 27.69 27.69 15.95 0.00}} &lt;br /&gt;
&lt;br /&gt;
{{font color|deeppink|1.04 5.87 14.84 4.36 13.35 4.95 12.75 3.38 5.63 13.72 3.78 17.54 4.54 13.11 2.97 14.77 2.69 16.07 10.95 8.41 8.39 4.74 14.73 1.92 6.49 0.65}} &lt;br /&gt;
&lt;br /&gt;
{{font color|deeppink|7.46 1.51 15.48 3.92 9.27 4.01 0.89 3.29 10.13 9.02 11.43 3.75 6.81 6.77 7.77 1.39 9.51 25.05 4.51 6.36 1.27 5.50 4.19 10.37 0.91 5.93 11.32}} &lt;br /&gt;
&lt;br /&gt;
{{font color|deeppink|8.88 9.77 9.11 6.51 1.79 7.68 10.50 14.24 8.82 8.22 2.95 0.00}} &lt;br /&gt;
&lt;br /&gt;
{{font color|green|2.52 6.71 10.07 5.04 8.39 5.04 10.07 4.20 6.71 11.75 5.04 12.59 5.04 9.23 5.04 10.07 4.20 10.07 8.39 7.55 8.39 5.87 11.75 3.36 5.04 1.68}} &lt;br /&gt;
&lt;br /&gt;
{{font color|green|7.55 2.52 10.91 5.04 6.71 5.04 2.52 5.04 12.59 11.75 14.27 5.87 6.71 6.71 7.55 2.52 13.43 15.11 5.87 8.39 3.36 7.55 8.39 13.43 2.52 8.39}} &lt;br /&gt;
&lt;br /&gt;
{{font color|green|10.07 7.55 8.39 10.91 9.23 4.20 6.71 13.43 11.75 11.75 10.91 6.71 0.00}}&lt;br /&gt;
 &lt;br /&gt;
{{font color|blue|1	8050000.00}}&lt;br /&gt;
&lt;br /&gt;
{{font color|red|8.39 15.95 35.25 21.82 22.66 19.30 26.86 12.59 17.62 31.89 21.82 20.98 17.62 26.86 15.11 23.50 16.78 30.21 29.37 22.66 22.66 16.78 22.66}} &lt;br /&gt;
&lt;br /&gt;
{{font color|red|15.95 23.50 5.87 22.66 13.43 25.18 19.30 26.86 17.62 6.71 11.75 20.14 19.30 23.50 14.27 27.69 21.82 20.98 9.23 20.14 64.62 17.62 23.50 8.39 15.11 15.11 21.82}} &lt;br /&gt;
&lt;br /&gt;
{{font color|red|6.71 20.98 29.37 24.34 20.98 16.78 17.62 11.75 25.18 26.86 24.34 20.98 21.82 15.11 0.00}}&lt;br /&gt;
&lt;br /&gt;
{{font color|deeppink|1.37 6.08 14.32 7.01 11.00 7.54 11.19 3.85 7.11 13.96 6.67 12.18 7.18 10.64 5.47 16.83 3.79 21.73 9.60 12.82 9.11 5.45 12.86 3.74 8.62}} &lt;br /&gt;
&lt;br /&gt;
{{font color|deeppink|0.83 9.30 2.92 14.68 5.85 13.81 5.18 1.28 3.44 8.30 7.25 12.03 4.16 8.80 9.74 7.23 1.76 8.49 56.16 5.41 7.29 1.70 4.96 4.45 9.66 1.35}} &lt;br /&gt;
&lt;br /&gt;
{{font color|deeppink|7.16 12.32 10.99 8.29 6.38 6.61 2.07 8.25 13.16 8.23 8.70 8.71 4.44 0.00}} &lt;br /&gt;
&lt;br /&gt;
{{font color|green|2.52 6.71 10.91 8.39 9.23 8.39 9.23 6.71 6.71 10.91 8.39 9.23 8.39 9.23 5.87 11.75 5.04 12.59 9.23 10.91 7.55 5.87 11.75 5.87 8.39 2.52}} &lt;br /&gt;
&lt;br /&gt;
{{font color|green|7.55 5.87 9.23 6.71 11.75 6.71 3.36 4.20 7.55 7.55 10.07 5.87 9.23 7.55 7.55 3.36 7.55 28.53 7.55 8.39 3.36 5.87 5.87 9.23 3.36 9.23 9.23}} &lt;br /&gt;
&lt;br /&gt;
{{font color|green|7.55 6.71 7.55 7.55 4.20 9.23 11.75 7.55 8.39 8.39 7.55 0.00}}&lt;br /&gt;
&lt;br /&gt;
This example contains the first 2 epochs from an artifact scan.&lt;br /&gt;
&lt;br /&gt;
{{font color|blue|65	0	0}}&lt;br /&gt;
&lt;br /&gt;
This line shows the number of EEG (65), MAG and GRA channels.&lt;br /&gt;
&lt;br /&gt;
{{font color|red|0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0}}	&lt;br /&gt;
&lt;br /&gt;
{{font color|red|0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0	0}}	&lt;br /&gt;
&lt;br /&gt;
{{font color|red|0	0	0	0	0	0	0	8	0	0	0	0	0	0	0	0	0	0}}	&lt;br /&gt;
&lt;br /&gt;
{{font color|red|0	0	0	0	0	0	0	0	0	0	0}}&lt;br /&gt;
&lt;br /&gt;
This line shows the badness of the channels. One channel has badness 8, which stands for gradient and integral criterion.&lt;br /&gt;
&lt;br /&gt;
{{font color|deeppink|2	1	2}}&lt;br /&gt;
&lt;br /&gt;
This line states the number of conditions in the artifact scan list, and their indices: There are 2 conditions; the list element 0 contains condition 1, list element 1 contains condition 2. Condition 0 is not part of the scan.&lt;br /&gt;
&lt;br /&gt;
{{font color|green|0.000000	319120000.000000}}&lt;br /&gt;
&lt;br /&gt;
A range from 0 – 319.120 seconds was scanned.&lt;br /&gt;
The next lines give the values for the epochs in groups of 4:&lt;br /&gt;
&lt;br /&gt;
{{font color|blue|0	7700000.00}}&lt;br /&gt;
&lt;br /&gt;
This entry has artifact list index 0 (which corresponds to condition index 1, see above), and the position of the epoch is 7.700000 seconds.&lt;br /&gt;
&lt;br /&gt;
The next 3 lines hold amplitudes, variances, and gradients for each channel.&lt;br /&gt;
&lt;br /&gt;
[[Category:ERP/ERF]]&lt;/div&gt;</summary>
		<author><name>Todor</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Category:Statistics</id>
		<title>Category:Statistics</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Category:Statistics"/>
				<updated>2016-05-12T13:48:24Z</updated>
		
		<summary type="html">&lt;p&gt;Todor: Created page with &amp;quot;Topics about BESA Statistics&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Topics about BESA Statistics&lt;/div&gt;</summary>
		<author><name>Todor</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Importing_BESA_Statistics_Results_into_Excel</id>
		<title>Importing BESA Statistics Results into Excel</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Importing_BESA_Statistics_Results_into_Excel"/>
				<updated>2016-05-12T13:45:37Z</updated>
		
		<summary type="html">&lt;p&gt;Todor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{BESAInfobox&lt;br /&gt;
|title = Module information&lt;br /&gt;
|module = BESA Statistics&lt;br /&gt;
|version = 1.0 or higher&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
In BESA Statistics there are two options for exporting results: summary results and detailed results. In both cases the results are exported as ascii files in comma-separated values (CSV) format. For the values which are stored in the files a dot (.) is used as a decimal separator and no symbol is used as a thousands separator. This can causes problems when importing the data into Microsoft Excel and the settings in Excel are different than the assumed for the values, e.g. the decimal separator is a comma (,) and the thousands separator is a dot (.). This is the case, for example, in Germany.&lt;br /&gt;
&lt;br /&gt;
In order to make sure that the results are imported correctly into Excel one has to follow the next procedure.&lt;br /&gt;
&lt;br /&gt;
=== Open Excel and select the &amp;lt;tt&amp;gt;Data&amp;lt;/tt&amp;gt; tab===&lt;br /&gt;
&lt;br /&gt;
[[File:MicrosoftExcelDataTab.png|none|Figure 1 Microsoft Excel Data tab]]&lt;br /&gt;
&lt;br /&gt;
=== Click on the icon &amp;lt;tt&amp;gt;From Text&amp;lt;/tt&amp;gt; and select the corresponding CSV-file.===&lt;br /&gt;
&lt;br /&gt;
[[File:MicrosoftExcelFromText.png|none|Figure 2 Microsoft Excel Data tab, From Text button]]&lt;br /&gt;
&lt;br /&gt;
=== The &amp;lt;tt&amp;gt;Text Import Wizard&amp;lt;/tt&amp;gt; dialog opens. In the first step choose the option &amp;lt;tt&amp;gt;Delimited&amp;lt;/tt&amp;gt; and click &amp;lt;tt&amp;gt;Next&amp;lt;/tt&amp;gt;.===&lt;br /&gt;
&lt;br /&gt;
[[File:TextImportWizardStep1.png|none|Figure 3 Microsoft Excel Text Import Wizard Step 1]]&lt;br /&gt;
&lt;br /&gt;
=== In the second step choose as a delimiter &amp;lt;tt&amp;gt;Semicolon&amp;lt;/tt&amp;gt; and click next.===&lt;br /&gt;
&lt;br /&gt;
[[File:TextImportWizardStep2.png|none|Figure 4 Microsoft Excel Text Import Wizard Step 2]]&lt;br /&gt;
&lt;br /&gt;
=== In the third step click on &amp;lt;tt&amp;gt;Advanced...&amp;lt;/tt&amp;gt; and in the &amp;lt;tt&amp;gt;Advanced Text Import Settings&amp;lt;/tt&amp;gt; dialog select a dot (.) as a decimal separator and empty character as a thousands separator.===&lt;br /&gt;
&lt;br /&gt;
[[File:TextImportWizardStep3.png|none|Figure 5 Microsoft Excel Text Import Wizard Step 3]]&lt;br /&gt;
&lt;br /&gt;
=== Click &amp;lt;tt&amp;gt;OK&amp;lt;/tt&amp;gt; and then on &amp;lt;tt&amp;gt;Finish&amp;lt;/tt&amp;gt; to complete the &amp;lt;tt&amp;gt;Text Import Wizard&amp;lt;/tt&amp;gt;. The data should be imported correctly now.===&lt;br /&gt;
&lt;br /&gt;
[[Category:Statistics]]&lt;/div&gt;</summary>
		<author><name>Todor</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Importing_BESA_Statistics_Results_into_Excel</id>
		<title>Importing BESA Statistics Results into Excel</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Importing_BESA_Statistics_Results_into_Excel"/>
				<updated>2016-05-12T13:43:24Z</updated>
		
		<summary type="html">&lt;p&gt;Todor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{BESAInfobox&lt;br /&gt;
|title = Module information&lt;br /&gt;
|module = BESA Statistics&lt;br /&gt;
|version = 1.0 or higher&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
In BESA Statistics there are two options for exporting results: summary results and detailed results. In both cases the results are exported as ascii files in comma-separated values (CSV) format. For the values which are stored in the files a dot (.) is used as a decimal separator and no symbol is used as a thousands separator. This can causes problems when importing the data into Microsoft Excel and the settings in Excel are different than the assumed for the values, e.g. the decimal separator is a comma (,) and the thousands separator is a dot (.). This is the case, for example, in Germany.&lt;br /&gt;
&lt;br /&gt;
In order to make sure that the results are imported correctly into Excel one has to follow the next procedure.&lt;br /&gt;
&lt;br /&gt;
=== Open Excel and select the &amp;lt;tt&amp;gt;Data&amp;lt;/tt&amp;gt; tab===&lt;br /&gt;
&lt;br /&gt;
[[File:MicrosoftExcelDataTab.png|none|Figure 1 Microsoft Excel Data tab]]&lt;br /&gt;
&lt;br /&gt;
=== Click on the icon &amp;lt;tt&amp;gt;From Text&amp;lt;/tt&amp;gt; and select the corresponding CSV-file.===&lt;br /&gt;
&lt;br /&gt;
[[File:MicrosoftExcelFromText.png|none|Figure 2 Microsoft Excel Data tab, From Text button]]&lt;br /&gt;
&lt;br /&gt;
=== The &amp;lt;tt&amp;gt;Text Import Wizard&amp;lt;/tt&amp;gt; opens. In the first step choose the option &amp;lt;tt&amp;gt;Delimited&amp;lt;/tt&amp;gt; and click &amp;lt;tt&amp;gt;Next&amp;lt;/tt&amp;gt;.===&lt;br /&gt;
&lt;br /&gt;
[[File:TextImportWizardStep1.png|none|Figure 3 Microsoft Excel Text Import Wizard Step 1]]&lt;br /&gt;
&lt;br /&gt;
=== In the second step choose as a delimiter &amp;lt;tt&amp;gt;Semicolon&amp;lt;/tt&amp;gt; and click next.===&lt;br /&gt;
&lt;br /&gt;
[[File:TextImportWizardStep2.png|none|Figure 4 Microsoft Excel Text Import Wizard Step 2]]&lt;br /&gt;
&lt;br /&gt;
=== In the third step click on &amp;lt;tt&amp;gt;Advanced...&amp;lt;/tt&amp;gt; and in the &amp;lt;tt&amp;gt;Advanced Text Import Settings&amp;lt;/tt&amp;gt; dialog select a dot (.) as a decimal separator and empty character as a thousands separator.===&lt;br /&gt;
&lt;br /&gt;
[[File:TextImportWizardStep3.png|none|Figure 5 Microsoft Excel Text Import Wizard Step 3]]&lt;br /&gt;
&lt;br /&gt;
=== Click &amp;lt;tt&amp;gt;OK&amp;lt;/tt&amp;gt; and then on &amp;lt;tt&amp;gt;Finish&amp;lt;/tt&amp;gt; to complete the &amp;lt;tt&amp;gt;Text Import Wizard&amp;lt;/tt&amp;gt;. The data should be imported correctly now.===&lt;br /&gt;
&lt;br /&gt;
[[Category:Statistics]]&lt;/div&gt;</summary>
		<author><name>Todor</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Importing_BESA_Statistics_Results_into_Excel</id>
		<title>Importing BESA Statistics Results into Excel</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Importing_BESA_Statistics_Results_into_Excel"/>
				<updated>2016-05-12T13:39:49Z</updated>
		
		<summary type="html">&lt;p&gt;Todor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{BESAInfobox&lt;br /&gt;
|title = Module information&lt;br /&gt;
|module = BESA Statistics&lt;br /&gt;
|version = 1.0 or higher&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
In BESA Statistics there are two options for exporting results: summary results and detailed results. In both cases the results are exported as ascii files in comma-separated values (CSV) format. For the values which are stored in the files a dot (.) is used as a decimal separator and no symbol is used as a thousands separator. This can causes problems when importing the data into Microsoft Excel and the settings in Excel are different than the assumed for the values, e.g. the decimal separator is a comma (,) and the thousands separator is a dot (.). This is the case, for example, in Germany.&lt;br /&gt;
&lt;br /&gt;
In order to make sure that the results are imported correctly into Excel one has to follow the next procedure.&lt;br /&gt;
&lt;br /&gt;
===1) Open Excel and select the &amp;lt;tt&amp;gt;Data&amp;lt;/tt&amp;gt; tab===&lt;br /&gt;
&lt;br /&gt;
[[File:MicrosoftExcelDataTab.png|none|Figure 1 Microsoft Excel Data tab]]&lt;br /&gt;
&lt;br /&gt;
===2) Click on the icon &amp;lt;tt&amp;gt;From Text&amp;lt;/tt&amp;gt; and select the corresponding CSV-file.===&lt;br /&gt;
&lt;br /&gt;
[[File:MicrosoftExcelFromText.png|none|Figure 2 Microsoft Excel Data tab, From Text button]]&lt;br /&gt;
&lt;br /&gt;
===3) The &amp;lt;tt&amp;gt;Text Import Wizard&amp;lt;/tt&amp;gt; opens. In the first step choose the option &amp;lt;tt&amp;gt;Delimited&amp;lt;/tt&amp;gt; and click &amp;lt;tt&amp;gt;Next&amp;lt;/tt&amp;gt;.===&lt;br /&gt;
&lt;br /&gt;
[[File:TextImportWizardStep1.png|none|Figure 3 Microsoft Excel Text Import Wizard Step 1]]&lt;br /&gt;
&lt;br /&gt;
===4) In the second step choose as a delimiter &amp;lt;tt&amp;gt;Semicolon&amp;lt;/tt&amp;gt; and click next.===&lt;br /&gt;
&lt;br /&gt;
[[File:TextImportWizardStep2.png|none|Figure 4 Microsoft Excel Text Import Wizard Step 2]]&lt;br /&gt;
&lt;br /&gt;
===5) In the third step click on &amp;lt;tt&amp;gt;Advanced...&amp;lt;/tt&amp;gt; and in the &amp;lt;tt&amp;gt;Advanced Text Import Settings&amp;lt;/tt&amp;gt; dialog select a dot (.) as a decimal separator and empty character as a thousands separator.===&lt;br /&gt;
&lt;br /&gt;
[[File:TextImportWizardStep3.png|none|Figure 5 Microsoft Excel Text Import Wizard Step 3]]&lt;br /&gt;
&lt;br /&gt;
===6) Click &amp;lt;tt&amp;gt;OK&amp;lt;/tt&amp;gt; and then on &amp;lt;tt&amp;gt;Finish&amp;lt;/tt&amp;gt; to complete the &amp;lt;tt&amp;gt;Text Import Wizard&amp;lt;/tt&amp;gt;. The data should be imported correctly now.===&lt;br /&gt;
&lt;br /&gt;
[[Category:Statistics]]&lt;/div&gt;</summary>
		<author><name>Todor</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Importing_BESA_Statistics_Results_into_Excel</id>
		<title>Importing BESA Statistics Results into Excel</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Importing_BESA_Statistics_Results_into_Excel"/>
				<updated>2016-05-12T13:36:47Z</updated>
		
		<summary type="html">&lt;p&gt;Todor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In BESA Statistics there are two options for exporting results: summary results and detailed results. In both cases the results are exported as ascii files in comma-separated values (CSV) format. For the values which are stored in the files a dot (.) is used as a decimal separator and no symbol is used as a thousands separator. This can causes problems when importing the data into Microsoft Excel and the settings in Excel are different than the assumed for the values, e.g. the decimal separator is a comma (,) and the thousands separator is a dot (.). This is the case, for example, in Germany.&lt;br /&gt;
&lt;br /&gt;
In order to make sure that the results are imported correctly into Excel one has to follow the next procedure.&lt;br /&gt;
&lt;br /&gt;
1) Open Excel and select the &amp;lt;tt&amp;gt;Data&amp;lt;/tt&amp;gt; tab&lt;br /&gt;
&lt;br /&gt;
[[File:MicrosoftExcelDataTab.png|none|Figure 1 Microsoft Excel Data tab]]&lt;br /&gt;
&lt;br /&gt;
2) Click on the icon &amp;lt;tt&amp;gt;From Text&amp;lt;/tt&amp;gt; and select the corresponding CSV-file.&lt;br /&gt;
&lt;br /&gt;
[[File:MicrosoftExcelFromText.png|none|Figure 2 Microsoft Excel Data tab, From Text button]]&lt;br /&gt;
&lt;br /&gt;
3) The &amp;lt;tt&amp;gt;Text Import Wizard&amp;lt;/tt&amp;gt; opens. In the first step choose the option &amp;lt;tt&amp;gt;Delimited&amp;lt;/tt&amp;gt; and click &amp;lt;tt&amp;gt;Next&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
[[File:TextImportWizardStep1.png|none|Figure 3 Microsoft Excel Text Import Wizard Step 1]]&lt;br /&gt;
&lt;br /&gt;
4) In the second step choose as a delimiter &amp;lt;tt&amp;gt;Semicolon&amp;lt;/tt&amp;gt; and click next.&lt;br /&gt;
&lt;br /&gt;
[[File:TextImportWizardStep2.png|none|Figure 4 Microsoft Excel Text Import Wizard Step 2]]&lt;br /&gt;
&lt;br /&gt;
5) In the third step click on &amp;lt;tt&amp;gt;Advanced...&amp;lt;/tt&amp;gt; and in the &amp;lt;tt&amp;gt;Advanced Text Import Settings&amp;lt;/tt&amp;gt; dialog select a dot (.) as a decimal separator and empty character as a thousands separator.&lt;br /&gt;
&lt;br /&gt;
[[File:TextImportWizardStep3.png|none|Figure 5 Microsoft Excel Text Import Wizard Step 3]]&lt;br /&gt;
&lt;br /&gt;
6) Click &amp;lt;tt&amp;gt;OK&amp;lt;/tt&amp;gt; and then on &amp;lt;tt&amp;gt;Finish&amp;lt;/tt&amp;gt; to complete the &amp;lt;tt&amp;gt;Text Import Wizard&amp;lt;/tt&amp;gt;. The data should be imported correctly now.&lt;/div&gt;</summary>
		<author><name>Todor</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=File:TextImportWizardStep3.png</id>
		<title>File:TextImportWizardStep3.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=File:TextImportWizardStep3.png"/>
				<updated>2016-05-12T13:32:31Z</updated>
		
		<summary type="html">&lt;p&gt;Todor: Microsoft Excel Text Import Wizard Step 3&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Microsoft Excel Text Import Wizard Step 3&lt;/div&gt;</summary>
		<author><name>Todor</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=File:TextImportWizardStep2.png</id>
		<title>File:TextImportWizardStep2.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=File:TextImportWizardStep2.png"/>
				<updated>2016-05-12T13:31:36Z</updated>
		
		<summary type="html">&lt;p&gt;Todor: Microsoft Excel Text Import Wizard Step 2&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Microsoft Excel Text Import Wizard Step 2&lt;/div&gt;</summary>
		<author><name>Todor</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=File:TextImportWizardStep1.png</id>
		<title>File:TextImportWizardStep1.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=File:TextImportWizardStep1.png"/>
				<updated>2016-05-12T13:30:52Z</updated>
		
		<summary type="html">&lt;p&gt;Todor: Microsoft Excel Text Import Wizard Step 1&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Microsoft Excel Text Import Wizard Step 1&lt;/div&gt;</summary>
		<author><name>Todor</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=File:MicrosoftExcelFromText.png</id>
		<title>File:MicrosoftExcelFromText.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=File:MicrosoftExcelFromText.png"/>
				<updated>2016-05-12T13:29:53Z</updated>
		
		<summary type="html">&lt;p&gt;Todor: Microsoft Excel Data tab, From Text button&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Microsoft Excel Data tab, From Text button&lt;/div&gt;</summary>
		<author><name>Todor</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=File:MicrosoftExcelDataTab.png</id>
		<title>File:MicrosoftExcelDataTab.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=File:MicrosoftExcelDataTab.png"/>
				<updated>2016-05-12T13:29:01Z</updated>
		
		<summary type="html">&lt;p&gt;Todor: Microsoft Excel Data tab&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Microsoft Excel Data tab&lt;/div&gt;</summary>
		<author><name>Todor</name></author>	</entry>

	<entry>
		<id>https://wiki.besa.de/index.php?title=Importing_BESA_Statistics_Results_into_Excel</id>
		<title>Importing BESA Statistics Results into Excel</title>
		<link rel="alternate" type="text/html" href="https://wiki.besa.de/index.php?title=Importing_BESA_Statistics_Results_into_Excel"/>
				<updated>2016-05-12T13:27:44Z</updated>
		
		<summary type="html">&lt;p&gt;Todor: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In BESA Statistics there are two options for exporting results: summary results and detailed results. In both cases the results are exported as ascii files in comma-separated values (CSV) format. For the values which are stored in the files a dot (.) is used as a decimal separator and no symbol is used as a thousands separator. This can causes problems when importing the data into Microsoft Excel and the settings in Excel are different than the assumed for the values, e.g. the decimal separator is a comma (,) and the thousands separator is a dot (.). This is the case, for example, in Germany.&lt;br /&gt;
&lt;br /&gt;
In order to make sure that the results are imported correctly into Excel one has to follow the next procedure.&lt;br /&gt;
&lt;br /&gt;
1) Open Excel and select the &amp;lt;tt&amp;gt;Data&amp;lt;/tt&amp;gt; tab&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2) Click on the icon &amp;lt;tt&amp;gt;From Text&amp;lt;/tt&amp;gt; and select the corresponding CSV-file.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3) The &amp;lt;tt&amp;gt;Text Import Wizard&amp;lt;/tt&amp;gt; opens. In the first step choose the option &amp;lt;tt&amp;gt;Delimited&amp;lt;/tt&amp;gt; and click &amp;lt;tt&amp;gt;Next&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
4) In the second step choose as a delimiter &amp;lt;tt&amp;gt;Semicolon&amp;lt;/tt&amp;gt; and click next.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
5) In the third step click on &amp;lt;tt&amp;gt;Advanced...&amp;lt;/tt&amp;gt; and in the &amp;lt;tt&amp;gt;Advanced Text Import Settings&amp;lt;/tt&amp;gt; dialog select a dot (.) as a decimal separator and empty character as a thousands separator.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
6) Click &amp;lt;tt&amp;gt;OK&amp;lt;/tt&amp;gt; and then on &amp;lt;tt&amp;gt;Finish&amp;lt;/tt&amp;gt; to complete the &amp;lt;tt&amp;gt;Text Import Wizard&amp;lt;/tt&amp;gt;. The data should be imported correctly now.&lt;/div&gt;</summary>
		<author><name>Todor</name></author>	</entry>

	</feed>