From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.



怎样在TestStand序列(Sequence)执行完毕后关闭LabVIEW?



主要软件:
主要软件版本: N/A
主要软件修正版本: N/A
次要软件: N/A

问题: 请问怎样可以在TestStand序列执行完毕后关闭LabVIEW?

解答: 如果TestStand序列包含了任何LabVIEW步骤(step),TestStand会在预载模块时启动LabVIEW。然后LabVIEW会保持开启,支持其它序列的执行。它可以被手动关闭,或当序列编辑器(sequence editor)或操作员界面(operator interface)关闭后自动关闭。

另外,也可以让LabVIEW在一个序列执行完毕后自动关闭。在你的序列末尾,即所有的步骤之后,加入一个ActiveX Automation Adapter “Action”步骤,程控地关闭LabVIEW。
  1. 为 ActiveX Automation Adapter 步骤填入以下信息:
    ActiveX reference: 保留空白
    Automation Server: LabVIEW 7.0 TypeLibrary (ver 5.3)
    Object: Application (_Application)
  2. 选中“Create Object”复选框,将下拉菜单选到“Create New”
  3. 激活“Call Method or Access Property”
  4. 选上“Call Method”
  5. 在右边的下拉菜单里选择“Quit”方法(method)
  6. 点击 OK

当序列执行到这一步的时候,LabVIEW就会关闭了。

注意:如果你没有安装LabVIEW 7.0,Ausomation Server就设为你正在使用的LabVIEW版本。这个方法对于LabVIEW 7.0以外的版本也是适用的。

相关链接:

附件:





报告日期: 07/18/2003
最近更新: 07/31/2003
文档编号: 2ZHA1CY6