Data type issue for LUT input
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hello all,
Im having a issue with check block compatibility within HDL workflow advisor. Specifically Im getting an error that says "undefinded function storedInteger for input arguments of type double. " Ive tried changing the data type instead of double to int, num2str, fixd, etc but I'm still getting the same error. Also, this error is within the Field oriented control current controller in HDL coder.
Thanks in advance
0 comentarios
Respuestas (1)
Kiran Kintali
el 22 de Dic. de 2020
hdlcoderFocCurrentFixptHdl should generate HDL out of the box.
>> makehdl('hdlcoderFocCurrentFixptHdl/FOC_Current_Control')
### Generating HDL for 'hdlcoderFocCurrentFixptHdl/FOC_Current_Control'.
### Using the config set for model hdlcoderFocCurrentFixptHdl for HDL code generation parameters.
### Running HDL checks on the model 'hdlcoderFocCurrentFixptHdl'.
### Begin compilation of the model 'hdlcoderFocCurrentFixptHdl'...
### Applying HDL optimizations on the model 'hdlcoderFocCurrentFixptHdl'...
### Begin model generation.
### Model generation complete.
### Generating new validation model: gm_hdlcoderFocCurrentFixptHdl_vnl.
### Validation model generation complete.
### Begin VHDL Code Generation for 'hdlcoderFocCurrentFixptHdl'.
### Working on hdlcoderFocCurrentFixptHdl/FOC_Current_Control/Clarke_Transform as hdlsrc\hdlcoderFocCurrentFixptHdl\Clarke_Transform.vhd.
### Working on hdlcoderFocCurrentFixptHdl/FOC_Current_Control/DQ_Current_Control/D_Current_Control/Saturate_Output as hdlsrc\hdlcoderFocCurrentFixptHdl\Saturate_Output.vhd.
### Working on hdlcoderFocCurrentFixptHdl/FOC_Current_Control/DQ_Current_Control/D_Current_Control as hdlsrc\hdlcoderFocCurrentFixptHdl\D_Current_Control.vhd.
### Working on hdlcoderFocCurrentFixptHdl/FOC_Current_Control/DQ_Current_Control as hdlsrc\hdlcoderFocCurrentFixptHdl\DQ_Current_Control.vhd.
### Working on hdlcoderFocCurrentFixptHdl/FOC_Current_Control/Inverse_Clarke_Transform as hdlsrc\hdlcoderFocCurrentFixptHdl\Inverse_Clarke_Transform.vhd.
### Working on hdlcoderFocCurrentFixptHdl/FOC_Current_Control/Inverse_Park_Transform as hdlsrc\hdlcoderFocCurrentFixptHdl\Inverse_Park_Transform.vhd.
### Working on hdlcoderFocCurrentFixptHdl/FOC_Current_Control/Park_Transform as hdlsrc\hdlcoderFocCurrentFixptHdl\Park_Transform.vhd.
### Working on hdlcoderFocCurrentFixptHdl/FOC_Current_Control/Sine_Cosine/Sine_Cosine_LUT as hdlsrc\hdlcoderFocCurrentFixptHdl\Sine_Cosine_LUT.vhd.
### Working on hdlcoderFocCurrentFixptHdl/FOC_Current_Control/Sine_Cosine as hdlsrc\hdlcoderFocCurrentFixptHdl\Sine_Cosine.vhd.
### Working on hdlcoderFocCurrentFixptHdl/FOC_Current_Control/Space_Vector_Modulation/Max/Max as hdlsrc\hdlcoderFocCurrentFixptHdl\Max.vhd.
### Working on hdlcoderFocCurrentFixptHdl/FOC_Current_Control/Space_Vector_Modulation/Min/Min as hdlsrc\hdlcoderFocCurrentFixptHdl\Min.vhd.
### Working on hdlcoderFocCurrentFixptHdl/FOC_Current_Control/Space_Vector_Modulation as hdlsrc\hdlcoderFocCurrentFixptHdl\Space_Vector_Modulation.vhd.
### Working on hdlcoderFocCurrentFixptHdl/FOC_Current_Control as hdlsrc\hdlcoderFocCurrentFixptHdl\FOC_Current_Control.vhd.
### Generating package file hdlsrc\hdlcoderFocCurrentFixptHdl\FOC_Current_Control_pkg.vhd.
### Code Generation for 'hdlcoderFocCurrentFixptHdl' completed.
### Generating HTML files for code generation report at hdlcoderFocCurrentFixptHdl_codegen_rpt.html
### Creating HDL Code Generation Check Report FOC_Current_Control_report.html
### HDL check for 'hdlcoderFocCurrentFixptHdl' complete with 0 errors, 0 warnings, and 0 messages.
### HDL code generation complete.
%If you have trouble generating HDL for this model please contact support@mathworks.com
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!