- Code: Select all
Area.Run = func () {
# Start loop, ploting all enabled lines with property
printf("Start plotting is called");
if(me._Run == 1){
gui.popupTip("Plot already running",2);
return me;
};
me._Run = 1;
var Do_Plot = func(){
var MyTimeout = func(){
gui.popupTip("Plot already running",1);
printf("plotting");
if(me._Run == 1 ){
settimer(MyTimeout,2);
};
}; # end Mytimeout
MyTimeout();
};
return me;
};
it is a part of a bigger Class, and it shows it is started and already running but, The printf/popup in the loop is never executed.
What do I wrong ? I think the construction has to be a little different but I don't see it.