User defined functions

In the "Expression" block a user defined function can be defined. This block is for simple algebraic equations and is faster than the Cscript block.

Depending on the number of inputs to the block, the inputs are available as a, b, c, d, ....

Use can be made of + - / * ( )

Although supported in the block "Expression", the ^ operator can be used for raising power. However it is recommended not to use the ^ operator, since it is not supported in the ANSI-C language.

To model, for example:

<br>Click to close the image

use the following equation:


with following inputs:

<br>Click to close the image

and define it at the edit field text:

<br>Click to close the image

Always use enough brackets to structure your equations.

The user defiend function is easily inserted in your block diagram and the following example shows the comparising between

Yellow trace = a^2
Red trace    = a^2.5
Blue trace   = a^3

<br>Click to close the image
© 2018 CASPOC, All rights reserved. Home   |   Terms and Conditions   |   Legal   |   Export Compliance   |   Privacy Policy   |   Site Map