CSV Read/Write or Output CSV

For general Flowcode discussion that does not belong in the other sections.
RGV250
Posts: 283
http://meble-kuchenne.info.pl
Joined: Sat Mar 19, 2022 4:53 pm
Has thanked: 25 times
Been thanked: 32 times

Re: CSV Read/Write or Output CSV

Post by RGV250 »

Hi Ben,
I have just tried it on my laptop and that worked with the original file, I have now updated and downloaded the new file and it does not appear to have the File component and the 0 from the file open command is missing??
I have to go out for a while but could you please check as this is a bit strange.

Bob

BenR
Matrix Staff
Posts: 1926
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 503 times
Been thanked: 686 times

Re: CSV Read/Write or Output CSV

Post by BenR »

Hi Bob,

Make sure you're getting the example from the v9 wiki and not the v8 wiki n the matrixtsl site.

https://www.flowcode.co.uk/wiki/index.p ... e_Tools%29

RGV250
Posts: 283
Joined: Sat Mar 19, 2022 4:53 pm
Has thanked: 25 times
Been thanked: 32 times

Re: CSV Read/Write or Output CSV

Post by RGV250 »

Hi Ben,
That was the mistake on the laptop but I have downloaded the correct one and it does not create the file on either PC or laptop. As far as i can tell it is being simulated completely, is there anything else I can do to diagnose.

Bob

BenR
Matrix Staff
Posts: 1926
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 503 times
Been thanked: 686 times

Re: CSV Read/Write or Output CSV

Post by BenR »

Using the View -> Console menu brings up a console window where there is a tab that shows you the File SD component status and it should report the status of the file creation.

RGV250
Posts: 283
Joined: Sat Mar 19, 2022 4:53 pm
Has thanked: 25 times
Been thanked: 32 times

Re: CSV Read/Write or Output CSV

Post by RGV250 »

Hi Ben,
Unfortunately when I do that it says I need a debugging pack.

Bob

RGV250
Posts: 283
Joined: Sat Mar 19, 2022 4:53 pm
Has thanked: 25 times
Been thanked: 32 times

Re: CSV Read/Write or Output CSV

Post by RGV250 »

Hi Ben,
I thought I had found it, I think the issue is that I do not have a licence for the File SD component. I changed it to File RPI and it still did not create the file. I am not sure if I should need it as I could not find information on the FileRPI but I added a create file and it did create the file but it does not get populated so I removed it.
This is what I have so far.
CSVTest_FileRPI.fcfx
(9.57 KiB) Downloaded 406 times
Bob

BenR
Matrix Staff
Posts: 1926
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 503 times
Been thanked: 686 times

Re: CSV Read/Write or Output CSV

Post by BenR »

Hi Bob,

Aha sounds like progress that's great. Try running the sim twice, there seems to be a bug where it will only create the file but then on the second run when the file exists it will populate it. I'm investigating the problem.

RGV250
Posts: 283
Joined: Sat Mar 19, 2022 4:53 pm
Has thanked: 25 times
Been thanked: 32 times

Re: CSV Read/Write or Output CSV

Post by RGV250 »

Hi Ben,
I had already tried that but it does not populate it at all, I could live with that.

Should I actually need the create file as it is not needed in your one with File SD??

Bob

BenR
Matrix Staff
Posts: 1926
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 503 times
Been thanked: 686 times

Re: CSV Read/Write or Output CSV

Post by BenR »

Hi Bob,

Aha many thanks I have replicated the problem with the simulation of the File RPI component and have pushed a new update for this that should solve the issue for you.

I've also added more examples here for the CSV component when used with different File components.
https://www.flowcode.co.uk/wiki/index.p ... )#Examples

RGV250
Posts: 283
Joined: Sat Mar 19, 2022 4:53 pm
Has thanked: 25 times
Been thanked: 32 times

Re: CSV Read/Write or Output CSV

Post by RGV250 »

Hi Ben,
Thanks, that works in the sim, just got to find the time to merge it with the other stuff on the Pi now.

I think it is good that you have added different examples where the platform makes a difference as I am sure it will help a lot of people like me out.

Bob

Post Reply