Main Content

run

Run cosimulation in virtual reality world

Since R2022b

    Description

    run(world,sampleTime) runs the cosimulation with sampling period specified in sampleTime.

    run(world,sampleTime,simulationTime) additionally specifies the simulation time in simulationTime.

    Input Arguments

    collapse all

    The sim3d.World object where cosimulation is being run.

    Sampling period of the virtual reality world, specified as a real positive scalar.

    Data Types: single

    Length of time the simulation runs, specified as a real positive scalar.

    Data Types: single

    Version History

    Introduced in R2022b