NI LabVIEW,CVI,数据采集等产品讨论区

取消
显示结果 
搜索替代 
您的意思是: 

关于CVI多线程的问题

在一个面板在放置一个定时器控件,在主线程中导入该面板,然后我用线程池创建一个次线程,次线程中启动该定时器,请问该定时器的回调函数是否在次线程中运行,还是依然在主线程中运行,如何判别??
0 项奖励
1 条消息(共 2 条)
4,780 次查看
问题搞定了
 

In general, LabWindows/CVI invokes user interface callbacks in the same thread in which you create the panel or menu bar to which the callback event applies. This applies to all controls on a panel, including timer controls. The following exceptions exist:

  • DiscardCtrl invokes the control callback with the EVENT_DISCARD message. You can call DiscardCtrl in any thread.
  • For the EVENT_IDLE message, LabWindows/CVI invokes the main callback in the thread in which you call InstallMainCallback.
Note  Additionally, for events that are associated with a panel, you must process events in the same thread in which you create the panel.
0 项奖励
2 条消息(共 2 条)
4,774 次查看