ducdh1210 / labstreaminglayer

Automatically exported from code.google.com/p/labstreaminglayer
0 stars 0 forks source link

Fix for vis_stream does not work with Matlab R2014b #25

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
It seems Matlab's new graphics system has broken vis_stream. The only problem 
is in supergui line 109, finputcheck requires fig to be numeric but it is now 
an object. I just emptied the type column (i.e. '') and it works again.

Original issue reported on code.google.com by chadwick...@gmail.com on 3 Dec 2014 at 6:47

GoogleCodeExporter commented 8 years ago
Hi,

I also get this error (although it's in mine supergui on line 122). Could you 
please let me know what you exactly did? That would be great, thanks!

Original comment by clemens....@gmail.com on 13 May 2015 at 10:35

GoogleCodeExporter commented 8 years ago
You can see in <a 
href=https://code.google.com/p/labstreaminglayer/source/browse/Apps/MATLAB%20Vie
wer/arg_system/private/supergui.m#109>supergui near line 109</a> there is a 
cell array of size n,4 with columns for what I guess are variable_name, 
expected_variable_type, possible_values, default_value. Values passed in to the 
options variable are checked against this cell array using finputcheck.

The problem in recent versions of Matlab is that graphics objects handles are 
no longer real numbers, so telling finputcheck to expect that fig is a real 
number causes finputcheck to return a string, and that raises an error in 
supergui line 122.

The solution is to modify the cell array so that it no longer checks if the 
option named 'fig' is 'real'. To do this, replace the 'real' with '' so that it 
no longer checks if it is a figure. The real fix would be to replace 'real' 
with 'matlab.ui.Figure' but this would not be backwards compatible.

Original comment by chadwick...@gmail.com on 14 May 2015 at 12:21

GoogleCodeExporter commented 8 years ago
Sorry for the mess. I tried to embed html in my comment but that didn't work.
Here is a cleaner link:

https://code.google.com/p/labstreaminglayer/source/browse/Apps/MATLAB%20Viewer/a
rg_system/private/supergui.m#109

Original comment by chadwick...@gmail.com on 14 May 2015 at 12:22

GoogleCodeExporter commented 8 years ago
I got it now.
Thanks a lot for your help!!

Original comment by clemens....@gmail.com on 14 May 2015 at 2:39