I'm having problems using Execution ActiveX control on iPendant.
Karel program doesn't seem to run when web page is loaded.
I can run same Karel program manually and it works fine.
Does anyone has experience with this?
I'm having problems using Execution ActiveX control on iPendant.
Karel program doesn't seem to run when web page is loaded.
I can run same Karel program manually and it works fine.
Does anyone has experience with this?
I assume you are using the Karel to loop and interact with actions on the web page, if this is the case then here are some pointers. If it's just a one time run, some of the following info will still apply, but not all of it.
Don't use more than one execution control. Make sure the control is located on the initial visible region when the page loads. The Karel will only run as long as the page with the execution control is in use (on any TP panel). Once you navigate away from the page the Karel will stop. The Karel should be a non-motion program. The first part of your Karel program might look like this...
PROGRAM hohoho
%ALPHABETIZE
%RWACCESS
%COMMENT = 'STM BG Test'
%NOLOCKGROUP
%NOBUSYLAMP
%NOPAUSE = ERROR + COMMAND + TPENABLED
CONST ...
I think in this case, Fctn+Abort will still abort the Karel, but it will restart if the page is refreshed (F4) or if the page is reopened.
Hope this helps...
I got it working.
BUT I wish KAREL to run continuously. There is a line in manual:
QuoteThe KAREL program can increment the reference count if you wish it to remain running: ref_cnt = ref_cnt + 1
How to implement this functionality?
I was able to keep it running with WHILE loop but I'm not sure this is correct approach?
I use a WHILE loop to keep the Karel running. I have not used (or remember using) the counter method, since I was able to accomplish what I needed with the WHILE loop.
New problem:
When I navigate to other webpage or other screen, my karel program keeps running and prevents me to edit any other program (error TPIF-013).
I don't mind running KAREL program all the time but how to run it in a separate task?
I have %NOABORT = ERROR in header so KAREL also runs when there is TP error ...
I can abort KAREL with ABORT ALL.
Have you enabled the Multi-progam selection (or something like this) in the Config Menu?
Have you enabled the Multi-progam selection (or something like this) in the Config Menu?
Now I did