WSMRealTimeSimulate

WSMRealTimeSimulate["mmodel"]
launches a simulation of mmodel synchronized with real time.

WSMRealTimeSimulate["mmodel",tmax]
simulates from 0 to tmax.

DetailsDetails

  • WSMRealTimeSimulate returns a WSMSimulationConnection object.
  • By default, the simulation will continue until stopped.
  • WSMRealTimeSimulate takes the same arguments and options as WSMSimulate, with the following addition:
  • RefreshRateAutomaticcommunications per second
  • With Method ->{"opt1"val1,}, the following opti can be used:
  • "IP"Automaticinterfaces to listen on
    "Port"Automaticport to listen on
    "WriteSimulationData"Falsewrite results to file
  • Possible options for "IP" are:
  • Automaticlisten on local host
    Alllisten on all interfaces
    "ip"listen on ip
  • Possible options for "Port" are:
  • Automaticautomatically choose a port
    portlisten on port

ExamplesExamplesopen allclose all

Basic Examples  (3)Basic Examples  (3)

Load Wolfram SystemModeler Link:

In[1]:=
Click for copyable input

Launch a simulation in real time:

In[1]:=
Click for copyable input
Out[1]=

Stop the simulation:

In[2]:=
Click for copyable input

Launch a simulation for 10 seconds:

In[1]:=
Click for copyable input
Out[1]=

Stop the simulation:

In[2]:=
Click for copyable input