Two errors: "Fixed-point error" and then "Expected a numeric value. Found a embedded.fi (double)"

3 次查看(过去 30 天)
I am using a sine block and an M-Function. Everything was working fine yesterday but I don't know if I changed something in the configuration that today none of the simulink models with these blocks are working.
First it comes with these two errors:
Error in 'series_connection_1FB_Qpi/Cluster control/Variable Sine Wave Generator/Sine/Sine': Initialization commands cannot be evaluated.
'series_connection_1FB_Qpi/Cluster control/Variable Sine Wave Generator/Sine/Sine/Look-Up Table' requested use of data type 'sfix16_En14'. Use of this data type requires a fixed-point license, but license checkout failed. To use this model without a fixed-point license, select "Fixed-Point Tool" under "Fixed-Point" from the model's Tools menu. Select the root model in Model Hierarchy. Set "Fixed-point instrumentation mode" to be "Force off", "Data type override" to be "Double" and "Data type override applies to" to be "All numeric types". This replaces most uses of fixed-point data types with floating-point doubles. In rare cases, a few attempts to use restricted data types may still exist. Reconfiguring to use floating-point types and/or inserting Typecasts is necessary in these cases.
Then I changed what it says and appears another error that I couldn't find what it is:
Expected a numeric value. Found a embedded.fi {double}
Function 'Three H-Bridge v1.1i + Control v1.1d Arm 1/PWM & Voltage Balancing v1.1d/Capacitor Balancing Algorithm' (#18.1725.1748), line 60, column 31:
"not(abs(cell_gates_in))"
Launch diagnostic report.
It was working yesterday! Could be because the fixed-point license is expired? But I have my doubts because other times this same error appears, I changed the fixed-point tool and then it worked again.
Thanks for your help!

采纳的回答

Dani Tormo
Dani Tormo 2013-2-13
Ok, I solved the problem isolating the sine block from the M-function block and changing what the error proposes only for the sine block. Then it worked again.
But I still don't knowing why the second error.
  2 个评论
Kaustubha Govind
Kaustubha Govind 2013-2-13
Is 'cell_gates_in' a fixed-point type? Perhaps is it the same issue with Simulink being unable to check out a Fixed-point license. If you see the same issue again, try running the command: license('test', 'fixed_point_toolbox')
This will attempt to check out a Fixed-point license. If this works some times and fails other times, perhaps you should ask MathWorks Licensing Support for help.
Dani Tormo
Dani Tormo 2013-2-14
No, 'cell_gates_in' is not a fixed-point variable. I think that the fixed-point is only used in the look-up table of the sine block generator.

请先登录,再进行评论。

更多回答(0 个)

Community Treasure Hunt

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

Start Hunting!

Translated by