How to use sim.getSimulationTime() and sim.getSimulationTimeStep()
Posted: 13 Nov 2019, 20:43
hello,
i implement the following code:
and i get the problem: attempt to perform arithmetic on global 'time_1' (a nil value)
i want to know what is the problem`?
Thank you !
Jian
i implement the following code:
Code: Select all
time_1 = sim.getSimulationTime()
step_time = sim.getSimulationTimeStep()
jp=time_1/step_time
i want to know what is the problem`?
Thank you !
Jian