diff options
author | manojgudi | 2014-03-15 21:54:36 +0530 |
---|---|---|
committer | manojgudi | 2014-03-15 21:54:36 +0530 |
commit | 46a716ccd44923e42823527f003eafaadc56172d (patch) | |
tree | 96ff3e37e2c8dc161bfe0b31877a95b6e7db1086 /code_devel.md | |
parent | 03c9e19dc9acebf9ac0f647b9f48c22a4fef3640 (diff) | |
download | sandhi-docs-46a716ccd44923e42823527f003eafaadc56172d.tar.gz sandhi-docs-46a716ccd44923e42823527f003eafaadc56172d.tar.bz2 sandhi-docs-46a716ccd44923e42823527f003eafaadc56172d.zip |
check codesnippet highlighting
Diffstat (limited to 'code_devel.md')
-rw-r--r-- | code_devel.md | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/code_devel.md b/code_devel.md index 8abd83f..7c1fedd 100644 --- a/code_devel.md +++ b/code_devel.md @@ -50,5 +50,13 @@ To integrate it, you need to 3. Similarly modify CMakeLists.txt in _../gr-myblock/python/_ and _../gr-myblock/doc/_ the one in _myblock/_ folder itself; add additional dependeny check if your block requires any. 4. The top_level CMakeLists.txt in _gr36/_ folder should include this line _add_subdirectory(gr-myblock)_ -### Coding a Sci-block +### Coding a Sci-block +This section gives hints on how to use Sciscipy in Sandhi to develop blocks. There are two ways of calling Sciscipy from work_function in python. + +1. By importing Scilab <br> +```python +from scilab import Scilab +sci_obj = Scilab() +output_items[0][:2] = sci_obj.rand(1,2) # This outputs a 1x2 Array of Random number generated by Scilab +``` |