NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

TestStand User Interface

在使LabVIEW设计用户界面的时候,调用TestStand引擎,再通过TestStand调用Labview编写的测试项。不可避免的会遇到一个问题:当测试项为耗时测试项时,用户界面如何能够控制测试项计时暂停和停止?

0 Kudos
Message 1 of 4
(2,225 Views)
0 Kudos
Message 2 of 4
(2,162 Views)

我已经知道了这种方法,但是这不能完全解决这个问题。

只有当状态机中状态切换时才能响应停止,如果一个状态执行1min,则还是不能立即响应。

比如:控制设备开机,等待1min后,开始执行测试。

这个可以通过程序逻辑处理解决,但是还是想知道有没有更直接的方式。

还有,这种方法只能停止,如何响应暂停呢?

0 Kudos
Message 3 of 4
(2,149 Views)

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:

https://www.ni.com/docs/en-US/bundle/teststand-api-reference/page/tsref/synchronization-step-types.h...

 

 

https://www.linkedin.com/in/trentweaver
0 Kudos
Message 4 of 4
(2,124 Views)