<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.bci2000.org/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Parameters</id>
	<title>Parameters - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.bci2000.org/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Parameters"/>
	<link rel="alternate" type="text/html" href="https://www.bci2000.org/mediawiki/index.php?title=Parameters&amp;action=history"/>
	<updated>2026-06-23T02:04:13Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.6</generator>
	<entry>
		<id>https://www.bci2000.org/mediawiki/index.php?title=Parameters&amp;diff=11822&amp;oldid=prev</id>
		<title>Wengelhardt: /* Creating Parameters (for Developers) */</title>
		<link rel="alternate" type="text/html" href="https://www.bci2000.org/mediawiki/index.php?title=Parameters&amp;diff=11822&amp;oldid=prev"/>
		<updated>2025-04-22T21:45:19Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Creating Parameters (for Developers)&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 21:45, 22 April 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l38&quot;&gt;Line 38:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 38:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Parameters are defined in the [[Programming_Reference:GenericFilter_Class#Publish|&amp;#039;&amp;#039;Publish&amp;#039;&amp;#039;]] method of a BCI2000 filter, using the same syntax of [[Technical_Reference:Parameter_Definition#Parameter_Lines|parameter lines]].&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Parameters are defined in the [[Programming_Reference:GenericFilter_Class#Publish|&amp;#039;&amp;#039;Publish&amp;#039;&amp;#039;]] method of a BCI2000 filter, using the same syntax of [[Technical_Reference:Parameter_Definition#Parameter_Lines|parameter lines]].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Elsewhere in your BCI2000 filter, you can access the parameter according to the [[Programming Reference:Environment Class|syntax here]] and [[Programming Reference:Accessing Parameters and States|here]]. If you really want the full syntax, it is [[Programming Reference:Parameters|described here]].&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Elsewhere in your BCI2000 filter, you can access the parameter according to the [[Programming Reference:Environment Class|syntax here]] and [[Programming Reference:Accessing Parameters and States|here]]. If you really want the full syntax, it is [[Programming Reference:Parameters|described here]]&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;. And [[Programming_Reference:GenericFilter_Class#Rules_for_Parameter_and_State_access|here]] are some notes on rules for parameter access&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wikidb-bci_:diff:1.41:old-11820:rev-11822:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Wengelhardt</name></author>
	</entry>
	<entry>
		<id>https://www.bci2000.org/mediawiki/index.php?title=Parameters&amp;diff=11820&amp;oldid=prev</id>
		<title>Wengelhardt: /* Creating Parameters (for Developers) */</title>
		<link rel="alternate" type="text/html" href="https://www.bci2000.org/mediawiki/index.php?title=Parameters&amp;diff=11820&amp;oldid=prev"/>
		<updated>2025-04-22T21:33:46Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Creating Parameters (for Developers)&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 21:33, 22 April 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l38&quot;&gt;Line 38:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 38:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Parameters are defined in the [[Programming_Reference:GenericFilter_Class#Publish|&amp;#039;&amp;#039;Publish&amp;#039;&amp;#039;]] method of a BCI2000 filter, using the same syntax of [[Technical_Reference:Parameter_Definition#Parameter_Lines|parameter lines]].&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Parameters are defined in the [[Programming_Reference:GenericFilter_Class#Publish|&amp;#039;&amp;#039;Publish&amp;#039;&amp;#039;]] method of a BCI2000 filter, using the same syntax of [[Technical_Reference:Parameter_Definition#Parameter_Lines|parameter lines]].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Elsewhere in your BCI2000 filter, you can access the parameter according to the [[Programming Reference:Environment Class|syntax here]]. If you really want the full syntax, it is [[Programming Reference:Parameters|described here]].&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Elsewhere in your BCI2000 filter, you can access the parameter according to the [[Programming Reference:Environment Class|syntax &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;here]] and [[Programming Reference:Accessing Parameters and States|&lt;/ins&gt;here]]. If you really want the full syntax, it is [[Programming Reference:Parameters|described here]].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wikidb-bci_:diff:1.41:old-11818:rev-11820:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Wengelhardt</name></author>
	</entry>
	<entry>
		<id>https://www.bci2000.org/mediawiki/index.php?title=Parameters&amp;diff=11818&amp;oldid=prev</id>
		<title>Wengelhardt: Create a summary page for parameters</title>
		<link rel="alternate" type="text/html" href="https://www.bci2000.org/mediawiki/index.php?title=Parameters&amp;diff=11818&amp;oldid=prev"/>
		<updated>2025-04-22T21:23:21Z</updated>

		<summary type="html">&lt;p&gt;Create a summary page for parameters&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Parameters are the BCI2000 data type that contains constant, static information. This is best used for task settings, amplifier configuration, and user settings. Parameters are loaded into BCI2000, are able to be changed by the user, and then are saved into the BCI2000 data file. With parameters, all the information about the experiment can be recovered in the analysis.&lt;br /&gt;
&lt;br /&gt;
This page provides a summary of parameters for both users and developers. Users can interface with parameters in a variety of ways, detailed below. Developers can learn how to create their own parameters with a BCI2000 filter.&lt;br /&gt;
&lt;br /&gt;
=Parameter design=&lt;br /&gt;
Parameter files are saved as a &amp;#039;&amp;#039;.prm&amp;#039;&amp;#039; file. Each parameter is one line. A parameter can be a string, float, boolean, integer, matrix, enumeration, file, directory, or color.&lt;br /&gt;
&lt;br /&gt;
[[Technical Reference:Parameter Definition#Parameter Lines|More detailed information about the syntax can be found here.]] However, it is very tedious to edit these parameters in this format. Instead, they can be opened in a tool called BCI2000FileInfo or set in Matlab, as detailed below.&lt;br /&gt;
&lt;br /&gt;
=Viewing Parameters in BCI2000=&lt;br /&gt;
Parameters are most easily viewed in the BCI2000 Parameter Configuration window. This can either be opened with BCI2000FileInfo, or by pressing the &amp;#039;&amp;#039;Config&amp;#039;&amp;#039; button in the main BCI2000 window.&lt;br /&gt;
[[File:OperatorConfiguration.png|center|frame|The parameter configuration window, opened with either BCI2000FileInfo or the Config button]]&lt;br /&gt;
&lt;br /&gt;
Once you have navigated the tabs and changed whichever parameters you desire, click on &amp;#039;&amp;#039;Save Parameters&amp;#039;&amp;#039; to save the parameters to a &amp;#039;&amp;#039;.prm&amp;#039;&amp;#039; file. Likewise, if you already have the parameter file and want to load it, click on &amp;#039;&amp;#039;Load Parameters&amp;#039;&amp;#039;. &lt;br /&gt;
&lt;br /&gt;
[[User_Reference:Operator_Module#Preferences_Dialog|Further information is detailed here.]]&lt;br /&gt;
&lt;br /&gt;
==Advanced Features==&lt;br /&gt;
* &amp;#039;&amp;#039;Configure Save&amp;#039;&amp;#039; and &amp;#039;&amp;#039;Configure Load&amp;#039;&amp;#039; buttons: These limit which parameters are saved/loaded. It is BCI2000 &amp;quot;best practice&amp;quot; to save only the parameters you change, and always load every parameter (&amp;#039;&amp;#039;Configure Load&amp;#039;&amp;#039; should always have every box enabled). This means before you click &amp;#039;&amp;#039;Save Parameters&amp;#039;&amp;#039;, change &amp;#039;&amp;#039;Configure Save&amp;#039;&amp;#039; to the parameters you changed. This saves a parameter file with only a couple parameters, commonly called a &amp;#039;&amp;#039;&amp;#039;parameter fragment&amp;#039;&amp;#039;&amp;#039;. &lt;br /&gt;
&lt;br /&gt;
* Sliding bar: This defines the parameter&amp;#039;s &amp;#039;&amp;#039;User Level&amp;#039;&amp;#039;. The &amp;#039;&amp;#039;User Level&amp;#039;&amp;#039; can be specified in the &amp;#039;&amp;#039;Preferences Dialog&amp;#039;&amp;#039; (File -&amp;gt; Preferences). By default it is set to the highest level, but if you change it, only the parameters which are at or below the user level will appear. For example, if &amp;#039;&amp;#039;SubjectName&amp;#039;&amp;#039; is set to the 2nd level and SubjectSession to the 1st level, if the &amp;#039;&amp;#039;UserLevel&amp;#039;&amp;#039; is set to level 2, both &amp;#039;&amp;#039;SubjectName&amp;#039;&amp;#039; and &amp;#039;&amp;#039;SubjectSession&amp;#039;&amp;#039; will be shown, while &amp;#039;&amp;#039;SubjectRun&amp;#039;&amp;#039; (still at level 3) will not appear. If the &amp;#039;&amp;#039;UserLevel&amp;#039;&amp;#039; is then set to level 1, only &amp;#039;&amp;#039;SubjectSession&amp;#039;&amp;#039; will appear.&lt;br /&gt;
&lt;br /&gt;
=Setting Parameters (Matlab / Python)=&lt;br /&gt;
Another easy way to populate parameters is through either Matlab or Python. Matlab uses a mex file [[User_Reference:Matlab_MEX_Files#convert_bciprm|convert_bciprm]], while Python uses a function by [https://github.com/neurotechcenter/Convert_bciprm-Python- the same name]. This function takes the parameter struct as the input, and output a &amp;#039;&amp;#039;.prm&amp;#039;&amp;#039; file.&lt;br /&gt;
&lt;br /&gt;
[https://github.com/neurotechcenter/BCI2000_ExperimentalDesignDemos/tree/main/BCI2000Native_StimulusPresentation Examples can be found here for both Matlab and Python]&lt;br /&gt;
&lt;br /&gt;
=Loading Parameters=&lt;br /&gt;
# Clicking &amp;#039;&amp;#039;Load Parameters&amp;#039;&amp;#039; in the parameter configuration window (above)&lt;br /&gt;
# Using the [[User_Reference:Operator_Module_Scripting#LOAD_PARAMETERFILE_&amp;lt;file&amp;gt;,_LOAD_PARAMETERS_&amp;lt;file&amp;gt;|&amp;#039;&amp;#039;Load ParameterFile&amp;#039;&amp;#039;]] command in your batch file. &lt;br /&gt;
# Load parameter file with BCI2000Remote. Refer to [[APIs|this page]] for the command in each possible language.&lt;br /&gt;
&lt;br /&gt;
=Accessing Parameters=&lt;br /&gt;
# Loading the &amp;#039;&amp;#039;.dat&amp;#039;&amp;#039; file, which returns the signal, states, and &amp;lt;u&amp;gt;parameters&amp;lt;/u&amp;gt;: [[User_Reference:Matlab_MEX_Files#load_bcidat|load_bcidat]] in Matlab or [https://github.com/neurotechcenter/BCI2kReader BCI2kReader] in Python.&lt;br /&gt;
# Loading the &amp;#039;&amp;#039;.prm&amp;#039;&amp;#039; or &amp;#039;&amp;#039;.dat&amp;#039;&amp;#039; file in [[User Reference:BCI2000FileInfo|BCI2000FileInfo]]&lt;br /&gt;
&lt;br /&gt;
=Creating Parameters (for Developers)=&lt;br /&gt;
Parameters are defined in the [[Programming_Reference:GenericFilter_Class#Publish|&amp;#039;&amp;#039;Publish&amp;#039;&amp;#039;]] method of a BCI2000 filter, using the same syntax of [[Technical_Reference:Parameter_Definition#Parameter_Lines|parameter lines]].&lt;br /&gt;
&lt;br /&gt;
Elsewhere in your BCI2000 filter, you can access the parameter according to the [[Programming Reference:Environment Class|syntax here]]. If you really want the full syntax, it is [[Programming Reference:Parameters|described here]].&lt;/div&gt;</summary>
		<author><name>Wengelhardt</name></author>
	</entry>
</feed>