Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

Can TestStand Call 64-Bit Code Modules?

Primary Software: TestStand
Primary Software Version: 4.2.1
Primary Software Fixed Version: N/A
Secondary Software: N/A

Problem:
I would like to call 64-bit VIs, DLLs, or .NET assemblies from TestStand. Can TestStand call 64-bit code modules?

Solution:
TestStand is a 32-bit application and thus subject to the limitation that 32-bit applications cannot execute 64-bit code (64-bit applications also cannot execute 32-bit code). Until a 64-bit version of TestStand is available, you will not be able to call 64-bit code modules from TestStand by default using the traditional TestStand methods. You can, however, implement workarounds taking advantage of inter-process communication, that allow a 32-bit TestStand process to call into a separate 64-bit process and execute 64-bit code. National Instruments has identified a few potential workarounds for calling 64-bit code modules from 32-bit versions of TestStand. Examples of these workarounds are provided in this article below. If you have further questions regarding TestStand calling 64-bit code modules, please contact National Instruments Support.

Note: All examples listed below contain sequence files that can be opened in TestStand 4.0 and newer versions of TestStand, however, the LabWindows/CVI ActiveX Server example and the ATL COM Server example will need to be run in TestStand 4.2 (or a newer version) in order for the 64-bit servers to be available in the TestStand ActiveX/COM Adapter. If you need to use these two examples in a TestStand version previous to TestStand 4.2, please contact National Instruments Support, but keep in mind that the earliest version of TestStand officially supported on Windows 7 x64 operating systems is TestStand 4.2.1.

Calling 64-bit LabVIEW VIs
For information on calling VIs created in LabVIEW 64-bit from TestStand, please visit KnowledgeBase 50O9851O: Does TestStand support calling VIs using LabVIEW 64-Bit?

Calling 64-bit .NET Assemblies via .NET Remoting
Download the attached example: TestStand Calling 64-Bit Assembly Using .NET Remoting.zip.

Be sure to read the ReadMe.txt file provided in the example zip file for an explanation of how this example is implemented. Once you’ve looked through the ReadMe, run the MainSequence of the Test DNRemoting 64-Bit Assembly Call.seq sequence file.

Calling 64-bit C DLLs via a LabWindows/CVI ActiveX Server
Download the attached example: TestStand Calling 64-Bit C DLL Using CVI ActiveX Server.zip.

Be sure to read the ReadMe.txt file provided in the example zip file for an explanation of how this example is implemented. Once you’ve looked through the ReadMe, register the ActiveX Server (instructions in the ReadMe) and run the MainSequence of the Call 64Bit Code.seq sequence file.

Calling 64-bit C/C++ DLLs via an ATL COM Server
Download the attached example: TestStand Calling 64-Bit C or C++ DLL Using COM Server.zip.

Be sure to read the ReadMe.txt file provided in the example zip file for an explanation of how this example is implemented. Once you’ve looked through the ReadMe, register the COM Server (instructions in the ReadMe) and run the MainSequence of the Call 64Bit Code From COM Server.seq sequence file.

Related Links:

Attachments:

TestStand Calling 64-Bit Assembly Using .NET Remoting.zip

TestStand Calling 64-Bit C DLL Using CVI ActiveX Server.zip

TestStand Calling 64-Bit C or C++ DLL Using COM Server.zip






Report Date: 01/31/2012
Last Updated: 02/01/2012
Document ID: 5TUCSLXU

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit