Using chrono in s-functions

9 visualizaciones (últimos 30 días)
Vikram Bhattacharjee
Vikram Bhattacharjee el 24 de Jul. de 2019
Respondida: Dinesh Yadav el 30 de Oct. de 2019
I am trying to use c++ chrono library in an s function inside MATLAB.The function builds but the clock doesnt seem to respond.Is there any way to directly use chrono inside S-functions without using ssGetT(S).

Respuestas (1)

Dinesh Yadav
Dinesh Yadav el 30 de Oct. de 2019
You can use chrono library inside S-Functions as long as the compiler you are using knows about those libraries. Check your compiler using
mex -setup C/C++
I am using Visual Studio Community 2019 compiler and it works for importing chrono inside s-functions.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by