<
From version < 10.1 >
edited by aas2
on 2017/10/25 13:43
To version < 12.1 >
edited by aas2
on 2017/10/25 13:45
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -703,7 +703,7 @@
703 703  
704 704  The following shows a tiny python script, that will write a Data Pool containing an output variable x to stdout.
705 705  
706 -{{code title="prog.py"}}
706 +{{code language="py" title="prog.py"}}
707 707  import sys
708 708  
709 709  x = 0
... ... @@ -718,7 +718,7 @@
718 718  
719 719  This script can be executed from within KIELER to start a simulation because it uses the JSON communication on stdin and stdout. Note however that the input coming from the simulation is not handled in the script. An example kisim configuration to start such a scipt is given below.
720 720  
721 -{{code}}
721 +{{code title="RunProg.kisim"}}
722 722  configure sim A {
723 723   executable: prog.py
724 724   command: "python -i ${executable_path}"
Confluence.Code.ConfluencePageClass[0]
Id
... ... @@ -1,1 +1,1 @@
1 -33260106
1 +50823373
URL
... ... @@ -1,1 +1,1 @@
1 -https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/KIELER/pages/33260106/V2 Simulation
1 +https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/KIELER/pages/50823373/V2 Simulation