使用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.
The Adaptor Configuration dialog box appears, in which you can change settings that apply to each adapter.
The Configuration dialog box for the adapter appears.
For LabWindows/CVI, select Execute Steps in an External Instance of LabWindows/CVI.
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.
- In TestStand, select Configure»Adapters...

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

The Configuration dialog box for the adapter appears.
- For LabVIEW, select LabVIEW Development System and specify which version. If you want to execute 32-bit VIs, select Use Active 32-bit Version.

For LabWindows/CVI, select Execute Steps in an External Instance of LabWindows/CVI.

- 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