How to access a Database from Simulink?

조회 수: 3 (최근 30일)
Srivenkata Satya Prasad Maddipatla
댓글: 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
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 CenterFile Exchange에서 Reporting 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