HDL and NI FPGA code generation error.

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일

0 개 추천

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

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Code Generation에 대해 자세히 알아보기

제품

릴리스

R2022b

질문:

2024년 7월 8일

편집:

2024년 7월 10일

Community Treasure Hunt

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

Start Hunting!

Translated by