Wiki

This version (12 Aug 2020 14:22) was approved by John Joseph.

Return to parent page

Algorithm Designer

Algorithm Designer offers the flexibility to create a custom SigmaStudio+ block with runtime control over the parameters. SigmaStudio+ Algorithm Designer has two use cases:

  • Algorithm Designer can be used as Designer Control module which could be inserted in the schematic as a generic module. Designer Control can implement any algorithm and offer provision for run-time parameter tuning. Since edits can be made to the source code as well as parameters in the Designer Control and the schematic can be immediately compiled and executed, this is useful during the development phase of the module.
  • Algorithm Designer can generate a reusable SigmaStudio+ block in the form of a DLL from an Algorithm using CrossCore Embedded Studio tools. The resulting SigmaStudio+ Add-In library file (Plug-In) can be reused and redistributed just like built-in SigmaStudio+ Algorithms.

This page describes the steps required to use Algorithm Designer as Designer Control module as well as steps required to generate a custom SigmaStudio+ Plug-In using CrossCore Embedded Studio tools and Algorithm Designer.

Implementing Custom Algorithm using Algorithm Designer Module


Algorithm Designer Module is a generic module which can be inserted in the schematic. Once inserted in the schematic, this module can be used to directly implement custom block processing algorithms without the need of generating a Plug-In. Run-time control of parameters are also supported on the Algorithm Designer Module.

Insert Module and Launch Designer

This module is listed under “Designer” category in the tool-box. This module is available only on the block processing schematic. When inserted in the schematic, the module will have no input-output pins. The Algorithm Designer window can be launched by double clicking on the Algorithm Designer module inserted in the schematic.

Configure the module using Algorithm Designer

Algorithm Designer will be used to configure the algorithm source code and parameters of the Algorithm Designer Module. Steps involved are:

  1. Define Source
  2. Define Parameters
  3. Define Pins
  4. Define Memory
  5. Define Runtime Variables
  6. Assign Parameters

Refer to Designing Module for more details.

Compile the Schematic with Designer Control

Once the above steps are completed, the input-output pins on the Algorithm Designer module can be connected to the schematic. Link-Compile-Download the schematic. The Algorithm Designer window can be either left open or closed before compiling the schematic. Ensure to save the Designer project before closing the Algorithm Designer window.

Tune Custom Algorithm using Algorithm Designer

Tune Parameters
Module parameters can be modified by changing the runtime variables and runtime buffers. Since the module parameters are assigned with the runtime parameters, changing the runtime parameters changes the module parameters. Runtime variables can be modified using the numeric up-down control. Runtime buffers can be modified using the ‘Edit” button. After the table entries and edited, press ‘Update’ to send the updated parameters to the target.

Modify Source Code
Changes to the module source code can be made in the source editor within Algorithm Designer. Note that it is required to recompile the schematic once the source code has been modified.

Modify Memory Requirements
Note that it is required to recompile the schematic once the memory requirements have been modified in the Algorithm Designer.

Finalize the Module

Once the module is finalized, it can be built as a Plug-In and distributed. Click here for instructions to Generate Plug-In Assembly.


Generate Algorithm Plugin (DLL) using Algorithm Designer

Launch Algorithm Designer

Algorithm Designer can be launched in 2 ways.

  1. Using the algorithm Designer module as mentioned in previous section.
  2. Algorithm Designer can be also launched by selecting ToolsAlgorithm Designer from the menu bar.



Configure the module using Algorithm Designer

Algorithm Designer will be used to configure the source, pins, parameters, memory and UI of the new module. Refer to Designing Module for more details.

Generate Plug-In Assembly

Click here for instructions to Generate Plug-In Assembly

Coding Conventions

resources/tools-software/sigmastudiov2/usingsigmastudio/designermodule.txt · Last modified: 01 Jul 2020 16:01 by John Joseph