MATLAB sddsload not working with error log file

Moderators: michael_borland, soliday

Post Reply
Alea88
Posts: 9
Joined: 05 Feb 2016, 08:27

MATLAB sddsload not working with error log file

Post by Alea88 » 08 Feb 2016, 10:03

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

soliday
Posts: 390
Joined: 28 May 2008, 09:15

Re: MATLAB sddsload not working with error log file

Post by soliday » 08 Feb 2016, 11:13

Can you send me an example of an .erl file that is causing this problem?
soliday@aps.anl.gov
Thanks.

Alea88
Posts: 9
Joined: 05 Feb 2016, 08:27

Re: MATLAB sddsload not working with error log file

Post by Alea88 » 08 Feb 2016, 11:18

I actualy tried with more than one .erl file, such as the one in the elegant Examples folder:

elegantExample/outboardTrajCorr2/run2.erl

Thanks,
Giovanna
Attachments
run2.erl
(10.53 KiB) Downloaded 332 times

soliday
Posts: 390
Joined: 28 May 2008, 09:15

Re: MATLAB sddsload not working with error log file

Post by soliday » 08 Feb 2016, 11:57

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.

Alea88
Posts: 9
Joined: 05 Feb 2016, 08:27

Re: MATLAB sddsload not working with error log file

Post by Alea88 » 08 Feb 2016, 12:01

Great,
Thanks for the fast and detailed answer

Best regards,
Giovanna

soliday
Posts: 390
Joined: 28 May 2008, 09:15

Re: MATLAB sddsload not working with error log file

Post by soliday » 10 Feb 2016, 12:49

I updated SDDS Java for all our supported platforms. Installing the new version should fix this problem with Matlab.

Post Reply