Redhawk波形示例无图输出 [英] No Plot output from Redhawk Waveform Example

查看:139
本文介绍了Redhawk波形示例无图输出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试从文档的第5章中获取Waveform示例,但看不到Siggen端口或硬限制端口的任何输出.我将频率设置为50 MHz,并将siggen的out端口连接到hardlimit的in端口.我正在尝试从本地域管理器运行它,它似乎可以正常启动.但是,当我选择绘图端口数据"时,只会得到一个空图.在Domain Manager控制台上,启动波形后,我立即看到以下内容:

I am trying the Waveform example from chapter 5 of the documentation, but I do not see any output from the Siggen port or from the hard limit port. I set the frequency down to 50 MHz and connected the out port of the siggen to the in port of the hardlimit. I am trying to run it from a local domain manager, and it appears to start correctly. But, when I select Plot Port Data I just get an empty plot. On the Domain Manager console I see this right after starting the waveform:

   INFO:ApplicationFactory_impl - Done creating application DCE:a81037d5-98e5-4e80-9791-0364ec62018a:testWaveform_339_175951424_1 testWaveform_339_175951424
    INFO:DomainManager_impl - Uninstalling application DCE:a81037d5-98e5-4e80-9791-0364ec62018a

立即卸载应用程序是否正常,还是我误会了?

Is it normal for it to uninstall the application right away, or am I just misunderstanding?

推荐答案

仔细检查以确保在启动波形后,通过选择工具栏中的绿色播放按钮来启动波形.

Double check to make sure that you started the Waveform by selecting the green play button in the toolbar after the Waveform has been launched.

如果这不起作用,请在python中尝试以下操作(假设您正在运行1.9版):

If that doesn't work try the following in python (Assuming you are running Version 1.9):

from ossie.utils import sb
gen = sb.launch('SigGen')
limit = sb.launch('HardLimit')
sink = sb.DataSink()
gen.connect(limit)
limit.connect(sink)
sb.start()
data = sink.getData()

在这一点上,如果数据"变量包含一个长数组,则您的组件运行正常.然后,您可以通过继续执行以下python会话,来绘制python中的数据(需要安装matplotlib和PyQt4):

At this point if the "data" variable contains a long array, your components are working properly. You can then plot the data from python (requires matplotlib and PyQt4 to be installed) by continuing your python session with the following:

plot = sb.LinePlot()
limit.connect(plot)
plot.start()

对于问题的第二部分,当启动波形时,它实际上是根据XML文件创建一个Application Factory实例,而该XML文件又可以创建1个或多个Application实例.然后,当不再需要Application Factory时,将其卸载.通过IDE启动时,在卸载之前只能从Application Factory创建一个应用程序.有关应用程序和应用程序工厂的更多信息,可在《 REDHAWK手册》第11章的中找到.

As for the second part of your question, when a Waveform is launched it is actually creating an Application Factory instance from the XML files which in turn can create 1 or more Application instances. Then, when the Application Factory is no longer needed, it is uninstalled. When launched through the IDE, only a single Application is created from the Application Factory before it is uninstalled. More on Applications and Application Factories can be found in Chapter 11 of the REDHAWK Manual.

这篇关于Redhawk波形示例无图输出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆