WSMLink`
WSMLink`

WSMRealTimeSimulate

WSMRealTimeSimulate["mmodel"]

launches a simulation of mmodel synchronized with real time.

WSMRealTimeSimulate["mmodel",tmax]

simulates from 0 to tmax.

Details

  • 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

Examples

open allclose all

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

Scope  (2)

Options  (2)

Applications  (4)

Properties & Relations  (1)

Possible Issues  (1)

See Also

WSMRealTimePlot  WSMSimulationConnection  WSMSimulate  WSMRealTimeConnect

Tutorials