This section provides a clear, step-by-step guide for getting started with the NumXL SDK programming. It is designed to help you understand the basic functions and data structures, as well as how they work together.
Important: This tutorial focuses on development configuration using Visual Studio for C/C++ development. However, if you are using a different development tool, you can adapt the steps to align with the user interface of your chosen tool.
To start using NumXL in your C/C++ project, follow these steps:
Note: The NumXL SDK package includes scripts that automatically append the necessary settings to your build environment, specifically for the compiler and linker. Additionally, it copies platform-specific runtime files, such as DLLs, into your project's output folder. This means you don't need to modify your project settings in order to build or run your application.
The NumXL SDK package includes scripts that automatically append the necessary settings to your build environment, specifically for the compiler and linker. Additionally, it copies platform-specific runtime files, such as DLLs, into your project's output folder. You don't need to modify your project settings to build or run your application.
Refer to Installation page for a step-by-step guide on adding numxl.sdk.c using the NuGet Package Manager Tool in Visual Studio Studio.
To use the NumXL SDK functions, you must obtain a license key by either requesting a free 14-day trial or purchasing a paid subscription on our website.
The license key is a text string formatted like "79F7-C8-ZZ-XX-YYYY," where X, Y, and Z represent hexadecimal digits.
After adding the NumXL SDK NuGet package to your project, the package will copy the necessary NumXL runtime files to your project's output directory. This includes a command-line utility called sflmgr.exe. You can use this utility to request a trial license key, activate the license on your machine, and generate the activation code.
Refer to License Key & Activation page for a detailed guide on requesting a trial license key and generating the activation code using the sflmgr.exe utility.
Note: Please remember that the license key and activation code remain unchanged until the next subscription renewal date. You should store them in a permanent form(e.g., file, registry) so your application can retrieve them for the SDK initialization.
The NumXL SDK comprises five separate modules:
Each module is initialized by invoking the configuration API (*_INIT(.)), where operation parameters can be set.
In most cases, your application doesn't need to initialize all five modules. However, it should at least initialize the SFLUC module and one or more additional modules, such as SFSDK, from which it calls corresponding functions.
The SDK initialization shoudl be made early during application startup, and a clean-up code before your process exits. If you are building a libray (DLL), then you initialize the SDK before calling any of its function.
Notice: There are few functions in SFLUC that don't require library initialization (e.g., SFLUC_MACHINEID), but for the vast majority, they will fail if you were to call them before their corresponding module is initialized.
Once you initialize the sdk modules, you are ready to call the different functions and pass your data for processing.
In the example below, we show running simple exponential smoothing (Brown's) on the international airline passenger data:
Before the application process shutdown, you must call the shutdown functions in the sdk: