HDL and NI FPGA code generation error.

2 ビュー (過去 30 日間)
Madhusudan
Madhusudan 2024 年 7 月 8 日
編集済み: Madhusudan 2024 年 7 月 10 日
Hello,
I am attempting to generate spike voltage using a MATLAB Function block in Simulink. While the function block successfully generates the spikes, I am encountering difficulties in generating HDL code from the Simulink MATLAB Function block.
I have attached the Simulink model and the error details. Could someone assist me in resolving this issue?
  • The sampling rate is 1e6.
  • The solver selection is fixed and discrete.
i am getting Native floating-point code generation cannot complete for the following reason(s): 'Spike_voltage_initial Signal rate of value 0.000000 found'.error

回答 (1 件)

Kiran Kintali
Kiran Kintali 2024 年 7 月 10 日
You can generate HDL Code from the attached MATLAB function block performing RMS (root mean square) algorithm.
% Generate HDL code
makehdl('mRMS_22b/HDL Subsystem');
  1 件のコメント
Madhusudan
Madhusudan 2024 年 7 月 10 日
編集済み: Madhusudan 2024 年 7 月 10 日
Hello kiran
I am getting error while genrating Voltage Spike not in RMS(this is another Question).
thank you

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

カテゴリ

Help Center および File ExchangeCode Generation についてさらに検索

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by