Documentation
How to create a new Block
Interface function
Each scicos block is defined by an interface function. This function is written in scilab-code and defines the scicos-block. For more information take a look at Structure of an interface file.- start scilab
- start the HART-Toolbox
- run the hart_edit_scicosblock function of the HART-Toolbox
hart_edit_scicosblock()
- go to hart/modules/{your_module_name}
- choose a file name for your interface function
- Click on save
- Enter the name of your C-function which should be connected to the block
- Enter a short description for your block
- Is your block always active? (output depends continuously of the time)
- Has the block direct feed-through ?, i.e., at least one of the outputs depends directly (not through the states) on one of the inputs. In other words, when the simulation function is called with flag 1, the value of an input is used to compute the output.
- Normally the Blocktype should not be changed.
- Click on the next notepad IO setup
- in:
- out:
- evtin:
- evtout:
- ipar:
- rpar:
- It is important to use doppel '
- Block size