Hi Ben
Writing a file works perfectly, if I use delay
reading doesn't go so well
I don't know exactly how to use CSV read/write.
Writing a CSV file works well with the next row command.
But when reading the CSV file, I don't know if I need the command.
Sometimes when creating and writing the file, I end up with an empty file.
If I already have an empty file, then it works fine when I start the program a second time.
I don't know where I need to wait.
Sometimes I still get a lot of 000000 if I open it with notepad.
One command gets stuck readAsNumber(1,0) but the others work.
Testprogram:
AppDeveloper How to use CSV read/write
-
stefan.erni
- Valued Contributor
- Posts: 1154
- http://meble-kuchenne.info.pl
- Joined: Wed Dec 02, 2020 10:53 am
- Has thanked: 219 times
- Been thanked: 238 times
-
stefan.erni
- Valued Contributor
- Posts: 1154
- Joined: Wed Dec 02, 2020 10:53 am
- Has thanked: 219 times
- Been thanked: 238 times
Re: AppDeveloper How to use CSV read/write
Hi Ben
I have written a file that generate 10 files and some with extra long filename.
A problem is with the simulation speed.
Can I set it always to full speed?
So I'll start testing “reading CSV into an array.”
The file I need to read has about 12,000 lines.
If this is on second place and the file is small, there is a problem If this is on first place it's perfect without a delay and short or long files are ok With the lot of zeros it's just write number a problem, write int and write strg is ok.
I think it's because of write float (and not a problem). Testprogram:
I have written a file that generate 10 files and some with extra long filename.
A problem is with the simulation speed.
Can I set it always to full speed?
So I'll start testing “reading CSV into an array.”
The file I need to read has about 12,000 lines.
If this is on second place and the file is small, there is a problem If this is on first place it's perfect without a delay and short or long files are ok With the lot of zeros it's just write number a problem, write int and write strg is ok.
I think it's because of write float (and not a problem). Testprogram:
-
stefan.erni
- Valued Contributor
- Posts: 1154
- Joined: Wed Dec 02, 2020 10:53 am
- Has thanked: 219 times
- Been thanked: 238 times
Re: AppDeveloper How to use CSV read/write
Hi Ben
I wrote a program to read a csv file generate from an FC11 App.
Sensor_1_FC11.csv is the original file
Senser_1_excel_4row.csv is open and save in excel as csv file.
the comma at the end is gone after save.
read seq ist working if I add some read but this does not match anymore after excel read number is not working (anymore) program csv file:
I wrote a program to read a csv file generate from an FC11 App.
Sensor_1_FC11.csv is the original file
Senser_1_excel_4row.csv is open and save in excel as csv file.
the comma at the end is gone after save.
read seq ist working if I add some read but this does not match anymore after excel read number is not working (anymore) program csv file: