Dispaly Varables Value

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 6.

Moderator: Benj

Post Reply
DirkB
Posts: 116
Joined: Wed Feb 08, 2012 2:45 pm
Has thanked: 7 times
Been thanked: 11 times
Contact:

Dispaly Varables Value

Post by DirkB »

Hello,

in flowcode v5 i am often used eeprom component to display variable
as decimal value for debugging.
Is ist possible to use this function in flowcode v6?

thanks

Dirk

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: Dispaly Varables Value

Post by medelec35 »

Hi Dirk,
Yes that is possible.
You can even view and change the contents of EEPROM during simulation by selecting 'View', 'Console'.
Just remember that EEPROM on hardware has a limited life of reading and writing.

I personally use UART for debugging but professional version of flowcode is required.
Since it can not only constantly send the values of any variables you wish, but all the values can be logged on a text file.
I posted a bit about it here
But won't go into further details in case you're not interested in doing it that way.
If you are I can help you further.

Other ways of seeing variable values are: sending to LCD Or ICD (reqires Flowckit or Matrix programmers).
Martin

DirkB
Posts: 116
Joined: Wed Feb 08, 2012 2:45 pm
Has thanked: 7 times
Been thanked: 11 times
Contact:

Re: Dispaly Varables Value

Post by DirkB »

Hi Martin,

i know this and use eeprom only in simulation. With eeprom
component you can show decimal values up to more then 10 bit.
That is what i mean. It's a nice display for debugging without
strings and so on. That wehre a nice tool for flowcode 6, you know?

Dirk

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: Dispaly Varables Value

Post by medelec35 »

If its for simulation only, why not just add all the variables you wish to know the value of in the simulation debugger?
simulation debugger.png
(76.42 KiB) Downloaded 1952 times
All you do is press F8
Hover mouse over to the left of expression and an arrow will appear.
Select the arrow then Add Variable.
You can either select a single variable, or multiple variables.
To select a group you can hold left or right mouse button and drag.
Or you can hold down Ctrl key and just select variables you're interested in.

When running simulation on the normal speed you will not see the values changing, but you will see the updated values when paused.
If you select simulation speed slower than the normal speed, then you will see the variable values update as soon as they change value.

Martin
Martin

DirkB
Posts: 116
Joined: Wed Feb 08, 2012 2:45 pm
Has thanked: 7 times
Been thanked: 11 times
Contact:

Re: Dispaly Varables Value

Post by DirkB »

Thank you, now i know more. But
a pretty display as tool would be fine.

nice weekend

Dirk

Post Reply