Commit 1ed3d3b6 authored by Jussi Lindgren's avatar Jussi Lindgren

openvibe-scenarios:

 * Example scenarios now write files such as classifiers, configs and signals under a folder specified by the scenario path token instead of what $Path_Samples points to. Lua scripts are likewise accessed using the scenario token. Shared, read-only data files are still read from $Path_Samples/signals/. The  purpose of this modification is to allow scenario folders to be copied around, and once a scenario is copied to user-writeable filesystem space, it no longer writes to the installation tree (e.g. under Program Files/ on Windows, which should be read-only for apps). This approach also allows several copies and parameterizations of the same scenario to co-exist without interference (provided that each scenario is in a different folder).
 * Moved python box tutorials one directory backwards in the tree so they can access their datas using the scenario token dir without having to refer backwards in the directory tree.
 + Added motor imagery classifier example config to handball scenario so it doesn't need to look inside motor imagery scenario directory.
 * Added .cfg extensions to the classifier files of the SSVEP scenario.


git-svn-id: svn://scm.gforge.inria.fr/svn/openvibe@3517 c330d7e9-fc0c-0410-a5b3-fd85c6f5aa8f
parent 9fa747f3
......@@ -338,7 +338,7 @@
<TypeIdentifier>(0x330306dd, 0x74a95f98)</TypeIdentifier>
<Name>Filename to load configuration from</Name>
<DefaultValue></DefaultValue>
<Value>${Path_Samples}/bci/motor-imagery/motor-imagery-bci-config-classifier.cfg</Value>
<Value>${__volatile_ScenarioDir}/motor-imagery-bci-config-classifier.cfg</Value>
</Setting>
<Setting>
<TypeIdentifier>(0x2c132d6e, 0x44ab0d97)</TypeIdentifier>
......
<OpenViBE-Classifier>
<LDA>
<Classes>1 2</Classes>
<Coefficients>1.228474e+00 4.852093e+00 -5.293004e+00</Coefficients>
</LDA>
</OpenViBE-Classifier>
\ No newline at end of file
......@@ -82,7 +82,7 @@
<TypeIdentifier>(0xb0d0db45, 0x49cbc34a)</TypeIdentifier>
<Name>Lua Script</Name>
<DefaultValue></DefaultValue>
<Value>${Path_Samples}/bci/motor-imagery-CSP/motor-imagery-bci-graz-stimulator.lua</Value>
<Value>${__volatile_ScenarioDir}/motor-imagery-bci-graz-stimulator.lua</Value>
</Setting>
<Setting>
<TypeIdentifier>(0x007deef9, 0x2f3e95c6)</TypeIdentifier>
......@@ -345,7 +345,7 @@
<TypeIdentifier>(0x330306dd, 0x74a95f98)</TypeIdentifier>
<Name>Filename</Name>
<DefaultValue></DefaultValue>
<Value>${Path_Samples}/signals/motor-imagery-csp-1-acquisition-[$core{date}-$core{time}].ov</Value>
<Value>${__volatile_ScenarioDir}/signals/motor-imagery-csp-1-acquisition-[$core{date}-$core{time}].ov</Value>
</Setting>
<Setting>
<TypeIdentifier>(0x2cdb2f0b, 0x12f231ea)</TypeIdentifier>
......@@ -613,7 +613,8 @@ let you imagine left / right hand movements.
There will be 20 arrows of each side.
&lt;small&gt;&lt;i&gt;&lt;b&gt;note:&lt;/b&gt; the recorded files go to the
&lt;span color=&quot;darkblue&quot;&gt;${Path_Samples}/signals&lt;/span&gt; folder.&lt;/i&gt;&lt;/small&gt;</Text>
folder where the scenario xml is located
(&lt;span color=&quot;darkblue&quot;&gt;${__volatile_ScenarioDir}/&lt;/span&gt;).&lt;/i&gt;&lt;/small&gt;</Text>
<Attributes>
<Attribute>
<Identifier>(0x473d9a43, 0x97fc0a97)</Identifier>
......@@ -726,4 +727,4 @@ monitor the signals during an experiment</Text>
<Value>INRIA</Value>
</Attribute>
</Attributes>
</OpenViBE-Scenario>
\ No newline at end of file
</OpenViBE-Scenario>
......@@ -274,7 +274,7 @@
<TypeIdentifier>(0x330306dd, 0x74a95f98)</TypeIdentifier>
<Name>Spatial filter configuration</Name>
<DefaultValue></DefaultValue>
<Value>${Path_Samples}/bci/motor-imagery-CSP/csp-spatial-filter.cfg</Value>
<Value>${__volatile_ScenarioDir}/csp-spatial-filter.cfg</Value>
</Setting>
<Setting>
<TypeIdentifier>(0x007deef9, 0x2f3e95c6)</TypeIdentifier>
......@@ -922,4 +922,4 @@ telling the &lt;i&gt;Player Controller&lt;/i&gt; to pause the scenario.</Text>
<NumChildren>0</NumChildren>
</VisualisationWidget>
</VisualisationTree>
</OpenViBE-Scenario>
\ No newline at end of file
</OpenViBE-Scenario>
......@@ -508,7 +508,7 @@
<TypeIdentifier>(0x330306dd, 0x74a95f98)</TypeIdentifier>
<Name>Filename to save configuration to</Name>
<DefaultValue></DefaultValue>
<Value>${Path_Samples}/bci/motor-imagery-CSP/motor-imagery-bci-config-classifier.cfg</Value>
<Value>${__volatile_ScenarioDir}/motor-imagery-bci-config-classifier.cfg</Value>
</Setting>
<Setting>
<TypeIdentifier>(0x2c132d6e, 0x44ab0d97)</TypeIdentifier>
......@@ -1109,7 +1109,7 @@
</Attribute>
<Attribute>
<Identifier>(0x8d21ff41, 0xdf6afe7e)</Identifier>
<Value>${Path_Samples}/bci/motor-imagery-CSP/csp-spatial-filter.cfg</Value>
<Value>${__volatile_ScenarioDir}/csp-spatial-filter.cfg</Value>
</Attribute>
<Attribute>
<Identifier>(0xad100179, 0xa3c984ab)</Identifier>
......@@ -2020,4 +2020,4 @@ classifier trainer scenario&lt;/i&gt;&lt;/small&gt;</Text>
<Value>INRIA</Value>
</Attribute>
</Attributes>
</OpenViBE-Scenario>
\ No newline at end of file
</OpenViBE-Scenario>
......@@ -195,7 +195,7 @@
</Attribute>
<Attribute>
<Identifier>(0x8d21ff41, 0xdf6afe7e)</Identifier>
<Value>${Path_Samples}/bci/motor-imagery-CSP/csp-spatial-filter.cfg</Value>
<Value>${__volatile_ScenarioDir}/csp-spatial-filter.cfg</Value>
</Attribute>
<Attribute>
<Identifier>(0xad100179, 0xa3c984ab)</Identifier>
......@@ -319,7 +319,7 @@
<TypeIdentifier>(0xb0d0db45, 0x49cbc34a)</TypeIdentifier>
<Name>Lua Script</Name>
<DefaultValue></DefaultValue>
<Value>${Path_Samples}/bci/motor-imagery-CSP/motor-imagery-bci-graz-stimulator.lua</Value>
<Value>${__volatile_ScenarioDir}/motor-imagery-bci-graz-stimulator.lua</Value>
</Setting>
<Setting>
<TypeIdentifier>(0x007deef9, 0x2f3e95c6)</TypeIdentifier>
......@@ -716,7 +716,7 @@
<TypeIdentifier>(0x330306dd, 0x74a95f98)</TypeIdentifier>
<Name>Filename to load configuration from</Name>
<DefaultValue></DefaultValue>
<Value>${Path_Samples}/bci/motor-imagery-CSP/motor-imagery-bci-config-classifier.cfg</Value>
<Value>${__volatile_ScenarioDir}/motor-imagery-bci-config-classifier.cfg</Value>
</Setting>
<Setting>
<TypeIdentifier>(0x2c132d6e, 0x44ab0d97)</TypeIdentifier>
......@@ -838,7 +838,7 @@
<TypeIdentifier>(0x330306dd, 0x74a95f98)</TypeIdentifier>
<Name>Filename</Name>
<DefaultValue></DefaultValue>
<Value>${Path_Samples}/signals/motor-imagery-csp-4-online-[$core{date}-$core{time}].ov</Value>
<Value>${__volatile_ScenarioDir}/signals/motor-imagery-csp-4-online-[$core{date}-$core{time}].ov</Value>
</Setting>
<Setting>
<TypeIdentifier>(0x2cdb2f0b, 0x12f231ea)</TypeIdentifier>
......@@ -1529,7 +1529,8 @@ This scenario can be used online once the
CSP spatial filter and the classifier is trained.
&lt;small&gt;&lt;i&gt;&lt;b&gt;note:&lt;/b&gt; the recorded files go to the
&lt;span color=&quot;darkblue&quot;&gt;${Path_Samples}/signals&lt;/span&gt; folder.&lt;/i&gt;&lt;/small&gt;</Text>
folder where the scenario xml is located
(&lt;span color=&quot;darkblue&quot;&gt;${__volatile_ScenarioDir}/&lt;/span&gt;).&lt;/i&gt;&lt;/small&gt;</Text>
<Attributes>
<Attribute>
<Identifier>(0x473d9a43, 0x97fc0a97)</Identifier>
......@@ -1605,4 +1606,4 @@ CSP spatial filter and the classifier is trained.
<Value>INRIA</Value>
</Attribute>
</Attributes>
</OpenViBE-Scenario>
\ No newline at end of file
</OpenViBE-Scenario>
......@@ -134,7 +134,7 @@
</Attribute>
<Attribute>
<Identifier>(0x8d21ff41, 0xdf6afe7e)</Identifier>
<Value>${Path_Samples}/bci/motor-imagery-CSP/csp-spatial-filter.cfg</Value>
<Value>${__volatile_ScenarioDir}/csp-spatial-filter.cfg</Value>
</Attribute>
<Attribute>
<Identifier>(0xad100179, 0xa3c984ab)</Identifier>
......@@ -464,7 +464,7 @@
<TypeIdentifier>(0xb0d0db45, 0x49cbc34a)</TypeIdentifier>
<Name>Lua Script</Name>
<DefaultValue></DefaultValue>
<Value>${Path_Samples}/bci/motor-imagery-CSP/motor-imagery-bci-epoch-selector.lua</Value>
<Value>${__volatile_ScenarioDir}/motor-imagery-bci-epoch-selector.lua</Value>
</Setting>
<Setting>
<TypeIdentifier>(0x512a166f, 0x5c3ef83f)</TypeIdentifier>
......@@ -1088,7 +1088,7 @@
<TypeIdentifier>(0x330306dd, 0x74a95f98)</TypeIdentifier>
<Name>Filename to load configuration from</Name>
<DefaultValue></DefaultValue>
<Value>${Path_Samples}/bci/motor-imagery-CSP/motor-imagery-bci-config-classifier.cfg</Value>
<Value>${__volatile_ScenarioDir}/motor-imagery-bci-config-classifier.cfg</Value>
</Setting>
<Setting>
<TypeIdentifier>(0x2c132d6e, 0x44ab0d97)</TypeIdentifier>
......@@ -2162,4 +2162,4 @@ computes the global performance of the classifier.</Text>
<Value>INRIA</Value>
</Attribute>
</Attributes>
</OpenViBE-Scenario>
\ No newline at end of file
</OpenViBE-Scenario>
......@@ -70,7 +70,7 @@
<TypeIdentifier>(0xb0d0db45, 0x49cbc34a)</TypeIdentifier>
<Name>Lua Script</Name>
<DefaultValue></DefaultValue>
<Value>${Path_Samples}/bci/motor-imagery/motor-imagery-bci-graz-stimulator.lua</Value>
<Value>${__volatile_ScenarioDir}/motor-imagery-bci-graz-stimulator.lua</Value>
</Setting>
<Setting>
<TypeIdentifier>(0x007deef9, 0x2f3e95c6)</TypeIdentifier>
......@@ -274,7 +274,7 @@
<TypeIdentifier>(0x330306dd, 0x74a95f98)</TypeIdentifier>
<Name>Filename</Name>
<DefaultValue></DefaultValue>
<Value>${Path_Samples}/signals/motor-imagery-1-[$core{date}-$core{time}].ov</Value>
<Value>${__volatile_ScenarioDir}/signals/motor-imagery-1-[$core{date}-$core{time}].ov</Value>
</Setting>
<Setting>
<TypeIdentifier>(0x2cdb2f0b, 0x12f231ea)</TypeIdentifier>
......@@ -631,7 +631,8 @@ let you imagine left / right hand movements.
There will be 20 arrows of each side.
&lt;small&gt;&lt;i&gt;&lt;b&gt;note:&lt;/b&gt; the recorded files go to the
&lt;span color=&quot;darkblue&quot;&gt;${Path_Samples}/signals&lt;/span&gt; folder.&lt;/i&gt;&lt;/small&gt;</Text>
folder where the scenario xml is located
(&lt;span color=&quot;darkblue&quot;&gt;${__volatile_ScenarioDir}/&lt;/span&gt;).&lt;/i&gt;&lt;/small&gt;</Text>
<Attributes>
<Attribute>
<Identifier>(0x473d9a43, 0x97fc0a97)</Identifier>
......@@ -730,4 +731,4 @@ monitor the signals during an experiment</Text>
<Value>INRIA</Value>
</Attribute>
</Attributes>
</OpenViBE-Scenario>
\ No newline at end of file
</OpenViBE-Scenario>
......@@ -815,7 +815,7 @@
<TypeIdentifier>(0x330306dd, 0x74a95f98)</TypeIdentifier>
<Name>Filename to save configuration to</Name>
<DefaultValue></DefaultValue>
<Value>${Path_Samples}/bci/motor-imagery/motor-imagery-bci-config-classifier.cfg</Value>
<Value>${__volatile_ScenarioDir}/motor-imagery-bci-config-classifier.cfg</Value>
</Setting>
<Setting>
<TypeIdentifier>(0x2c132d6e, 0x44ab0d97)</TypeIdentifier>
......
......@@ -137,7 +137,7 @@
<TypeIdentifier>(0xb0d0db45, 0x49cbc34a)</TypeIdentifier>
<Name>Lua Script</Name>
<DefaultValue></DefaultValue>
<Value>${Path_Samples}/bci/motor-imagery/motor-imagery-bci-graz-stimulator.lua</Value>
<Value>${__volatile_ScenarioDir}/motor-imagery-bci-graz-stimulator.lua</Value>
</Setting>
<Setting>
<TypeIdentifier>(0x007deef9, 0x2f3e95c6)</TypeIdentifier>
......@@ -353,7 +353,7 @@
<TypeIdentifier>(0x330306dd, 0x74a95f98)</TypeIdentifier>
<Name>Filename</Name>
<DefaultValue></DefaultValue>
<Value>${Path_Samples}/signals/record-[$core{date}-$core{time}].ov</Value>
<Value>${__volatile_ScenarioDir}/signals/record-[$core{date}-$core{time}].ov</Value>
</Setting>
<Setting>
<TypeIdentifier>(0x2cdb2f0b, 0x12f231ea)</TypeIdentifier>
......@@ -574,7 +574,7 @@
<TypeIdentifier>(0x330306dd, 0x74a95f98)</TypeIdentifier>
<Name>Filename to load configuration from</Name>
<DefaultValue></DefaultValue>
<Value>${Path_Samples}/bci/motor-imagery/motor-imagery-bci-config-classifier.cfg</Value>
<Value>${__volatile_ScenarioDir}/motor-imagery-bci-config-classifier.cfg</Value>
</Setting>
<Setting>
<TypeIdentifier>(0x2c132d6e, 0x44ab0d97)</TypeIdentifier>
......@@ -1940,7 +1940,8 @@ This scenario can be used online once the
classifiers is trained.
&lt;small&gt;&lt;i&gt;&lt;b&gt;note:&lt;/b&gt; the recorded files go to the
&lt;span color=&quot;darkblue&quot;&gt;${Path_Samples}/signals&lt;/span&gt; folder.&lt;/i&gt;&lt;/small&gt;</Text>
folder where the scenario xml is located
(&lt;span color=&quot;darkblue&quot;&gt;${__volatile_ScenarioDir}/&lt;/span&gt;).&lt;/i&gt;&lt;/small&gt;</Text>
<Attributes>
<Attribute>
<Identifier>(0x473d9a43, 0x97fc0a97)</Identifier>
......@@ -2024,4 +2025,4 @@ classifiers is trained.
<Value>INRIA</Value>
</Attribute>
</Attributes>
</OpenViBE-Scenario>
\ No newline at end of file
</OpenViBE-Scenario>
......@@ -544,7 +544,7 @@
<TypeIdentifier>(0x330306dd, 0x74a95f98)</TypeIdentifier>
<Name>Filename to load configuration from</Name>
<DefaultValue></DefaultValue>
<Value>${Path_Samples}/bci/motor-imagery/motor-imagery-bci-config-classifier.cfg</Value>
<Value>${__volatile_ScenarioDir}/motor-imagery-bci-config-classifier.cfg</Value>
</Setting>
<Setting>
<TypeIdentifier>(0x2c132d6e, 0x44ab0d97)</TypeIdentifier>
......
......@@ -144,7 +144,7 @@
<TypeIdentifier>(0x330306dd, 0x74a95f98)</TypeIdentifier>
<Name>Filename</Name>
<DefaultValue></DefaultValue>
<Value>${Path_Samples}/signals/current-[$core{date}-$core{time}].ov</Value>
<Value>${__volatile_ScenarioDir}/signals/current-[$core{date}-$core{time}].ov</Value>
</Setting>
<Setting>
<TypeIdentifier>(0x2cdb2f0b, 0x12f231ea)</TypeIdentifier>
......@@ -841,7 +841,7 @@
<TypeIdentifier>(0xb0d0db45, 0x49cbc34a)</TypeIdentifier>
<Name>Lua Script</Name>
<DefaultValue></DefaultValue>
<Value>${Path_Samples}/bci/p300-magic-card/p300-magic-card-stimulations-targets.lua</Value>
<Value>${__volatile_ScenarioDir}/p300-magic-card-stimulations-targets.lua</Value>
</Setting>
<Setting>
<TypeIdentifier>(0x007deef9, 0x2f3e95c6)</TypeIdentifier>
......@@ -1791,4 +1791,4 @@
<NumChildren>0</NumChildren>
</VisualisationWidget>
</VisualisationTree>
</OpenViBE-Scenario>
\ No newline at end of file
</OpenViBE-Scenario>
......@@ -358,7 +358,7 @@
</Attribute>
<Attribute>
<Identifier>(0x8d21ff41, 0xdf6afe7e)</Identifier>
<Value>${Path_Samples}/bci/p300-magic-card/p300-epoch-average.cfg</Value>
<Value>${__volatile_ScenarioDir}/p300-epoch-average.cfg</Value>
</Attribute>
<Attribute>
<Identifier>(0xad100179, 0xa3c984ab)</Identifier>
......@@ -503,7 +503,7 @@
<TypeIdentifier>(0x330306dd, 0x74a95f98)</TypeIdentifier>
<Name>Filename to save configuration to</Name>
<DefaultValue></DefaultValue>
<Value>${Path_Samples}/bci/p300-magic-card/p300-classifier.cfg</Value>
<Value>${__volatile_ScenarioDir}/p300-classifier.cfg</Value>
</Setting>
<Setting>
<TypeIdentifier>(0x2c132d6e, 0x44ab0d97)</TypeIdentifier>
......@@ -764,7 +764,7 @@
</Attribute>
<Attribute>
<Identifier>(0x8d21ff41, 0xdf6afe7e)</Identifier>
<Value>${Path_Samples}/bci/p300-magic-card/p300-epoch-average.cfg</Value>
<Value>${__volatile_ScenarioDir}/p300-epoch-average.cfg</Value>
</Attribute>
<Attribute>
<Identifier>(0xad100179, 0xa3c984ab)</Identifier>
......
<OpenViBE-SettingsOverride>
<SettingValue>Linear Discrimimant Analysis (LDA)</SettingValue>
<SettingValue>${Path_Samples}/bci/p300-speller-xDAWN/p300-classifier.cfg</SettingValue>
<SettingValue>${__volatile_ScenarioDir}/p300-classifier.cfg</SettingValue>
<SettingValue>OVTK_StimulationId_Label_00</SettingValue>
<SettingValue>OVTK_StimulationId_Target</SettingValue>
<SettingValue>OVTK_StimulationId_NonTarget</SettingValue>
......
......@@ -21,7 +21,7 @@
<TypeIdentifier>(0xb0d0db45, 0x49cbc34a)</TypeIdentifier>
<Name>Lua Script</Name>
<DefaultValue></DefaultValue>
<Value>${Path_Samples}/bci/p300-speller-xDAWN/p300-speller-target.lua</Value>
<Value>${__volatile_ScenarioDir}/p300-speller-target.lua</Value>
</Setting>
<Setting>
<TypeIdentifier>(0x79a9edeb, 0x245d83fc)</TypeIdentifier>
......@@ -425,7 +425,7 @@
</Attribute>
<Attribute>
<Identifier>(0x8d21ff41, 0xdf6afe7e)</Identifier>
<Value>${Path_Samples}/bci/p300-speller-xDAWN/p300-speller-visualisation.cfg</Value>
<Value>${__volatile_ScenarioDir}/p300-speller-visualisation.cfg</Value>
</Attribute>
<Attribute>
<Identifier>(0xac367a9c, 0x2da95abe)</Identifier>
......@@ -464,7 +464,7 @@
<TypeIdentifier>(0x330306dd, 0x74a95f98)</TypeIdentifier>
<Name>Filename</Name>
<DefaultValue></DefaultValue>
<Value>${Path_Samples}/signals/p300-speller-xdawn-1-[$core{date}-$core{time}].ov</Value>
<Value>${__volatile_ScenarioDir}/signals/p300-speller-xdawn-1-[$core{date}-$core{time}].ov</Value>
</Setting>
<Setting>
<TypeIdentifier>(0x2cdb2f0b, 0x12f231ea)</TypeIdentifier>
......@@ -617,7 +617,7 @@
</Attribute>
<Attribute>
<Identifier>(0x8d21ff41, 0xdf6afe7e)</Identifier>
<Value>${Path_Samples}/bci/p300-speller-xDAWN/p300-speller-stimulator.cfg</Value>
<Value>${__volatile_ScenarioDir}/p300-speller-stimulator.cfg</Value>
</Attribute>
<Attribute>
<Identifier>(0xac367a9c, 0x2da95abe)</Identifier>
......@@ -1003,7 +1003,8 @@ flashing sequence of the whole grid. This will
be repeated 10 times.
&lt;small&gt;&lt;i&gt;&lt;b&gt;note:&lt;/b&gt; the recorded files go to the
&lt;span color=&quot;darkblue&quot;&gt;${Path_Samples}/signals&lt;/span&gt; folder.&lt;/i&gt;&lt;/small&gt;</Text>
folder where the scenario xml is located
(&lt;span color=&quot;darkblue&quot;&gt;${__volatile_ScenarioDir}/&lt;/span&gt;).&lt;/i&gt;&lt;/small&gt;</Text>
<Attributes>
<Attribute>
<Identifier>(0x473d9a43, 0x97fc0a97)</Identifier>
......@@ -1087,4 +1088,4 @@ monitor the signals during an experiment</Text>
<Value>INRIA</Value>
</Attribute>
</Attributes>
</OpenViBE-Scenario>
\ No newline at end of file
</OpenViBE-Scenario>
......@@ -230,7 +230,7 @@
<TypeIdentifier>(0x330306dd, 0x74a95f98)</TypeIdentifier>
<Name>Spatial filter configuration</Name>
<DefaultValue></DefaultValue>
<Value>${Path_Samples}/bci/p300-speller-xDAWN/p300-spatial-filter.cfg</Value>
<Value>${__volatile_ScenarioDir}/p300-spatial-filter.cfg</Value>
</Setting>
<Setting>
<TypeIdentifier>(0x007deef9, 0x2f3e95c6)</TypeIdentifier>
......@@ -468,7 +468,7 @@
</Attribute>
<Attribute>
<Identifier>(0x8d21ff41, 0xdf6afe7e)</Identifier>
<Value>${Path_Samples}/bci/p300-speller-xDAWN/p300-speller-visualisation.cfg</Value>
<Value>${__volatile_ScenarioDir}/p300-speller-visualisation.cfg</Value>
</Attribute>
<Attribute>
<Identifier>(0xad100179, 0xa3c984ab)</Identifier>
......@@ -1014,4 +1014,4 @@ If you want details on this values, you should read
<Value>INRIA</Value>
</Attribute>
</Attributes>
</OpenViBE-Scenario>
\ No newline at end of file
</OpenViBE-Scenario>
......@@ -179,7 +179,7 @@
</Attribute>
<Attribute>
<Identifier>(0x8d21ff41, 0xdf6afe7e)</Identifier>
<Value>${Path_Samples}/bci/p300-speller-xDAWN/p300-epoch-average.cfg</Value>
<Value>${__volatile_ScenarioDir}/p300-epoch-average.cfg</Value>
</Attribute>
<Attribute>
<Identifier>(0xad100179, 0xa3c984ab)</Identifier>
......@@ -325,7 +325,7 @@
</Attribute>
<Attribute>
<Identifier>(0x8d21ff41, 0xdf6afe7e)</Identifier>
<Value>${Path_Samples}/bci/p300-speller-xDAWN/p300-epoch-average.cfg</Value>
<Value>${__volatile_ScenarioDir}/p300-epoch-average.cfg</Value>
</Attribute>
<Attribute>
<Identifier>(0xad100179, 0xa3c984ab)</Identifier>
......@@ -472,7 +472,7 @@
<TypeIdentifier>(0x330306dd, 0x74a95f98)</TypeIdentifier>
<Name>Filename to save configuration to</Name>
<DefaultValue></DefaultValue>
<Value>${Path_Samples}/bci/p300-speller-xDAWN/p300-classifier.cfg</Value>
<Value>${__volatile_ScenarioDir}/p300-classifier.cfg</Value>
</Setting>
<Setting>
<TypeIdentifier>(0x2c132d6e, 0x44ab0d97)</TypeIdentifier>
......@@ -665,7 +665,7 @@
</Attribute>
<Attribute>
<Identifier>(0x8d21ff41, 0xdf6afe7e)</Identifier>
<Value>${Path_Samples}/bci/p300-speller-xDAWN/p300-speller-visualisation.cfg</Value>
<Value>${__volatile_ScenarioDir}/p300-speller-visualisation.cfg</Value>
</Attribute>
<Attribute>
<Identifier>(0xad100179, 0xa3c984ab)</Identifier>
......@@ -736,7 +736,7 @@
</Attribute>
<Attribute>
<Identifier>(0x8d21ff41, 0xdf6afe7e)</Identifier>
<Value>${Path_Samples}/bci/p300-speller-xDAWN/p300-spatial-filter.cfg</Value>
<Value>${__volatile_ScenarioDir}/p300-spatial-filter.cfg</Value>
</Attribute>
<Attribute>
<Identifier>(0xad100179, 0xa3c984ab)</Identifier>
......@@ -1637,4 +1637,4 @@ the spatial filter should have been trained using
<Value>INRIA</Value>
</Attribute>
</Attributes>
</OpenViBE-Scenario>
\ No newline at end of file
</OpenViBE-Scenario>
<OpenViBE-SettingsOverride>
<SettingValue>Linear Discrimimant Analysis (LDA)</SettingValue>
<SettingValue>${Path_Samples}/bci/p300-magic-card-xDAWN/p300-classifier.cfg</SettingValue>
<SettingValue>${__volatile_ScenarioDir}/p300-classifier.cfg</SettingValue>
<SettingValue>OVTK_StimulationId_Label_00</SettingValue>
<SettingValue>OVTK_StimulationId_Target</SettingValue>
<SettingValue>OVTK_StimulationId_NonTarget</SettingValue>
</OpenViBE-SettingsOverride>
\ No newline at end of file
</OpenViBE-SettingsOverride>
......@@ -106,7 +106,7 @@
<TypeIdentifier>(0x330306dd, 0x74a95f98)</TypeIdentifier>
<Name>Filename</Name>
<DefaultValue></DefaultValue>
<Value>${Path_Samples}/signals/record-[$core{date}-$core{time}].ov</Value>
<Value>${__volatile_ScenarioDir}/signals/record-[$core{date}-$core{time}].ov</Value>
</Setting>
<Setting>
<TypeIdentifier>(0x2cdb2f0b, 0x12f231ea)</TypeIdentifier>
......@@ -171,7 +171,7 @@
<TypeIdentifier>(0xb0d0db45, 0x49cbc34a)</TypeIdentifier>
<Name>Lua Script</Name>
<DefaultValue></DefaultValue>
<Value>${Path_Samples}/bci/p300-speller/p300-speller-target.lua</Value>
<Value>${__volatile_ScenarioDir}/p300-speller-target.lua</Value>
</Setting>
<Setting>
<TypeIdentifier>(0x79a9edeb, 0x245d83fc)</TypeIdentifier>
......@@ -546,7 +546,7 @@
</Attribute>
<Attribute>
<Identifier>(0x8d21ff41, 0xdf6afe7e)</Identifier>
<Value>${Path_Samples}/bci/p300-speller/p300-speller-visualisation.cfg</Value>
<Value>${__volatile_ScenarioDir}/p300-speller-visualisation.cfg</Value>
</Attribute>
<Attribute>
<Identifier>(0xad100179, 0xa3c984ab)</Identifier>
......@@ -1783,4 +1783,4 @@
<NumChildren>0</NumChildren>
</VisualisationWidget>
</VisualisationTree>
</OpenViBE-Scenario>
\ No newline at end of file
</OpenViBE-Scenario>
......@@ -303,7 +303,7 @@
</Attribute>
<Attribute>
<Identifier>(0x8d21ff41, 0xdf6afe7e)</Identifier>
<Value>${Path_Samples}/bci/p300-speller/p300-epoch-average.cfg</Value>
<Value>${__volatile_ScenarioDir}/p300-epoch-average.cfg</Value>
</Attribute>
<Attribute>
<Identifier>(0xad100179, 0xa3c984ab)</Identifier>
......@@ -501,7 +501,7 @@
</Attribute>
<Attribute>
<Identifier>(0x8d21ff41, 0xdf6afe7e)</Identifier>
<Value>${Path_Samples}/bci/p300-speller/p300-speller-visualisation.cfg</Value>
<Value>${__volatile_ScenarioDir}/p300-speller-visualisation.cfg</Value>
</Attribute>
<Attribute>
<Identifier>(0xad100179, 0xa3c984ab)</Identifier>
......@@ -773,7 +773,7 @@
</Attribute>
<Attribute>
<Identifier>(0x8d21ff41, 0xdf6afe7e)</Identifier>
<Value>${Path_Samples}/bci/p300-speller/p300-epoch-average.cfg</Value>
<Value>${__volatile_ScenarioDir}/p300-epoch-average.cfg</Value>
</Attribute>
<Attribute>
<Identifier>(0xad100179, 0xa3c984ab)</Identifier>
......@@ -816,7 +816,7 @@
<TypeIdentifier>(0x330306dd, 0x74a95f98)</TypeIdentifier>
<Name>Filename to save configuration to</Name>
<DefaultValue></DefaultValue>
<Value>${Path_Samples}/bci/p300-speller/p300-classifier.cfg</Value>
<Value>${__volatile_ScenarioDir}/p300-classifier.cfg</Value>
</Setting>
<Setting>
<TypeIdentifier>(0x2c132d6e, 0x44ab0d97)</TypeIdentifier>
......
<OpenViBE-SettingsOverride>
<SettingValue>${Path_Samples}/bci/ssvep/scripts/configuration-experiment-settings.lua</SettingValue>
<SettingValue>${__volatile_ScenarioDir}/scripts/configuration-experiment-settings.lua</SettingValue>
<SettingValue>100,0,0</SettingValue>
<SettingValue>10,10,10</SettingValue>
<SettingValue>20;15;12</SettingValue>
......
<OpenViBE-SettingsOverride>
<SettingValue>${Path_Samples}/bci/ssvep/scripts/shooter-controller.lua</SettingValue>
<SettingValue>${__volatile_ScenarioDir}/scripts/shooter-controller.lua</SettingValue>
<SettingValue>0 3 5 7 2 6 4 1</SettingValue>
<SettingValue>0.01</SettingValue>
</OpenViBE-SettingsOverride>
\ No newline at end of file
<OpenViBE-SettingsOverride>
<SettingValue>${Path_Samples}/bci/ssvep/scripts/training-acquisition-controller.lua</SettingValue>
<SettingValue>${__volatile_ScenarioDir}/scripts/training-acquisition-controller.lua</SettingValue>
<SettingValue>0 2 3 1 2 1 0 3 1 2 3 0 2 0 3 1 0 3 1 2 3 0 1 2 1 3 2 0 3 2 0 1 </SettingValue>
<SettingValue>7.000000</SettingValue>
<SettingValue>4.000000</SettingValue>
......
......@@ -62,8 +62,10 @@ function process(box)
-- create configuration files for temporal filters
scenario_path = box:get_config("${__volatile_ScenarioDir}")
for i=1,frequency_count do
cfg_file_name = string.format("%s/openvibe-scenarios/bci/ssvep/configuration/temporal-filter-freq-%d.cfg", os.getenv("OV_DATADIR"), i)
cfg_file_name = scenario_path .. string.format("/configuration/temporal-filter-freq-%d.cfg", i)
box:log("Info", "Writing file '" .. cfg_file_name .. "'")
cfg_file = io.open(cfg_file_name, "w")
......@@ -81,7 +83,7 @@ function process(box)
end
-- create configuration file for time based epoching
cfg_file_name = os.getenv("OV_DATADIR") .. "/openvibe-scenarios/bci/ssvep/configuration/time-based-epoching.cfg";
cfg_file_name = scenario_path .. "/configuration/time-based-epoching.cfg";
box:log("Info", "Writing file '" .. cfg_file_name .. "'")
......
......@@ -99,7 +99,8 @@ function initialize(box)
-- create the configuration file for the stimulation-based-epoching
-- this file is used during classifier training only
cfg_file = io.open(os.getenv("OV_DATADIR") .. "/openvibe-scenarios/bci/ssvep/configuration/stimulation-based-epoching.cfg", "w")
cfg_file_name = box:get_config("${__volatile_ScenarioDir}/configuration/stimulation-based-epoching.cfg")
cfg_file = io.open(cfg_file_name, "w")
cfg_file:write("<OpenViBE-SettingsOverride>\n")
cfg_file:write(" <SettingValue>", stimulation_duration, "</SettingValue>\n")
......
......@@ -76,7 +76,7 @@
<TypeIdentifier>(0xb0d0db45, 0x49cbc34a)</TypeIdentifier>
<Name>Lua Script</Name>
<DefaultValue></DefaultValue>
<Value>${Path_Samples}/bci/ssvep/scripts/configuration-experiment-settings.lua</Value>
<Value>${__volatile_ScenarioDir}/scripts/configuration-experiment-settings.lua</Value>
</Setting>
<Setting>
<TypeIdentifier>(0x7f45a2a9, 0x7db12219)</TypeIdentifier>
......@@ -181,7 +181,7 @@
<TypeIdentifier>(0xb0d0db45, 0x49cbc34a)</TypeIdentifier>
<Name>Lua Script</Name>
<DefaultValue></DefaultValue>
<Value>${Path_Samples}/bci/ssvep/scripts/configuration-peripheral-settings.lua</Value>
<Value>${__volatile_ScenarioDir}/scripts/configuration-peripheral-settings.lua</Value>
</Setting>
<Setting>
<TypeIdentifier>(0x007deef9, 0x2f3e95c6)</TypeIdentifier>
......
......@@ -25,7 +25,7 @@
<TypeIdentifier>(0xb0d0db45, 0x49cbc34a)</TypeIdentifier>
<Name>Lua Script</Name>
<DefaultValue></DefaultValue>
<Value>${Path_Samples}/bci/ssvep/scripts/training-acquisition-controller.lua</Value>
<Value>${__volatile_ScenarioDir}/scripts/training-acquisition-controller.lua</Value>
</Setting>
<Setting>
<TypeIdentifier>(0x79a9edeb, 0x245d83fc)</TypeIdentifier>
......@@ -551,8 +551,8 @@
<Setting>
<TypeIdentifier>(0x330306dd, 0x74a95f98)</TypeIdentifier>
<Name>Filename</Name>
<DefaultValue>record-[$core{date}-$core{time}].ov</DefaultValue>
<Value>${Path_Samples}/signals/ssvep-record-[$core{date}-$core{time}].ov</Value>
<DefaultValue>${__volatile_ScenarioDir}/signals/ssvep-record-[$core{date}-$core{time}].ov</DefaultValue>
<Value>${__volatile_ScenarioDir}/signals/ssvep-record-[$core{date}-$core{time}].ov</Value>
</Setting>
<Setting>
<TypeIdentifier>(0x2cdb2f0b, 0x12f231ea)</TypeIdentifier>
......@@ -615,7 +615,7 @@
<TypeIdentifier>(0xb0d0db45, 0x49cbc34a)</TypeIdentifier>
<Name>Lua Script</Name>
<DefaultValue></DefaultValue>
<Value>${Path_Samples}/bci/ssvep/scripts/start-stimulator.lua</Value>
<Value>${__volatile_ScenarioDir}/scripts/start-stimulator.lua</Value>
</Setting>
<Setting>