英文:
createGlobalMarker() function is not allowed within the current context
问题
我正尝试在CANalyzer配置的CAPL脚本中使用createGlobalMarker()函数。该脚本插入到配置的发送分支中。
我正在发送帧,这些帧具有周期性内容/速率,我希望在从帧的一个信号切换到另一个信号时记录一个标记。
这是一种较为简陋的测试设置。
到目前为止,我无法在switch语句、定时器和信号接收中使用此函数。文档只提供了一个on key事件的示例,但没有说明该函数可以在哪里使用。
所以问题是:我可以在哪里使用这个函数?它是否与我的配置有关?
英文:
I am attempting to use the function createGlobalMarker() in a CAPL script of a CANalyzer configuration. The script is inserted on the Send branch of the configuration.
I am sending frames with periodic content/rate and I'd like to log a marker whenever I'm switching from one signal of the frame to another.
This is a poor man's test setup of sorts.
So far, I cannot use this function in switch cases, timers and signal reception. The documentation only provides an example of the on key event, but doesn't describe where the function can be used.
So the question is: where can I use the function? Does it have something to do with my configuration?
答案1
得分: 1
根据文档中的说明,该函数只能在_CANalyzer分析分支_中使用,相当于CANoe的测量设置。
也就是说,在离线/在线开关的右侧。
您似乎将其放在了发送分支中。
作为一个经验法则,与分析相关的所有内容都必须放在测量设置中。
英文:
As stated in the documentation, the function can only be used in CANalyzer Analysis Branch, the equivalent of CANoe's measurement setup.
I.e. right of the Offline/Online switch.
You seem to have placed it in the transmit branch.
As a rule of thumb, everything that is solely related to analysis has to go to the measurement setup.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。


评论