04-27-2020 08:48 PM
在使LabVIEW设计用户界面的时候,调用TestStand引擎,再通过TestStand调用Labview编写的测试项。不可避免的会遇到一个问题:当测试项为耗时测试项时,用户界面如何能够控制测试项计时暂停和停止?
04-28-2020
03:28 PM
- last edited on
10-24-2024
01:47 PM
by
Content Cleaner
Hope this helps,
Trent
04-28-2020 09:47 PM
我已经知道了这种方法,但是这不能完全解决这个问题。
只有当状态机中状态切换时才能响应停止,如果一个状态执行1min,则还是不能立即响应。
比如:控制设备开机,等待1min后,开始执行测试。
这个可以通过程序逻辑处理解决,但是还是想知道有没有更直接的方式。
还有,这种方法只能停止,如何响应暂停呢?
04-29-2020
08:13 AM
- last edited on
10-24-2024
02:18 PM
by
Content Cleaner
The more direct way would be to use a synchronization object - specifically something like a notifier. Then you could trigger a notification in one place (sequence or VI) and check for it in another: