How to access a Database from Simulink?

3 visualizaciones (últimos 30 días)
Srivenkata Satya Prasad Maddipatla
Srivenkata Satya Prasad Maddipatla el 20 de Abr. de 2020
Comentada: Christopher Dieck el 13 de Jun. de 2022
Hi all,
I'm using Database Toolbox to query data from a PostgreSQL via MATLAB script. I want to do the same from within Simulink. Could anyone help me with that?
Thank you,

Respuestas (1)

Fangjun Jiang
Fangjun Jiang el 21 de Abr. de 2020
You can always use the "MATLAB Function" block. Keep in mind that it is executed at every simulation step.
  2 comentarios
Srivenkata Satya Prasad Maddipatla
Srivenkata Satya Prasad Maddipatla el 22 de Abr. de 2020
MATLAB function blocks are giving an error for the 'database' function that code cannot be generated. I got around this by using a MATLAB Level-2 S-function.
Christopher Dieck
Christopher Dieck el 13 de Jun. de 2022
Could you provide the S_Function?

Iniciar sesión para comentar.

Categorías

Más información sobre Reporting and Database Access en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by