CAPL function to stop CANoe

379 Views Asked by At

I need to stop CANoe simulation automatically when a condition is reached in my CAPL code.

Are there some built-in functions to achive that or other option?

I've tried stop() but it is not working.

If there is not an available method. Does anyone know how to make a runtime error to force CANoe to stop?

Edit: The problem was That I was calling stop() from a timer. That timer was beeing called again before the stop() function executes so the timer were being be reset before the stop() function was executed. Fixing that "loop" timer calling fixed the issue.

0

There are 0 best solutions below