CSCRIPT

C interpreter
Inputs(1) a
Parameters(0)
Default
Text1 C-Script
Text2
Select from Components/Blocks/Cscript&Expression
Function In the C-Script block you can define C code to create your own blocks. The C code is interpreted, so no external compiler is required.
Inside the C-script block local variables are declared. Global variables are defined in the block CVAR.
The input a is defined as a local variable within the scope of the C-script. The return value of the function main() is defened by the return function return(.)
Special Example of a simple adder:

int iCount;
int y;

main()
  {
  iCount=1;
  y=a+iCount;
  return(y);
  }


See the tutorial on the C-Script for more details on the syntax of the C-script.
© 2024 CASPOC, All rights reserved. Home   |   Terms and Conditions   |   Legal   |   Export Compliance   |   Privacy Policy   |   Site Map