Skip to content

Commit dd199bc

Browse files
committed
Add documentation page for templates
1 parent 82bf504 commit dd199bc

9 files changed

Lines changed: 36 additions & 2 deletions

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ The file format used by the LabRecorder is XDF. This is a new open general-purpo
1111
# Usage
1212

1313
The LabRecorder displays a list of currently present device streams under "Record from Streams". If you have turned on a device after you have already started the recorder, click the "Refresh" button to update the list (this takes ca. 2 seconds). For testing there are several simple dummy devices in the [examples folder](https://github.com/labstreaminglayer/App-Examples) (for example SendData<!--, SendStringMarkers, and SendDataSimple-->); you can start any of these programs (and follow the on-screen instructions, if any) to bring a stream online. After you have done so, clicking refresh in the recorder should display the streams in green. If you cannot see streams that are provided on another computer, read the section Network Troubleshooting on the NetworkConnectivity page. You can select which streams you want to record from and which not by checking the check boxes next to them. By default any present stream will be initially checked, as in the follwing picture.
14-
> ![labrecorder-default.png](screenshots/labrecorder-default.png)
14+
> ![labrecorder-default.png](doc/labrecorder-default.png)
1515
1616
The entry in "Storage Location" shows you the file name (or file name template) where your recording will be stored. You can change this by clicking the browse button. If this string contains any occurrence of the placeholder `%n`, it will be replaced by the value in the "Experiment Number" field. The value in that field is "smart": when you start the recorder or load a configuration file, this field will be set automatically to the lowest number for which no directory exists yet on disk. If the string contains any occurrence of `%b`, it will be substituted by the the selected string under "Current experiment block". This list of pre-defined block names is feature for advanced uses that can be customized by editing the `default_config.cfg` configuration file (or creating a new one). If the respective directory does not yet exist, it will be created automatically (except if you do not have the permissions to create it). If the file that you are trying to record to already exists, the existing file will be renamed (the string `_oldX` will be appended where X is the lowest number that is not yet occupied by another existing file). This way, it is impossible to accidentally overwrite data.
1717

1818
<!--If the checkbox "Enable scripted actions" is checked, then scripted actions that are defined in your current config file will be automatically invoked when you click Start, Stop, or select a block. This check box is by normally unchecked unless you have custom-tailored a configuration to your experiment or experimentation environment.-->
1919

2020
Click "Start" to start a recording. If everything goes well, the status bar will now display the time since you started the recording, and more importantly, the current file size (the number before the kb) will grow slowly. This is a way to check whether you are still in fact recording data. The recording program cannot be closed while you are recording (as a safety measure). This looks like in the following picture.
21-
> ![labrecorder-running.png](screenshots/labrecorder-running.png)
21+
> ![labrecorder-running.png](doc/labrecorder-running.png)
2222
2323
When you are done recording, click the "Stop" button. You can now close the program. You can now import and inspect your recording, see for example ImportingRecordingsInMatlab.
2424

doc/controls.png

9.14 KB
Loading

doc/labrecorder-default.png

10.4 KB
Loading

doc/labrecorder-running.png

10.6 KB
Loading

doc/labrecorder-study.png

10.6 KB
Loading

doc/templates.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Working with file name templates
2+
3+
Most sites have specific formats for paths and file names or even switched to
4+
the [BIDS](#BIDS) standard. LabRecorder makes it easier to file and name your
5+
correctly by providing path and file name templates.
6+
7+
All variables (starting with `%`) are replaced with the corresponding field's
8+
contents upon starting the recording.
9+
10+
Lets assume your institution requires your file to be saved in
11+
`/mnt/server/studies/your_name/<participant_id>/<session>/<task>.xdf`.
12+
13+
You can let LabRecorder create the files and folders with the following
14+
settings (configuration file keys are `highlighted`):
15+
16+
- `StudyRoot`=`/mnt/server/studies/your_name`
17+
- File Name / Template: `%p/%s/%b.xdf`
18+
- `SessionBlocks`=`"Task 1", "Resting State", "Task 2"`
19+
20+
Before recording, you only need to fill in the fields you're using.
21+
The paths in the File Name Template are created automatically.
22+
23+
The final folder and file path are previewed in the `Saving to...` box (above
24+
`16` in the screenshot).
25+
26+
## BIDS
27+
28+
[BIDS](https://bids.neuroimaging.io/) is a set of conventions for organizing
29+
your research data.
30+
Checking the `BIDS` checkbox (`10` in the screenshot) automatically generates
31+
the correct File Name
32+
Template depending on which variables you set in the fields below.
33+
34+
![LabRecorder Inputs](controls.png)
-40 KB
Binary file not shown.
-40.7 KB
Binary file not shown.

screenshots/labrecorder-study.png

-41.4 KB
Binary file not shown.

0 commit comments

Comments
 (0)