BrainStreamProgrmmersGuide: Difference between revisions

Jump to navigation Jump to search
No edit summary
Line 13: Line 13:


Input
Input
{| border="1"
{| class="wikitable"
|-
|-
| <tt>event</tt> || BrainStream event structure  
| <tt>event</tt> || BrainStream event structure  
Line 28: Line 28:


Output
Output
{| border="1"
{| class="wikitable"
|-
|-
| <tt>value</tt> || content of requested key or default value if specified, otherwise an error is generated. Blocksettings structure if first argument is a filename  
| <tt>value</tt> || content of requested key or default value if specified, otherwise an error is generated. Blocksettings structure if first argument is a filename  
Line 47: Line 47:


Input
Input
{| border="1"
{| class="wikitable"
|-
|-
| <tt>input</tt> || either blocksettings structure or the name of a blocksettings file, the latter option is useful to retrieveclean block file content without any comment lines  
| <tt>input</tt> || either blocksettings structure or the name of a blocksettings file, the latter option is useful to retrieveclean block file content without any comment lines  
Line 56: Line 56:


Output
Output
{| border="1"
{| class="wikitable"
|-
|-
| lines || cell array of lines (one per row)  
| lines || cell array of lines (one per row)  
Line 72: Line 72:


Input
Input
{| border="1"
{| class="wikitable"
|-
|-
| expression || some expression that either results in true or false  
| expression || some expression that either results in true or false  
Line 83: Line 83:


Output
Output
{| border="1"
{| class="wikitable"
|-
|-
| opttrue || if expression is true  
| opttrue || if expression is true  
Line 99: Line 99:


Input
Input
{| border="1"
{| class="wikitable"
|-
|-
| filename || name of blockfile with defined experiment definition table to be expanded  
| filename || name of blockfile with defined experiment definition table to be expanded  
Line 108: Line 108:


Output
Output
{| border="1"
{| class="wikitable"
|-
|-
| markers || all info BrainStream requires for its internal processing <br /> definition of all actions for all markers  
| markers || all info BrainStream requires for its internal processing <br /> definition of all actions for all markers  
Line 130: Line 130:


Input
Input
{| border="1"
{| class="wikitable"
|-
|-
| url || string with name of the datafile or fieldtrip buffer url (i.e., something like: 'buffer://localhost:1972')  
| url || string with name of the datafile or fieldtrip buffer url (i.e., something like: 'buffer://localhost:1972')  
Line 299: Line 299:


Input
Input
{| border="1"
{| class="wikitable"
|-
|-
| event || BrainStream event structure  
| event || BrainStream event structure  
Line 317: Line 317:


Input
Input
{| border="1"
{| class="wikitable"
|-
|-
| event || BrainStream event structure  
| event || BrainStream event structure  
Line 340: Line 340:
<pre>bs_send_hardware_marker(event, marker, datasource)</pre>Input
<pre>bs_send_hardware_marker(event, marker, datasource)</pre>Input


{| border="1"
{| class="wikitable"
|-
|-
| event || event structure  
| event || event structure  
Line 361: Line 361:
<pre>bs_send_buffer_marker(event, marker, datasource, delay, reference)</pre>Input
<pre>bs_send_buffer_marker(event, marker, datasource, delay, reference)</pre>Input


{| border="1"
{| class="wikitable"
|-
|-
| event || event structure  
| event || event structure  
Line 392: Line 392:


Input
Input
{| border="1"
{| class="wikitable"
|-
|-
| event || BrainStream event structure |
| event || BrainStream event structure |
Line 420: Line 420:


Input
Input
{| border="1"
{| class="wikitable"
|-
|-
| event || BrainStream event structure |||
| event || BrainStream event structure |||