在VeriStand中运行FMU模型时出现部署错误

更新 Mar 5, 2025

适用于

软件

  • VeriStand

问题详述

我从Activate v2022.2 for Linux RT生成了一个FMU模型。FUM模型可以通过FMUChecker在PXI Linux RT上成功运行。但是,它无法通过VeriStand 2023 Q4运行。我在Linux RT的显示器上收到错误:

“description”:“SO_REUSEPORT unavailable on compiling system”

我在主机上也遇到了这个错误:

NI VeriStand:Could not complete one or more requests because a target is offline.

解决方案

这是由于堆栈溢出导致分段错误,从而导致模型初始化崩溃。您可以增加lvrt设置的线程堆栈大小限制。对于VeriStand 2023或更高版本,在Linux RT的/etc/natinst/share下找到文件lvrt.conf,并添加下面突出显示的字段:

[LVRT]
thpolicy_tcrit = fifo
thpri_tcrit = 94
thpolicy_vhigh = rr
thpri_vhigh = 6
thpolicy_high = rr
thpri_high = 5
RTCPULoadMonitoringEnabled = True
RTMode = True
appFont =“paratype-pt sans” 12
dialogFont =“paratype-pt sans”12
系统字体 = “paratype-pt sans” 12
PosixThreadStackSizeLimit = 2048
RTTarget.LaunchAppAtBoot = “True”
RTTarget.ApplicationPath = “/c/ni-rt/startup/NI VeriStand.rtexe”
PosixThreadStackSizeLimit = 2048