Mega 2560 API ADC Issue

For general Flowcode discussion that does not belong in the other sections.
Post Reply
User avatar
p.erasmus
Valued Contributor
Posts: 434
http://meble-kuchenne.info.pl
Joined: Thu Dec 03, 2020 12:01 pm
Location: Russia / Россия
Has thanked: 104 times
Been thanked: 88 times

Mega 2560 API ADC Issue

Post by p.erasmus »

Hi Team,

I am not sure what I am doing wrong however using the ARduino mega2560 API-Scada the ADC Sample8 is working fine but the Sample10 is give absolute wrong and impossible values.Samples taking on the same channel(A0) one is correct and the other is not any help appreciated :D

P1.jpg
P1.jpg (50.5 KiB) Viewed 2667 times
ScadaTest.fcfx
(10.77 KiB) Downloaded 102 times
Regards Peter - QME Electronics

medelec35
Matrix Staff
Posts: 1449
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 509 times
Been thanked: 471 times

Re: Mega 2560 API ADC Issue

Post by medelec35 »

Hi Peter.
Can you try with the attached component, please?
Hopefully, after adding component, then reloading App Dev it will work as intended?
Attachments
SCADA_Ard_Mega Comp.zip
(8.72 KiB) Downloaded 98 times
Martin

User avatar
p.erasmus
Valued Contributor
Posts: 434
Joined: Thu Dec 03, 2020 12:01 pm
Location: Russia / Россия
Has thanked: 104 times
Been thanked: 88 times

Re: Mega 2560 API ADC Issue

Post by p.erasmus »

Hi Martin.

Thank you for your help however I am not sure were this FCDX file must go to V9 >>> FCD ARD or to SCADA

Thanks for the help
Regards Peter - QME Electronics

medelec35
Matrix Staff
Posts: 1449
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 509 times
Been thanked: 471 times

Re: Mega 2560 API ADC Issue

Post by medelec35 »

Hi Peter.
As the file has a fcpx extension then it's a component.

In file explorer address bar, paste this:

Code: Select all

C:\ProgramData\MatrixTSL\FlowcodeV9\Components
Extract the component within the attached zip file and save it into the above hidden folder.
Just select ok to replace the current file.
If you got Flowcode running when file was placed in the components directory, you must select the reload icon before compiling again.
Martin

User avatar
p.erasmus
Valued Contributor
Posts: 434
Joined: Thu Dec 03, 2020 12:01 pm
Location: Russia / Россия
Has thanked: 104 times
Been thanked: 88 times

Re: Mega 2560 API ADC Issue

Post by p.erasmus »

Thanks Martin :D

Apprceiate will do
Regards Peter - QME Electronics

User avatar
p.erasmus
Valued Contributor
Posts: 434
Joined: Thu Dec 03, 2020 12:01 pm
Location: Russia / Россия
Has thanked: 104 times
Been thanked: 88 times

Re: Mega 2560 API ADC Issue

Post by p.erasmus »

Hi Martin,

Thanks that is working perfectly now :D
P2.jpg
P2.jpg (20.24 KiB) Viewed 2627 times
Fc wants me to update the same file now when I open the FC project if I do that then it seems it updates to the old file and things stop to work again :D
I then placed the file again and did not update FC so it is working now but in future if there is other updates it mights swtopped again to work
just to inform I am ok for now I can do what I need to do

Thanks again.


P3.jpg
P3.jpg (20.71 KiB) Viewed 2627 times
Regards Peter - QME Electronics

medelec35
Matrix Staff
Posts: 1449
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 509 times
Been thanked: 471 times

Re: Mega 2560 API ADC Issue

Post by medelec35 »

Hi, Peter.
You're welcome.
The component is only temporary until Ben pushes the update onto the system.
It's showing Not genuine since the update is manually added and not via the download button.
When the new revision is 9 instead of 8 then you can download it, and override the Not genuine version.
I will let you know when it's available.
For now, you can leave it as showing Not genuine so your App Developer is working as expected.
Don't forget you can untick the component if there are other updates as well, but if there are new updates then SCADA_Ard_Mega.fcpx will be one of them.
Thank you for letting me know the new version works.
Martin

User avatar
p.erasmus
Valued Contributor
Posts: 434
Joined: Thu Dec 03, 2020 12:01 pm
Location: Russia / Россия
Has thanked: 104 times
Been thanked: 88 times

Re: Mega 2560 API ADC Issue

Post by p.erasmus »

Thanks Martin :D
Regards Peter - QME Electronics

Post Reply