Introduction to C++ Script

C++ Script is a Math module in DewesoftX that allows users to develop custom calculations and thus extend the software's functionality using C++ code.


In contrast to other math modules, C++ script requires licensing. Depending on your license configuration and connected Dewesoft hardware, you may therefore have access to different levels of functionality.


This article explains the available licensing scenarios, thus helping you determine which licensing option would be ideal for your use-case.


The following operations are covered:

  • Creating and editing C++ Script modules (including modifying preexisting scripts).
  • Opening and modifying preexisting setups that contain C++ Scripts.
  • Opening and recalculating data files that contain C++ Scripts.
  • Performing measurements using setups that contain C++ Scripts.
  • Exporting C++ Scripts to Bundles (for sharing or reusing in other setups).


Quick licensing overview:

The following table summarizes C++ Script availability for different licensing options.


License typeCreate & Edit ScriptsOpen & Modify Existing SetupsOpen & Recalculate Data FilesPerform MeasurementsExport Scripts to Bundles
DEMO mode✓
✓✓✗✗
Trial license✓✓✓✓✗
BUILT-IN license (without option)
✓✓✓✗✗
PROF license (without option)
✓✓✓✗✗
PROF license (with option)
✓✓✓✓✓
BASE + DS-DONGLE (with option)
✓✓✓✓✓
SE license (no device connected)
✓✓✓✗✗
EDU license
✓✓✓✓✓
Enterprise license

✓
✓✓✓✓


1. DEMO mode - No license or Dewesoft device connected

When no Dewesoft measurement device is connected and no license is available, DewesoftX switches to DEMO mode. This mode enables the C++ Script option, allowing you to create and edit C++ script modules.


Please note that when a C++ Script is first added to a setup without a valid license, a warning is triggered, and it won't be possible to start a measurement:


(Un)available functionality:

  • Create and edit C++ Script modules.
  • Open preexisting setups containing C++ Scripts.
  • Open and recalculate data files containing C++ script modules.
  • Exporting Scripts to Bundles is not possible!



If you later want to use a premade setup containing C++ Scripts for actual measurements with a Dewesoft measurement device, a suitable license containing the C++ Script option should be registered to the device or measurement PC.



2. Trial license

The Trial license includes the C++ Script module, allowing you to create new C++ Scripts, modify preexisting ones, and actively use them during measurements. However, exporting Scripts to bundles won't be possible.


With an active Trial license, you can also open data files containing C++ Scripts and recalculate them.


(Un)available functionality:

  • Create and edit C++ Script modules.
  • Open preexisting setups containing C++ Scripts.
  • Open and recalculate data files containing C++ Script modules.
  • Perform measurements using setup files containing C++ Scripts.
  • Exporting Scripts to Bundles is not possible!


3. BUILD-IN license

As with all the other licensing options, a BUILD-IN license without a C++ Script option will allow you to create new and edit preexisting C++ Script modules, as well as open and recalculate data files that contain C++ Scripts. You can also load and modify preexisting setups that contain C++ Scripts, but it won't be possible for you to run a measurement.


(Un)available functionality:

  • Create and edit C++ Script modules.
  • Open preexisting setups containing C++ Scripts.
  • Open and recalculate data files containing C++ Script modules.
  • Exporting Scripts to Bundles is not possible!


4. PROF license without the C++ Script option

If you have a Professional license without the C++ Script option, you can still create new and edit preexisting C++ Script modules, as well as open and recalculate data files that contain C++ Scripts. You can also load and modify preexisting setups that contain C++ Scripts, but it won't be possible for you to run a measurement.


(Un)available functionality:

  • Create and edit C++ Script modules.
  • Open preexisting setups containing C++ Scripts.
  • Open and recalculate data files containing C++ Script modules.
  • Exporting Scripts to Bundles is not possible!


5. PROF license with the C++ Script option

A Professional license with the C++ Script option provides full access to the C++ Script functionality, allowing you to create new C++ Scripts, modify preexisting ones, and actively use them during measurements. It will also be possible to open and recalculate data files that contain C++ Scripts.


One feature that isn't available with some other licensing options - but is available with a Professional license - is the option to export a C++ Script as a bundle, thus allowing the user to reuse it in other setups or share it with other users.


(Un)available functionality:

  • Create and edit C++ Script modules.
  • Open preexisting setups containing C++ Scripts.
  • Open and recalculate data files containing C++ Script modules.
  • Perform measurements using setup files containing C++ Scripts.
  • Export Scripts to Bundles.


6. BASE license with the C++ Script option on a DS-DONGLE

C++ Scripts can also be used with a BASE license when the following conditions are met:

  • The C++ Script option is available on the DS-DONGLE.
  • A Dewesoft measurement device with a BUILD-IN license is connected to the measurement system.


When both conditions are met, loading a setup containing custom C++ Scripts and creating or modifying Scripts is possible, and performing a measurement will be available. It will also be possible to open and recalculate data files that contain C++ Scripts or export a Script as a Bundle.


(Un)available functionality:

  • Create and edit C++ Script modules.
  • Open preexisting setups containing C++ Scripts.
  • Open and recalculate data files containing C++ Script modules.
  • Perform measurements using setup files containing C++ Scripts.
  • Export Scripts to Bundles.



7. SE license without a connected Dewesoft device

The SE (Standard) license doesn't support the OPT-C++ Script licensing option. However, it should still be possible to create new and edit preexisting C++ Script modules, as well as open and recalculate data files that contain C++ Scripts. It should also be possible to load and modify preexisting setups that contain C++ Scripts, but it won't be possible to run a measurement.


(Un)available functionality:

  • Create and edit C++ Script modules.
  • Open preexisting setups containing C++ Scripts.
  • Open and recalculate data files containing C++ Script modules.
  • Exporting Scripts to Bundles is not possible!


8. EDU and Enterprise license

The EDU (Educational) and Enterprise licenses already include the C++ Script option. A user with either license will therefore be able to utilize the full scope of C++ Script functionality.


(Un)available functionality:

  • Create and edit C++ Script modules.
  • Open preexisting setups containing C++ Scripts.
  • Open and recalculate data files containing C++ Script modules.
  • Perform measurements using setup files containing C++ Scripts.
  • Export Scripts to Bundles.


The option to load and configure C++ Scripts without a valid license that includes the C++ Script option was implemented in DewesoftX 2024.2.

Before DewesoftX 2024.2, loading a setup containing C++ Scripts without the required license option would disable or remove those modules from the setup.



General consensus

In order to actively use the C++ Script functionality, an active license with C++ Script functionality is required. However, if you only need to run existing scripts during measurements without modifying them, you can export the scripts as CBU files from a single licensed PC and use them as plugins on other DewesoftX instances with no extra licenses required. Learn how in our solution, Importing C++ Scripts.



Additional information: