When I run my Script I get the following error,
Compiling file 'ZTS_Zero_To_Sixty_Analysis.can'
Error 1176 at (54,1): System event handler not allowed in test module or test units.
Error 1176 at (290,1): System event handler not allowed in test module or test units.
These line are right at my "on start" and "stopmeasurement". However, when I get a program node in CAnnalyser
, include these scripts and compile them in Canalyzer
, it does not give me an error.
So I just ignore these errors appearing in CAPL Compiler since they do not impede the running of the scripts, but I would still like to know why CAPL Compiler throws these errors.
Why are these errors thrown?