I have a TCL terminal inside a program called "System Console". This is an add-on found with Intel Quartus Prime. In this I need to run a TCL procedure that once started, runs every 500 ms. This happens until a user presses a key at which point, itstops.
Can this be done in TCL? If so, how?
On 10/13/21 6:32 AM, Hassan Iqbal wrote:stops.
I have a TCL terminal inside a program called "System Console". This is an add-on found with Intel Quartus Prime. In this I need to run a TCL procedure that once started, runs every 500 ms. This happens until a user presses a key at which point, it
follow the script belowCan this be done in TCL? If so, how?
first please reference https://wiki.tcl-lang.org/page/every to write "
run a TCL procedure that once started, runs every 500 ms."
second [fileevent stdin readable <commandToStopYourInfiniteLoop>]
and then enter event loop for example [vwait forever]
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 463 |
Nodes: | 16 (2 / 14) |
Uptime: | 157:03:42 |
Calls: | 9,384 |
Calls today: | 4 |
Files: | 13,561 |
Messages: | 6,096,000 |