ADC (CAL)

Any bugs you encounter with Flowcode should be discussed here.
Post Reply
Brendan
Posts: 43
http://meble-kuchenne.info.pl
Joined: Tue Dec 08, 2020 2:12 pm
Has thanked: 35 times
Been thanked: 10 times

ADC (CAL)

Post by Brendan »

Hi guys.

Creating code from scratch in FC9...

In FC8, I can simply enable ADC (CAL) in FC8 and it picks up the parameters from the properties table.

Enabling the same ADC component in FC9 requires re-entry of specific binary values (?).

Thanks,
Brendan
FC9_ADC_Enable.png
FC9_ADC_Enable.png (232.28 KiB) Viewed 2315 times

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

Re: ADC (CAL)

Post by medelec35 »

Hi, Brendan.
The CAL is used when calling ADC from within a different component.
I would expect the values to be entered within the CAL enable macro, rather than properties.
For example you won't know what channel is selected to that has to be within the macro.
If you want the values to be picked up by the properties then you will need the standard ADC component rather than the CAL.
Brendan wrote:
Thu Sep 23, 2021 11:24 am
I can simply enable ADC (CAL) in FC8 and it picks up the parameters from the properties table.
When I select enable from within FC8:
ADC CAL V8.png
ADC CAL V8.png (51.4 KiB) Viewed 2307 times
Martin

Brendan
Posts: 43
Joined: Tue Dec 08, 2020 2:12 pm
Has thanked: 35 times
Been thanked: 10 times

Re: ADC (CAL)

Post by Brendan »

Thank you Martin for your early reply.

My confusion arises from different FC9 behaviour when enabling what appears to be the same ADC component in FC8 (albeit "Raw Enable"). Rightly or wrongly, I recall using this in the past within the main flow, before extracting readings from the enabled ADC channel (FC8 example below).

Best regards,
Brendan
FC8_ADC_Enable.png
FC8_ADC_Enable.png (160.84 KiB) Viewed 2305 times

BenR
Matrix Staff
Posts: 1726
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 438 times
Been thanked: 602 times

Re: ADC (CAL)

Post by BenR »

Hello,

I think there are two components here, one is ADC Base and this is what you used in v8. Then there is ADC CAL which is lower level but is what you are using in v9.

The ADC Base component should also be in v9 but probably hidden unless you search for it. I'll check it hasn't been renamed.

Brendan
Posts: 43
Joined: Tue Dec 08, 2020 2:12 pm
Has thanked: 35 times
Been thanked: 10 times

Re: ADC (CAL)

Post by Brendan »

Ahh... Thanks Ben, that answers my mistake and confusion !

Named "ADC Template", appearing as "ADC Base" when included in the dashboard :)

Thanks for clearing this up,

Brendan

Post Reply