Page 1 of 1

MATLAB sddsload not working with error log file

Posted: 08 Feb 2016, 10:03
by Alea88
Hello everyone,
I am using the sddsload function for MatLab and it works perfectly for all the sdds files produced by elegant but not with the ".erl" files produced with &error_control error_log=%s.erl &end.

When I issue the command

Code: Select all

val=sddsload('test.erl')
I get the following error

Error using sddsload (line 30)
invalid parameter value at line #82 (readAsciiData)


It appears not to be able to parse the "ParameterError" column: I say this as I did

Code: Select all

sddsconvert test.erl -delete=col,ParameterError
val=sddsload('test.erl')
And then everything works fine.

I am using MATLAB 2015 and SDDSver 2.8

Is this a bug or I am doing something wrong?

Thanks in advance for your support,
Giovanna

Re: MATLAB sddsload not working with error log file

Posted: 08 Feb 2016, 11:13
by soliday
Can you send me an example of an .erl file that is causing this problem?
soliday@aps.anl.gov
Thanks.

Re: MATLAB sddsload not working with error log file

Posted: 08 Feb 2016, 11:18
by Alea88
I actualy tried with more than one .erl file, such as the one in the elegant Examples folder:

elegantExample/outboardTrajCorr2/run2.erl

Thanks,
Giovanna

Re: MATLAB sddsload not working with error log file

Posted: 08 Feb 2016, 11:57
by soliday
It is actually complaining about the extra empty row at the end of the file. The Java code is incorrectly giving an error when it doesn't find a new page after the space. You can temporarily workaround the problem by using "sddsconvert run2.erl run2.erl -nowarn". This will rewrite the SDDS file with the number of rows of column data instead of not setting the number or rows like elegant is doing. I'll look into fixing the underlying problem though.

Re: MATLAB sddsload not working with error log file

Posted: 08 Feb 2016, 12:01
by Alea88
Great,
Thanks for the fast and detailed answer

Best regards,
Giovanna

Re: MATLAB sddsload not working with error log file

Posted: 10 Feb 2016, 12:49
by soliday
I updated SDDS Java for all our supported platforms. Installing the new version should fix this problem with Matlab.