The Siemens Community Catalyst program was co-created with our community to acknowledge technology leaders who consistently contribute to the Siemens Community. Nominations are accepted on a rolling basis.
Hello,
Is it possible to work on hypermesh when we are running a Tcl/Tk script?
I would like to use 'after 10000' command to halt the execution of the script for some time and I would like to work on hypermesh meanwhile.
Thank you.
Hi Harish,
If i'm not wrong, after 10000 will merely delay execution of next line. So what operation do you want to do in hypermesh?
IMHO, Hypermesh session can't run on multi-thread proc. So you can't do different tasks in parallel.
@ Altair's experts: correct me if I'm wrong?
Hi Livil Lyle, 'after 10000' I gave as an example. Actually, I would like the execution of the program to be halted by 30 minutes.
Basically, I'm trying to write a 'save as' reminder program, which saves the file every 30min in a specified format.
Hi Harish
To halt a runnning script, you can use tkwait
Ex:
proc ::p_RunningScript args {
#a very long time script
for {set i 0} {$i<1000000000} {incr i}
Do something...
if {!($i%1000)} update
if {$::halt} {
tkwait variable ::halt
}
#before running, indicate halt=0
set ::halt 0
::p_RunningScript
#to halt above script, set halt = 1
set ::halt 1
#then call your save as reminder
p_SaveAsReminder
#to continue the halt script:
/emoticons/default_wink.png' srcset='/emoticons/wink@2x.png 2x' title=';)' width='20' />
Join us for a community conversation on how High-Performance Computing (HPC) and Simcenter PSIM work together to meet the increasing demands of modern power electronics simulation. During this one-hour technical session, you'll discover how leveraging HPC can speed up simulations, improve scalability, and empower engineers…
Join us for a community conversation on accelerating your motor simulation workflow with Simcenter Simlab. In this beginner-friendly session, we'll introduce the platform's automated model-building capabilities and show how easy it is to set up your first electric motor analysis. You'll see the basic steps of geometry…
Join us for a Community Conversation where we'll discuss practical approaches to analyzing complex electromagnetic models using hybrid solver techniques. This session will provide a general overview of how different computational methods can be combined within a single simulation to address models containing varied…