sccn / lsl_archived

Multi-modal time-synched data transmission over local network
242 stars 134 forks source link

Display of AudioCaptureWin in MATLAB using LSL #290

Open AsmaRoshaan opened 6 years ago

AsmaRoshaan commented 6 years ago

Hi there I am having an issue with the display of audiocapturewin in matlab. At first i was getting an error when i run vis_stream.

ERROR:

Error using supergui (line 122) supergui error: argument 'fig' must be numeric

Error in inputgui (line 161) [tmp tmp2 allobj] = supergui( 'fig', fig, 'minwidth', 200, 'geomhoriz', g.geometry, 'uilist', g.uilist, 'geomvert', [g.geomvert(:)' 1 1] );

Error in arg_guidialog (line 137) [outs,dummy,okpressed] = inputgui('geometry',geometry, 'uilist',uilist,'helpcom',['env_doc ' helptopic], 'title',dialogtitle,'geomvert',geomvert); %#ok

Error in vis_stream (line 77) arg_guidialog;

but then i updated two files (supergui.m ad finputchechk.m ) as per github issue solutions. Now after replacing these files, vis_stream does work and figure window shows up but it doesn't show any change in stream . Matlab gives a warning

Warning: MATLAB has disabled some advanced graphics rendering features by switching to software OpenGL. For more information, click here. Can you please help me fix this problem ?

AsmaRoshaan commented 6 years ago

I fixed this warning by following matlab commands opengl hardware open gl ('save,'hardware') But still no stream detected. Only two lines are displaying.

dmedine commented 6 years ago

Have you tried recording the audio stream and loading it into Matlab?

On 4/24/2018 11:30 AM, AsmaRoshaan wrote:

I fixed this warning by following matlab commands opengl hardware open gl ('save,'hardware') But still no stream detected. Only two lines are displaying.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/sccn/labstreaminglayer/issues/290#issuecomment-383866934, or mute the thread https://github.com/notifications/unsubscribe-auth/ADch7jVthMTe-uEb8H6oG4RLHO5Xy8vdks5trvDCgaJpZM4ThR8Y.

cboulay commented 6 years ago

I've been asked a couple times to update vis_stream, I just haven't found time yet. Sorry.

If you're comfortable with Python, you can also try ReceiveAndPlot.py. This has much less functionality than vis_stream, but its simplicity makes it easier to jump in and edit it so you can quickly visualize something. But if you don't already have a Python environment setup then this might not be so easy for you.

AsmaRoshaan commented 6 years ago

Actually i am working with python nowadays and i am new to it. I was streaming OpenBCI data on python and trying to visualize that data on matlab. I have some issues related to this too. I accidentally double-clicked on the depreciated respiratory (openbci mATLAB MASTER ) and now my openBCI_LSL is not working. i don't know why . My major goal is to ananlyze the openBCI output on matlab in real time. That's why i was trying to do some practice with LSL and audiocapture. Nothing is working. :(

dmedine commented 6 years ago

I actually have no problem using vis_stream.m from the repository on Matlab 2015b (which is after the graphics changes that came along with 2014a---I think---broke everything). The default scaling for data is 150, meaning +/-150 (in this case microvolts) are the range of values that the visualizer makes visible. Since audio data is +/-1, I suspect that if you change the scale to 1, then you should see audio pretty clearly. If this still isn't working, it might be a problem with your audio settings in Windows.

I should say that I do run into trouble with vis_stream when I have BCILab loaded. This puts a conflicting version of vis_stream's helper functions on the path and then nothing works.

On 4/25/2018 1:38 PM, AsmaRoshaan wrote:

Actually i am working with python nowadays and i am new to it. I was streaming OpenBCI data on python and trying to visualize that data on matlab. I have some issues related to this too. I accidentally double-clicked on the depreciated respiratory (openbci mATLAB MASTER ) and now my openBCI_LSL is not working. i don't know why . My major goal is to ananlyze the openBCI output on matlab in real time. That's why i was trying to do some practice with LSL and audiocapture. Nothing is working. :(

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/sccn/labstreaminglayer/issues/290#issuecomment-384256445, or mute the thread https://github.com/notifications/unsubscribe-auth/ADch7hb2Ji3qN2MxRQ3mhckEuQnOk6wUks5tsGAZgaJpZM4ThR8Y.

AsmaRoshaan commented 6 years ago

Thank you for the help . You were right. It was a scaling problem. now i can see the graphs of audio capture and eeg. I did some experiment using OpenBCI and visualize the data on Matlab. I can realize some eye blinking and jaw clinching on that waves. but still not sure about the frequency settings. As the time series always remains in -ive. when i try to make it positive it just stop working with this error: An error occurred during the stream viewer update: While setting the 'XLim' property of 'Axes': Value must be a 1x2 vector of numeric type in which the second element is larger than the first and may be Inf