MATLAB Answers

How to get current date time in Simulink?

2 views (last 30 days)
Harsh Patel
Harsh Patel on 2 Apr 2020
Commented: Fangjun Jiang on 2 Apr 2020
Hallo,
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,
Harsh

  2 Comments

Birdman
Birdman on 2 Apr 2020
Which version of MATLAB are you using?
Fangjun Jiang
Fangjun Jiang on 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?

Sign in to comment.

Answers (0)

Sign in to answer this question.