Need Julian Date to update in real time during Simulink Simulations

1 vue (au cours des 30 derniers jours)
Darren DeBattista
Darren DeBattista le 1 Déc 2021
Hi,
As the title describes, I am trying to run a simulation on simulink where I would need the Julian date to update continously using the simulation time. So far, I was using the clock function into a constant block to get the starting time of simulation and the clock block to get the simulation time. Both sources are connected to a Mathlab function block as inputs, and in the function block file, I was first adding both inputs to get the time at the current step and than using this time in the 'juliandate' funciton to get the julian date at the current time step.
The issue is that en error is poping up telling me that "Function 'juliandate' not supported for code generation" so I guess I can't use the 'juliandate' function into a Mathlab function block. Is there anyother way I can achieve what I need?
Thanks
  2 commentaires
Eric Sofen
Eric Sofen le 6 Déc 2021
Thanks for raising this issue. I've created an enhancement request for code generation support for the juliandate function.
FYI, there is also a Julian Date Conversion block in the Aerospace Blockset.
Darren DeBattista
Darren DeBattista le 10 Jan 2022
Sorry for my late reply and thanks refering me to the Julian Date Conversion!

Connectez-vous pour commenter.

Réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by