[Scilab-users] CsvRead function

2020-05-11 Thread Daniel Stringari
Dear colleagues, I am using a code in the version of Scilab 6.1 that was made in version Scilab 6.0.2. However, the same code that works in version 6.0.2, gives an error when executed in version 6.1. The function pointed on the error screen is always 'csvRead'.

Re: [Scilab-users] CsvRead function

2020-05-11 Thread Stéphane Mottelet
Hi Le 11/05/2020 à 11:45, Daniel Stringari a écrit : Dear colleagues, I am using a code in the version of Scilab 6.1 that was made in version Scilab 6.0.2. However, the same code that works in version 6.0.2, gives an error when executed in version 6.1. The function pointed on the error screen i

Re: [Scilab-users] CsvRead function

2020-05-11 Thread Antoine Monmayrant
Hello Daniel, It seems to me that the error is more the absence of the file "C:\Temp\PGC\Sai_Lot1v3.txt". You can try to check just before line 206 whether the file is present or not: ls("C:\Temp\PGC\Sai_Lot1v3.txt") or isfile("C:\Temp\PGC\Sai_Lot1v3.txt") . Hope it helps, Antoine On 11/

Re: [Scilab-users] CsvRead function

2020-05-12 Thread Daniel Stringari
Good Morning, The file exists ... Every time the code is run, it tries to create a series of files inside the address "C: \ Temp \ PGC \ ..." using the functions FULLFILE, CSVWRITE, CSVREAD and MDELETE to create and manipulate the data. This tool always worked in version 6.0.2 and when upgrading t

Re: [Scilab-users] CsvRead function

2020-05-12 Thread Antoine Monmayrant
On 12/05/2020 10:20, Daniel Stringari wrote: Good Morning, The file exists ... Every time the code is run, it tries to create a series of files inside the address "C: \ Temp \ PGC \ ..." using the functions FULLFILE, CSVWRITE, CSVREAD and MDELETE to create and manipulate the data. This tool

Re: [Scilab-users] CsvRead function

2020-05-12 Thread Jan Åge Langeland
csvRead is quite strict regarding column structure etc, but the associated error message is typical "can not read..". So when it reports "does not exist", it looks like the file is missing, or misplaced. If you still think the file is there, you may try this script that I have used to check

Re: [Scilab-users] CsvRead function

2020-05-13 Thread Clément David
Åge Langeland Sent: Tuesday, May 12, 2020 1:41 PM To: Users mailing list for Scilab ; Daniel Stringari Subject: Re: [Scilab-users] CsvRead function csvRead is quite strict regarding column structure etc, but the associated error message is typical "can not read..". So when it rep

Re: [Scilab-users] CsvRead function

2020-05-13 Thread Daniel Stringari
Good Morning, I'll post snippets of the code in question. Thanks for the effort Jan, the detail is that no matter how much the file exists when the code is run, the same file is deleted at the beginning by the MDELETE function, afterwards the code itself tries to create it again. This happens beca

Re: [Scilab-users] CsvRead function

2020-05-13 Thread Jan Åge Langeland
One thing I find is that csvRead does not seem to extract data correctly in 6.1.0 with "  " (double space) as separator. test4.csv 11 2 3 4 11 21 3 41 6.1.0 csvRead("test4.csv","  ")  ans  =    Nan   Nan   Nan   4.    Nan   Nan   Nan   41. 6.0.2  csvRead("test4.csv","  ")  ans