devibri / VR-Muse

Combining Muse brainwave reader and virtual reality in Unity
0 stars 0 forks source link

how to Store Museband Data (copy from another project) #19

Open devibri opened 6 years ago

xqu commented 6 years ago

About the issue relating to saving files:

Now we've achieved to save data into files (in various format including .txt . mat etc.) using Muse Player via two kinds of command line operations:

While Muse is connected via the default port(5000): a. use "muse-io --device Muse-xxxx" to connect muse band with computer via the default port(5000). b. establish an empty file of desired format at some position. e.g. Desktop/testing.mat c. use "muse-player -l 5000 -M Desktop/testing.mat" to save data into the file created in step b.

While Muse if connected via customized port(3333): a. use "muse-io --osc osc.tcp://localhost:3333" to connect muse band with computer and send all osc data to port 3333 b. establish an empty file of desired format at some position. e.g. Desktop/testing.mat c. use "muse-player -l 3333 -M Desktop/testing.mat" to save data into the file created in step b.

Things to notice

Different file format requires different command line operation in details, refer to http://developer.choosemuse.com/research-tools/museplayer/command-line-options in the "output options" section. You need an empty file established in advance for the Muse Player to write data into. If we use the original command line that was set up for the app.html originally, "muse-io --osc osc.udp://localhost:3333 --dsp" to connect to Muse, it turns out that the Muse Player won't work and we are now trying to figure out why this problem would appear and come up with a way to solve it.

xqu commented 6 years ago

Please try it. @dacharya64 @Mandawi @Lullic