Using 64-bit TestStand to Execute 32-bit LabVIEW VIs or Code Modules

Updated Apr 17, 2018

Reported In

Software

  • TestStand

Issue Details

I am using 64-bit TestStand to execute my test sequences, but I have LabVIEW VIs created in a 32-bit version of LabVIEW that I would like to use in my sequence. How can I call 32-bit VIs from 64-bit TestStand?

Solution

Due to an operating system-level limitation, 64-bit processes are unable to directly execute 32-bit code. Since 64-bit TestStand is a 64-bit process, it is unable to directly execute 32-bit LabVIEW VIs and instead must execute the VIs out-of-process. There are two primary methods of executing VIs out-of-process:
 
  • Using the LabVIEW Development System adapter setting
  • Using a remote sequence call

Execute VIs out-of-process using the LabVIEW Development System:
Since the LabVIEW Development System is a separate process from TestStand, it is possible to use a 32-bit version of the LabVIEW Development System to execute 32-bit VIs from 64-bit TestStand. Complete the following steps to configure the LabVIEW adapter to execute VIs in the 32-bit LabVIEW Development System:
 
  1. Navigate to Configure » Adapters...
  2. Select the LabVIEW adapter and click the Configure button.
  3. Click the LabVIEW Development System radio button and click the Use Active 32-bit Version radio button.

The caveat to this approach is that all LabVIEW VIs in the test sequence will execute in the 32-bit LabVIEW Development System. Individual VIs can, however, be configured to always execute using the 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. You can learn more about this setting from the LabVIEW Advanced Settings Window page from the TestStand Help.

Execute a 32-bit TestStand Sequence Using a Remote Sequence Call:
You can use remote sequence execution to call a sequence in 32-bit TestStand from a sequence executing in 64-bit TestStand on the same computer. To learn more about this approach, please see Executing Cross-Bitness Sequence Calls in TestStand.
 

WAS THIS ARTICLE HELPFUL?

Not Helpful