使用64位TestStand調用32位LabVIEW代碼模塊


使用64位TestStand調用32位LabVIEW代碼模塊

Software

  • TestStand
  • LabVIEW
  • LabWindows/CVI
  • How can I call 32-bit LabVIEW VIs from 64-bit TestStand?
  • How can I configure my code modules to execute on separate processes from my TestStand process?
The steps below show you how to configure LabVIEW and LabWindows™/CVI™ code adapters to execute code modules out-of-process. This is accomplished by configuring the adapter to use the LabVIEW Development System or the LabWindows/CVI development environment to execute code modules, which allows the code modules to access a separate memory space from the TestStand process itself.

Since the LabVIEW Development System is a separate process from TestStand, it is also possible to use a 32-bit version of the LabVIEW Development System to execute 32-bit VIs from 64-bit TestStand.
 
  1. In TestStand, select Configure»Adapters...

The Adaptor Configuration dialog box appears, in which you can change settings that apply to each adapter.
  1. Enable the Selected button next to the adapter you want to configure. Click the Configure… button.

The Configuration dialog box for the adapter appears.
  1. For LabVIEW, select LabVIEW Development System and specify which version. If you want to execute 32-bit VIs, select Use Active 32-bit Version.
Note: By selecting Use Active 32-bit Version, all LabVIEW VIs in the test sequence will execute in the 32-bit LabVIEW Development System. However, individual VIs can be configured to Always Run VI In LabVIEW Run-Time Engine, which would allow a 64-bit VI to be executed in-process during the execution. This setting can be configured on the Advanced Settings dialog of a step with a LabVIEW code module.
 

For LabWindows/CVI, select Execute Steps in an External Instance of LabWindows/CVI.
  1. Click OK. You have now configured the Adapter to execute out-of-process.


如果你不想改變適配器配置,參考如下:

軟件

  • TestStand
  • LabVIEW

問題詳述

我已經在64位 TestStand 中創建了一個序列,並嘗試用其調用32位 LabVIEW 代碼模塊。將適配器設置為32位 LabVIEW 運行引擎時,我無法運行序列,也無法更改代碼模塊的版本。

解決方案

最好能事先計划好,確保使用的代碼模塊和測試管理軟件的位數相同,但這並不是每次都可能。

使用32位的 NI TestStand 可以運行一個保存為64位的序列。
因此,如果您的應用程序允許,可以使用32位 TestStand 運行保存為64位的 TestStand 序列。這將使您能夠使用32位 TestStand 的運行時引擎適配器運行任何代碼模塊。
 
 
參考:https://knowledge.ni.com/KnowledgeArticleDetails?id=kA03q000000YGjoCAG&l=zh-CN


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM