s功能UINT64_T输入/输出simulink代码生成错误
我正在尝试使用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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
让我们尝试为模型配置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.