简体   繁体   English

通过CAPL脚本在图形窗口添加信号

[英]Add signal at graphics window through CAPL scripting

我想知道可以通过CAPL Scripting将信号添加到图形窗口的方法。因此,在执行我的测试用例期间,在图形窗口中应该只存在与各个测试用例相关的信号。

As far as I know, there is currently no way to interact with the UI from a CAPL script (ie you only have direct access to Signals/Messages and Environment Variables). 据我所知,目前尚无法通过CAPL脚本与UI进行交互(即,您只能直接访问Signals / Messages和Environment Variables)。 Indirectly, you might be able to write a CAPL-DLL which uses COM automation to interact with the CANoe UI). 间接地,您可能能够编写一个使用COM自动化与CANoe UI交互的CAPL-DLL。


Edit (additional information) I did a bit more research and apparently there is no COM object or method which allows access to the Graphics window. 编辑(其他信息)我做了一些研究,显然没有允许访问“图形”窗口的COM对象或方法。 There is a LoggingCollection object, but that only allows access to the trace logging functionality. 有一个LoggingCollection对象,但是只允许访问跟踪记录功能。

I generally use Python for COM Automation (as opposed to the VB examples available in CANoe help) and I checked the properties of the Configuration.OnlineSetup object and it has a GraphicCollection property but it seems like the object is not yet implemented. 我通常使用Python进行COM自动化(与CANoe帮助中提供的VB示例相反),并且检查了Configuration.OnlineSetup对象的属性,它具有GraphicCollection属性,但似乎该对象尚未实现。

Based on personal experience, I know that Vector has excellent support, you can always try to get in touch with them for more help. 根据个人经验,我知道Vector提供了出色的支持,您可以随时尝试与他们联系以获得更多帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM