5

I'm new to Can Access Programing Language. In some documents CAPL is described as script. Can anyone explain, why it is referred to as script? Is it programming or scripting?

1 Answer 1

11

According to this question the difference between a scripting language and a programming language is basically that you need a explicit compilation step.

So CAPL is indeed a programming language, since all CAPL programs need to be compiled before they can be executed during measurement. You have a Compiler menu in the CAPL Browser and you get a "Compilation failed" error when you have syntax errors.

The reason why CAPL may sometimes be reffered to as a scripting language, is that the source code is compiled every time you hit the "Start Measurement" button automatically by CANoe. And it is also quite fast, so you might not even notice it is happening.

Sign up to request clarification or add additional context in comments.

1 Comment

Please read the tour and consider accepting the answer, if it was useful to you. (The grey check arrow that turns green when you click it)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.