In URScript API Reference, Popup function has a parameter to suspend the program but it seems to only suspend the calling thread. In this example, variable t1 stop while t2 still increase, so the program is not suspended.
def test():
global t1 = 0
global t2 = 0thread timer():
while True:
t1 = t1+1
if t1 > 2000:
popup(“popup”, “test”, False, False, True)
t1 = 0
end
sync()
end
endrun timer()
while True:
t2 = t2+1
sync()
endend
If it is the desired behavior, I think documentation should be modify.