How to access a Database from Simulink?

3 次查看(过去 30 天)
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,

回答(1 个)

Fangjun Jiang
Fangjun Jiang 2020-4-21
You can always use the "MATLAB Function" block. Keep in mind that it is executed at every simulation step.
  2 个评论
Srivenkata Satya Prasad Maddipatla
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.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Database Toolbox 的更多信息

产品


版本

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by