How do I find the error

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

How do I find the error

Post by RGV250 »

Hi,
I have just tried to merge the CSV writer to a working program. There are no errors in Flowcode but I get errors when i try to compile to target.
From what I can make out it is to do with the sim?

I forgot to mention, I have checked and I am up to date.

Bob
Target folder: C:\BG_WORK\Flowcode
Source name: C:\BG_WORK\Flowcode\RPI_EcoEyeMonitor_V2_0.fcfx
Title:
Description:
Device: RPI.RPI.RPI3B
Generated by: Flowcode v9.3.1.36
Date: Thursday, November 17, 2022 15:44:15
Users: 1
Registered to:
Licence key:
NOT FOR COMMERCIAL USE
https://www.flowcode.co.uk
Using FCD settings for compiler
Launching the compiler...
C:\ProgramData\MatrixTSL\FlowcodeV9\FCD\RPI\batch\rbuild.bat "RPI_EcoEyeMonitor_V2_0" "C:\BG_WORK\Flowcode\" "C:\Program Files (x86)\Flowcode\Common\Compilers\RPI\"

C:\BG_WORK\Flowcode>REM CRC: 9CBAA20B02874D61C96DAE4FEC699BE787136EA47F741E26D6F846B5ABB246D896FAD8FDCAFB245061760799B64DDB92E2B847C06A341BA1A924146F47BB511391C05B2A7E3ADB3C4D00059D79589982483D9F5E3398A430CDB45CEDDB365F77CD3D7A5AF14A2BAC6613EC2BBBE3D39CD44F5379E4735FA01C82F6AB22C785E150FECF807FB33A9FC815CE7CB1BA9E5AC2D21F03E16554B9EBDB51055D309C1279A8C5D3CA58E18F2C3050DA273BE4EE505341DA854AD86EF63BC3A5F15EC9DD2D6E37E631E3C73BEC7A7697432197DD7C4D788F9A5608EF

C:\BG_WORK\Flowcode>REM REVISION: 1.0

C:\BG_WORK\Flowcode>REM GUID: 8C0879FE-99B8-41F1-BDB0-70BBBFD4CAC2

C:\BG_WORK\Flowcode>REM DATE: 25\03\2021

C:\BG_WORK\Flowcode>REM DIR: FCD\RPI\batch\rbuild.bat
Building RPI_EcoEyeMonitor_V2_0
RPI_EcoEyeMonitor_V2_0.c: In function 'FCD_04651_File_RPI1__sim_delete_file':
RPI_EcoEyeMonitor_V2_0.c:1745:28: error: missing terminating " character
// .i = Length$ (sim_folder_path_1)
^~~~~~~~~~~
RPI_EcoEyeMonitor_V2_0.c:1747:2: error: expected expression before 'switch'

^
RPI_EcoEyeMonitor_V2_0.c:1745:2: error: too few arguments to function 'FCI_SHEAD'
// .i = Length$ (sim_folder_path_1)
^ ~~~~~~~
In file included from C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\internals.c:139:0,
from RPI_EcoEyeMonitor_V2_0.c:38:
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\RPI\RPI_CAL_String.c:835:6: note: declared here
void FCI_SHEAD(MX_STRING sSrc1, MX_UINT16 iSrc1_len, MX_STRING sSrc2, MX_UINT16 iSrc2_len, MX_STRING sDst, MX_UINT16 iDst_len)
^~~~~~~~~
RPI_EcoEyeMonitor_V2_0.c:1865:1: error: expected ';' before '}' token
:Returns : MX_UINT8
^
RPI_EcoEyeMonitor_V2_0.c: In function 'FCD_04651_File_RPI1__sim_create_file':
RPI_EcoEyeMonitor_V2_0.c:2557:28: error: missing terminating " character
// .i = Length$ (sim_folder_path_1)
^~~~~~~~~~~
RPI_EcoEyeMonitor_V2_0.c:2559:2: error: expected expression before 'switch'

^
RPI_EcoEyeMonitor_V2_0.c:2557:2: error: too few arguments to function 'FCI_SHEAD'
// .i = Length$ (sim_folder_path_1)
^ ~~~~~~~
In file included from C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\internals.c:139:0,
from RPI_EcoEyeMonitor_V2_0.c:38:
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\RPI\RPI_CAL_String.c:835:6: note: declared here
void FCI_SHEAD(MX_STRING sSrc1, MX_UINT16 iSrc1_len, MX_STRING sSrc2, MX_UINT16 iSrc2_len, MX_STRING sDst, MX_UINT16 iDst_len)
^~~~~~~~~
RPI_EcoEyeMonitor_V2_0.c:2679:1: error: expected ';' before '}' token
:Returns : MX_UINT8
^
Error(s) in build!

C:\ProgramData\MatrixTSL\FlowcodeV9\FCD\RPI\batch\rbuild.bat reported error code 0x1

Autoclose turned off


FINISHED
Last edited by RGV250 on Thu Nov 17, 2022 3:56 pm, edited 1 time in total.

RGV250
Posts: 264
Joined: Sat Mar 19, 2022 4:53 pm
Has thanked: 23 times
Been thanked: 30 times

Re: How do I find the error

Post by RGV250 »

Project File
RPI_EcoEyeMonitor_V2_0.fcfx
(42.6 KiB) Downloaded 40 times

RGV250
Posts: 264
Joined: Sat Mar 19, 2022 4:53 pm
Has thanked: 23 times
Been thanked: 30 times

Re: How do I find the error

Post by RGV250 »

I have started again with the file that does download, I get the error when I add the FileRPI component and try to download??

Bob

Steve-Matrix
Matrix Staff
Posts: 1253
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 167 times
Been thanked: 277 times

Re: How do I find the error

Post by Steve-Matrix »

Thanks for reporting. I can see what's causing the error and I will ask to get it fixed.

Steve-Matrix
Matrix Staff
Posts: 1253
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 167 times
Been thanked: 277 times

Re: How do I find the error

Post by Steve-Matrix »

Hopefully this is fixed now. You will need to update via "library updates" to the latest File_RPI component.

And massive thanks to @BenR for sorting this on his day off!

RGV250
Posts: 264
Joined: Sat Mar 19, 2022 4:53 pm
Has thanked: 23 times
Been thanked: 30 times

Re: How do I find the error

Post by RGV250 »

Hi Steve,
Many thanks to Ben for this.
I updated and it compiled and downloaded but it did not create the file, I am not sure if I should have needed to but I changed the root folder in the fileRPI component from files/ to $(srcdir) and now the file is created and populated with the column headers in the flowcode directory.

Over the weekend I will be playing with logging the data.

Regards,
Bob

BenR
Matrix Staff
Posts: 1739
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 440 times
Been thanked: 603 times

Re: How do I find the error

Post by BenR »

I wonder if the "files/" directory needs to already exist for this to work. I'll look and see if we can auto create the root directory if it doesn't already exist.

Anyway keeping the root folder blank seems to have worked for you which is great. Maybe this should be the default for now.

RGV250
Posts: 264
Joined: Sat Mar 19, 2022 4:53 pm
Has thanked: 23 times
Been thanked: 30 times

Re: How do I find the error

Post by RGV250 »

Hi Ben,
Leaving it blank the files are created in the same directory as the project IE /home/flowcode.
It would be nice to be able to save to a specific directory but for now it is working and creating log files to play with.

Bob

Post Reply