Page 1 of 1

Dispaly Varables Value

Posted: Sat Jan 31, 2015 9:03 am
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

Re: Dispaly Varables Value

Posted: Sat Jan 31, 2015 12:42 pm
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).

Re: Dispaly Varables Value

Posted: Sat Jan 31, 2015 3:05 pm
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

Re: Dispaly Varables Value

Posted: Sat Jan 31, 2015 3:27 pm
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

Re: Dispaly Varables Value

Posted: Sat Jan 31, 2015 4:19 pm
by DirkB
Thank you, now i know more. But
a pretty display as tool would be fine.

nice weekend

Dirk