Jump to content

wait() without having to wait


Recommended Posts

I realize I may be asking a lot here...

Occasionally, to delay the continuation of a program, I use the wait() command. I'm not actually using PCM, but I can stick it into, for example, a comment. Unfortunately, when I do that, if for example, I want to wait 120 seconds, then after I enter that formula, I have to wait 2 minutes for calypso to close the formula dialog, and then another 2 minutes before it will let me close the feature or rename dialog box. If I want to put in longer delays, it gets even more painful. You get the picture.

Is there any way to do this so that the wait() only takes effect when the program is running?
Link to comment
https://qualityforum.zeiss.com/topic/20508-wait-without-having-to-wait/
Share on other sites

Well i'm pretty sure there is no official way since PCM in a dialog or form always runs even when programming as you have seen.

However.. if you were to save your program and make a copy of the inspection file (its just text), then add a wait command of 1 second and save the program again, then comparet he two text fiels.. you could probably find sometyhing interesting.
  • 4 months later...
It's a bit of a hack, but you could use a dummy feature to store your variable in the nominals. For instance, create a point named "waitTime" and set the nominal X value to 0. Then put
wait(getNominal("waitTime").x)
in your formulas where some lag time is needed. Change the waitTime point's nominal X to 120, or whatever, when you're ready to run the program.

Ctrl-Y might be more effective in this particular case, but this trick is handy from time to time when you need to store a value as a variable without a full PCM license.
×
×
  • Create New...