Programming language

| Vectorized | C |
in the palette on the schematic

The Programming Language block is designed to create blocks that perform complex operations, including operations on matrices, vectors, and complex numbers. The dialog box of this block is a window of the text editor of algorithms, in which the User writes a mathematical model in the built-in programming language. The block allows you to implement an arbitrary algorithm written in the built-in programming language of the complex. When generating code for a block, a template for generating arbitrary code in C language can be set. For more information about the built-in programming language, see the corresponding help section.

Inputs

The block has an arbitrary number of inputs set in the input.dita section inside the block.

Outputs

The block has an arbitrary number of outputs set in the output.dita section inside the block.

Properties:

  • Sorting type – checkbox (flag) defining the order of calculation of the block in the general scheme;
  • Module title – the title of the text when generating code, special comments are declared here;
  • Variable declaration section – text inserted at the beginning of the program when generating code;
  • Main code section – the main text of the program when generating code for the block;
  • State storage section – text inserted at the end of the program when generating code, where state variables are calculated;
  • Variable declarations – text inserted into the select file to describe the block state variables;
  • Default variable values – the test to set the initial values of the block state variables.

Parameters

  • Dynamic variables - internal block condition variables;
  • Derivatives - internal block condition variables.

Related materials