图片缩略图

金宝appSimulink模块的实时执行

version 1.2.0.0 (8.82 KB) by Ivo Houtzager
C-MEX s -功能,降低模型的执行速度接近实时。
5.0
12评级

19下载

更新2015年7月11日

视图版本历史

查看许可协议

这个block是在“Simulink Real Time Execution”(文件ID:#21908)中给出的block的金宝app一个版本,具有一些增强的特性。这些块可以用来降低Simulink模型的速度,以便实时观察它的运行情况。金宝app与之前的提交相比,这个版本考虑了计算步骤之间的执行时间。此外,高分辨率的性能计数器用于获得超过1微秒精度的时间。最后,剩余时间被计算并作为输出给出。

引用作为

Ivo Houtzager(2021)。金宝appSimulink模块的实时执行(//www.tatmou.com/matlabcentral/fileexchange/30953-金宝appsimulink-block-for-real-time-execution), MATLAB中央文件交换。检索

意见及评分(19

丹尼尔·米尔

我还得到以下错误:
Sfun_rttime.c:(.text+0x1a0): undefined reference to ' hightimer'

将hightimer()函数定义为static解决了这个问题:
__inline static double hightimer()

马科斯米

当我第一次使用mex命令编译函数时工作:
墨西哥人- o sfun_rttime.c

这正是我想要的。谢谢你!

尼古拉Pambakian

嗯,我在R2019a中得到这个错误:
Error in S-function 'rttime_example/Timer for Real-Time': S-function 'sfun_rttime' does not exist .日志含义

侯赛因Rezazadeh

只能在simulink中工作金宝app。不能在目标硬件上编译。

Firas Abi Farraj

庆余

巨大的贡献!很感激!

法比奥Cassinelli

Sfun_rttime.obj:sfun_rttime.c:(.text+0x1c0): undefined reference to ' hightimer'
Sfun_rttime.obj:sfun_rttime.c:(.text+0x1f0): undefined reference to ' hightimer'
Sfun_rttime.obj:sfun_rttime.c:(.text+0x219): undefined reference to ' hightimer'

杜兰戈州

Amadeusz雅各布斯

罗德里戈•罗尔

“红

Bongani马瑟科

卡洛斯

这也适用于嵌入式。

Biswa木豆

Nandor

当试图编译时,我得到这个错误消息:

sfun_rttime。o:在函数hightimer中:
Sfun_rttime.c:(.text+0x2085):未定义对' clock_gettime'的引用
sfun_rttime。o:在函数' mdlOutputs'中:
Sfun_rttime.c:(.text+0x2116):未定义对' clock_gettime'的引用
Sfun_rttime.c:(.text+0x2191):未定义对' clock_gettime'的引用
Sfun_rttime.c:(.text+0x21d4):未定义对' clock_gettime'的引用
Collect2: ld返回1退出状态

` sfun_rttime `的链接。mexa64”失败了。

有人能给点建议吗?非常感谢

Pulkit Goyal

非常感谢。它工作!

Ivo Houtzager

必须首先使用mex命令编译该函数。

墨西哥人- o sfun_rttime.c

Pulkit Goyal

我一直得到这个错误:错误在S-function 'rttime_example/Timer for Real-Time': S-function 'sfun_rttime' does not exist。

有人能帮我一下吗?

jrocket567

MATLAB版本兼容性
创建R2012b
与任何版本兼容
平台的兼容性
窗户 macOS Linux

社区寻宝

在MATLAB中心找到宝藏,并发现社区如何可以帮助你!

开始狩猎!