MATLAB Answers

How to get current date time in Simulink?

조회 수: 10(최근 30일)
Harsh Patel
Harsh Patel 2 Apr 2020
댓글: Fangjun Jiang 2 Apr 2020
I require Date time entry in String Data type in my model. How can i get current Date time in Simulink model except using Matlab fuction?
At the moment i made workaround with using "now" function in Matlab function. In future i dont want any Matlab function block in my model.
Thanks in advance!
Kind regards,
  댓글 수: 2
Fangjun Jiang
Fangjun Jiang 2 Apr 2020
I am curious about your use case. The simulation could be faster or slower than real world. You want a new date time string at every simulation step?

댓글을 달려면 로그인하십시오.


Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by