How to access a Database from Simulink?

4 ビュー (過去 30 日間)
Srivenkata Satya Prasad Maddipatla
Srivenkata Satya Prasad Maddipatla 2020 年 4 月 20 日
コメント済み: Christopher Dieck 2022 年 6 月 13 日
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
Srivenkata Satya Prasad Maddipatla 2020 年 4 月 22 日
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 2022 年 6 月 13 日
Could you provide the S_Function?

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeReporting and Database Access についてさらに検索

製品


リリース

R2019b

Community Treasure Hunt

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

Start Hunting!

Translated by