Display the value of a variable in simulation

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

Moderator: Benj

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

Display the value of a variable in simulation

Post by DirkB »

Hello,

how can I display the value of a variable in simulation,
e.g. the value of a pot or value of a timer?

thanks

Dirk

chipfryer27
Valued Contributor
Valued Contributor
Posts: 786
Joined: Fri Jun 06, 2014 3:53 pm
Has thanked: 187 times
Been thanked: 205 times

Re: Display the value of a variable in simulation

Post by chipfryer27 »

Hi

Depending on the component selected (e.g. potentiometer) you will see the value directly on the scale as you move it. However to see actual variable values in simulation you need to:-

Start the simulation - This will open the Simulation Debugger window
Pause the simulation
In Simulation Debugger window you can select the variables you wish to monitor under Expression > Add Variable
Start the simulation.

Be aware though that if your simulation speed is too fast you may not notice any change in variable(s), in which case either slow the speed or "Step Into" the program.

Hope this helps.

Regards

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

Re: Display the value of a variable in simulation

Post by DirkB »

Hello,

thank you for Reply, it works. Is it possible to
Display variable in realtime? In Flowcode V5
i have used the eeprom component to Display
e.g. pot or timer values.

regards

Dirk

chipfryer27
Valued Contributor
Valued Contributor
Posts: 786
Joined: Fri Jun 06, 2014 3:53 pm
Has thanked: 187 times
Been thanked: 205 times

Re: Display the value of a variable in simulation

Post by chipfryer27 »

Hi

Simulation isn't really "real time" and is heavily based on PC performance but if the simulation speed is slow enough (or variables only change on specific events) then you can see them change in the Simulation Window without pausing.

Do you, or can you use the "Ghost" facilities of EB-006 programmer board? That is independent to your PC other than to read values and start / pause etc. Perhaps you could use that?

Regards

Post Reply