Example Can Bus

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 4.
To post in this forum you must have a registered copy of Flowcode 4 or higher. To sign up for this forum topic please use the "Online Resources" link in the Flowcode Help Menu.

Moderator: Benj

Post Reply
User avatar
pinball
Flowcode V4 User
Posts: 9
Joined: Fri Jan 15, 2010 8:35 pm

Example Can Bus

Post by pinball »

Hello all,

I'm trying to learn from the Can Bus examples, which is a big puzzle to me, but it seems slowly to sink in.

my problem is when I open CAN_Example_04_send, the program says "the thermometer-component doesnt exist anymore, choose an ADC-component (this all roughly translated by me from Dutch)
and then when it opens the component macros are empty, because there is no ADC component yet I think.

Can anyone get me a working Flowcode 4 version of this file? (please of course)
That would be great.

Thanks in advance,
Lex

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Example Can Bus

Post by Benj »

Hello Lex

You should be able to add an ADC component and then change any component macros that referenced the thermometer component to reference the ADC component instead. If you are having problems doing this then please post the file up here and I will sort it out for you.

User avatar
pinball
Flowcode V4 User
Posts: 9
Joined: Fri Jan 15, 2010 8:35 pm

Re: Example Can Bus

Post by pinball »

Hello Ben
I did, but I don't know what to fill in because there ar 2 Thermometer Componant Macro's, why is that,
the only variable to sent is the ADC_HI, as far as I can see

In the first CompMacro the variable ADC_HI is filled with the value from the ADC so where is the second ADCThermometer componant macro for

Ther are 2 more variables in the file what are they for, or are they a kind of leftovers .

So if there is a macro too much then I understand it,

Thanks so far,

Lex
CAN_Example_04_Send_changed.fcf
(9.5 KiB) Downloaded 262 times

User avatar
Benj
Matrix Staff
Posts: 15312
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4803 times
Been thanked: 4314 times
Contact:

Re: Example Can Bus

Post by Benj »

Hello Lex

The Thermometer and the old ADC used to have separate macros for sample and read. These are now combined into one sample and read function so you should be able to get rid of the second macro call.

User avatar
pinball
Flowcode V4 User
Posts: 9
Joined: Fri Jan 15, 2010 8:35 pm

Re: Example Can Bus

Post by pinball »

Hello Ben,

thanks for the info, and for the new update to 4.3, with Dutch helpfile. (also for your co-workers)
Will the separate component helpfiles also be translated some time in the future?

till next question

Lex

Post Reply