Custom Block
Block Description
This block is part of demonstration project on how to create custom block and use it in CASP models. Current behaviour of the block is to perform basic mathematical operation such as Add, Subtract, Multiply and Divide on two inputs and output the resultant. User may modify the code as per his requirement.
Parameters
· Basic
Entity Name |
Description |
Default Value |
Operation |
Select arithmetic operation to be performed |
Add |
Port Data Size |
Enter input output port data size. |
1 |
Initial Conditions
Input and output ports are initialized to zero.
Ports
Description |
Display Text |
Type |
Location |
Data Type |
Dimension Size |
Memory Type |
Input Port1 |
- |
Input |
Left |
Real |
Depends on Port Data Size |
Cacheable |
Input Port2 |
- |
Input |
Left |
Real |
Depends on Port Data Size |
Cacheable |
Output Port |
- |
Output |
Right |
Real |
Depends on Port Data Size |
Cacheable |
Characteristics
Executes During |
Simulation Time Step |
Prefers Separate Thread |
No |
Requires Simulation Panel |
No |
Supported Platforms
8-bit/16-bit Microcontrollers |
Yes |
32-bitt Microcontrollers (without FPU) |
Yes |
Microcontrollers (with FPU) |
No |
Programmable Logic Devices |
No |
Hardware With Embedded OS |
Yes |
Android Device |
No |
Desktop/Server Processors |
No |
Native Hardware |
Yes |
License
Required License |
Any |
Required License Modules |
None |