When should i use CTRL-language and when should i use the API (C++)?

We recommend that you use CTRL in the most cases because:

  • CTRL is much simpler than C++
  • You don't have to compile your code
  • The script editor is integrated in the GEDI and you don't need special development tools
  • Handling asynchronous data functions (dpGet/dpConnect) is much easier in CTRL

However, in some cases it is necessary to use the API because:

  • You want to develop object oriented
  • You want to implement time critical code and have to meet high performance requirements (Mathematical algorithms, Handling huge amounts of time critical data, etc.)
  • You want to use existing C/C++ code or an external library and can't use a CTRL-extension for some reasons
Date added:
Last revised:
Hits:
9.874
Version:
ALL Versions
Platform:
Windows,Linux,Solaris
Rating:
Rating: 2.1. 98 vote(s).
97 anonymous votes
No rating done at all.
Your vote was '' (0 of 5) You are an anonymous user.
You may log on to do personalized votings
Click the rating bar to rate this item Please log on to do ratings
  • Notification

    FE user cannot be identified! (1403201096)

Tags:
Programming / Scripting, PVSS, WinCC Open Architecture