Hello, I would like to be able to set the time of my simulation with the exact time of the PC when I launch the simulation. (with the code in Model Triggers, onRunStart)
For the moment I use this code but I don't know how to configure with the PC time :
DateTime startTime = DateTime("05/11/2022 10:27:42 AM", "%m/%d/%Y %I:%M:%S %p"); function_s(getmodelunit(START_TIME_NODE), "setDateTime", startTime);
Thank you for the help !