我在CentOS 7上使用REDHAWK 2.0.4
我正在尝试按照此处的教程: https://www.youtube.com/watch?v=SttCsAIQtSA 在11:14,他们将设备依赖项添加到xml文件中:
<usesdevicedependencies>
<usesdevice id="device_connection">
<propertyref refid="DCE:cdc5ee18-7ceb-4ae6-bf4c-31f983179b4d"
value="chirp"/>
</usesdevice>
<usesdevicedependencies>
这个
<connectinterface id="device_connection_1">
<usesport>
<usesidentifier>dataFloat_out</usesidentifier>
<deviceusedbyapplication usesrefid="device_connection"/>
</usesport>
<providesport>
<providesidentifier>dataFloat_In</providesidentifier>
<componentinstationref refid="TuneFilterDecimate_1"/>
</providesport>
</connectinterface>
当我做同样的事情时,我从标题中得到错误:
The required feature ' refId' of 'Device Used By Application' must be set
我认为“DeviceUsedByApplication”使用了“usesrefid”,也许这个错误是由其他原因引起的?
答案 0 :(得分:2)
IDE报告的错误实际上是错误的。这是最近的2.0.5版本中修复的错误。请参阅发行说明(https://github.com/redhawksdr/redhawk/releases/tag/2.0.5):
在保存波形
时,添加FrontEnd将设备用于波形不再导致错误
答案 1 :(得分:1)
我收到了开发者的消息,他们说这个问题已在2.0.4中得到确认。
Just to confirm, the issue that you experienced in 2.0.4 has actually been
there a while, but it seems like it's now getting checked. Adding the refid to
the devicesusedbyapplication will get rid of the message, but as you
experienced, it has no bearing on whether or not it breaks anything. With any
luck it'll be fixed soon. Until then though, it can be ignored or mitigated as you did.