When using Simulink in a dSpace Real Time Model, how can you get machine date and time into the model

Illustration
mjmaginley - 2024-05-24T19:30:44+00:00
Question: When using Simulink in a dSpace Real Time Model, how can you get machine date and time into the model

Without using datevec,  how can I get machine / computer real date and time into a simulink model for dSpace Real Time simulation?  

Expert Answer

Profile picture of Kshitij Singh Kshitij Singh answered . 2025-11-20

When working with Simulink in a dSPACE Real-Time Model, you can obtain the machine’s date and time for real-time simulations. Here are two approaches:

  1. Using Embedded MATLAB Function Block:

  2. Using Real-Time Interface (RTI) with dSPACE Hardware:


Not satisfied with the answer ?? ASK NOW

Get a Free Consultation or a Sample Assignment Review!