s功能UINT64_T输入/输出simulink代码生成错误

发布于 2025-02-02 01:06:09 字数 695 浏览 3 评论 0原文

我正在尝试使用Simulink Coder生成C代码,以在MATLAB 2020B上使用S函数的模型生成C代码。 S函数包含INT64输入和INT64输出。更新图和Simulink模拟工作正常,因此我的S功能是有效的。但是使用Simulink编码器的C代码生成指示一个错误,指出代码生成的块支持的最大值为32位,而在我的TLC文件中,我的功能原型中有正确的类型。在我的s功能中,我还注册了64位数据类型,因为SS_UINT64和SS_INT64不存在。

errore代码:无法为此模型生成代码,因为块“ uint64_dummy_mdl/s-unction”块使用数据类型'int64',但需要64位,但是块为代码生成的emaxmimim支持的代码生成32

我缺少什么?如何使用64位数据类型生成代码?

​/I.sstatic.net/xvl1a.png“ alt =“在此处输入图像说明”>

I am attempting to generate C code with simulink coder for a model with an S-Function on Matlab 2020b. The S-Function contains an int64 input and an int64 output. The update diagram and simulink simulation work fine, therefore my s-function is valid. But C code generation with simulink coder indicates an error stating the maximum supported by the block for code generation is 32 bits, and in my tlc file i have the correct types in my function prototypes. In my S-Function i have also registered the 64 bits data types since SS_UINT64 and SS_INT64 does not exist.

Errore Code : Code cannot be generated for this model because block 'uint64_dummy_mdl/S-Function' is using data type 'int64' which requires 64 bits, but th emaximum supported by the block for code generation is 32

What am i missing? How can i generate the code using a 64 bit data type?

enter image description here

enter image description here

enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

不离久伴 2025-02-09 01:06:09

让我们尝试为模型配置64位目标平台体系结构
(配置参数>硬件实现>设备类型)
我想在配置参数中配置了32位目标后,将UINT限制为32位表示。

Let's try configuring 64-bit target platform architecture for your model
(Configuration Parameters > Hardware Implementation > Device type)
I guess that having configured 32-bit target in Configuration Parameters could limit the uints to 32-bit representation.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文