Skip to content

Commit

Permalink
Minor fix, including exit help
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@1913 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
Kaj Nyström committed Oct 5, 2005
1 parent f07bbb0 commit 5ae2eff
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Compiler/helptext.txt
@@ -1,5 +1,6 @@
Open Source Modelica functions
------------------------------
Exit Mosh by pressing Ctrl-d


cd() - Return the current directory
Expand Down Expand Up @@ -30,8 +31,8 @@ loadModel(classname) - Load model or package relative to $MODELICAPATH.

listVariables() - Return a vector of the defined variables names.

plot(vars) - Plots the variables given as a vector, e.g., plot({x1,x2}),
using an external plotter.
plot(vars) - Plots the variables given as a vector using an
external plotter.
Ex: plot({x,y})
Ex: list(dcmotor)
readFile(str) - Load file given as string and return a string of the
Expand All @@ -47,7 +48,7 @@ readSimulationResult(filename, variables, size) -
Reads the results for a simulation from a file.
Size is the size of the resulting record
Variables is a vector of the variables to investigate
Ex: readSimulationResult("dcmotor_res.plt", {R1.i,L1.v}, 10);
Ex: readSimulationResult("dcmotor_res.plt", {R1.i,L1.v}, 10)

runScript(str) - Exectute script file (.mos) given as string argument.
Ex: runScript("simulation.mos")
Expand All @@ -58,7 +59,8 @@ saveModel(str,modelname) - Save the model/class with name modelname in the
simulate(modelname [,startTime=<Real>][,stopTime=<Real>][,numberOfIntervals=<Integer>])
Translates a model and simulates it.
Ex: simulate(dcmotor)
Ex: simulate(dcmotor,startTime=0, stopTime=10, numberOfIntervals=1000)
Ex: simulate(dcmotor,startTime=0, stopTime=10,
numberOfIntervals=1000)

system(str) - Execute str as a system(shell) command, return integer
success value.
Expand Down

0 comments on commit 5ae2eff

Please sign in to comment.