Simulink Real-Time build fail

16 ビュー (過去 30 日間)
Jean-Jacques
Jean-Jacques 2021 年 2 月 15 日
コメント済み: Jean-Jacques 2021 年 2 月 16 日
When I try to build this simple Simulink model for Real-Time, I get the following message:
"...
Top model targets built: Model Action Rebuild Reason ========================================================================
PCIe_6321_RT Failed Code generation information file does not exist. 0 of 1 models built (0 models already up to date) Build duration: 0h 0m 1.33s
Level-2 MATLAB S-function 'saissb' in 'PCIe_6321_RT/Analog Input (Single Sample)' specifies 'SetSimViewingDevice(true)' , which prevents an output port from being created for the S-function.
..."
How can I get over this?
Nota: the PCIe-6321 is in the list of the Simulink Desktop Real-Time supported hardware from Nation Instruments.

採用された回答

Jan Houska
Jan Houska 2021 年 2 月 16 日
Hi Jean-Jacques,
to use the PCIe-6321 with Simulink Desktop Real-Time, please use the Analog Input and Analog Output blocks from the Simulink Desktop Real-Time library. The blocks from the Data Acquisition Toolbox library are not usable with Simulink Desktop Real-Time.
And, one extra hint for free :-) : for maximum performance, please use just a single Analog Input and Analog Output block per model and specify the I/O channels to read and write as a vector. The performance advantage (compared to multiple blocks each reading one channel) is substantial especially for the PCIe-63xx series of boards.
Jan
  1 件のコメント
Jean-Jacques
Jean-Jacques 2021 年 2 月 16 日
Thanks Jan.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeReal-Time Simulation についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by