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
Display the value of a variable in simulation
Moderator: Benj
-
- 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
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
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
Re: Display the value of a variable in simulation
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
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
-
- 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
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
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