Skip to content

Commit

Permalink
Updatet README to show quit functionality.
Browse files Browse the repository at this point in the history
Example is now runable.
  • Loading branch information
Andreas Heuermann authored and arun3688 committed Aug 27, 2019
1 parent ee363e4 commit f71d4ff
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ To see the list advanced API, the informations are provided in the UserGuide see

# Usage
```
julia> using OMJulia
julia> using OMJulia: sendExpression
julia> omc=OMJulia.OMCSession()
julia> sendExpression(omc, "getVersion()")
Expand All @@ -52,6 +53,8 @@ Dict{String,Any} with 10 entries:
"resultFile" => "PATH/TO/Modelica.Electrical.Analog.Examples.CauerLowPassAnalog_res.mat"
"timeSimCode" => 0.0409317
"timeBackend" => 0.140713
julia> OMJulia.sendExpression(omc, "quit()",parsed=false)
"quit requested, shutting server down\n"
```

To see the list of available commands in the OpenModelicaScripting API see (https://www.openmodelica.org/doc/OpenModelicaUsersGuide/latest/scripting_api.html

0 comments on commit f71d4ff

Please sign in to comment.