C/C++ DLL Adapter

Use the C/C++ DLL Adapter to call C/C++ functions and static C++ class methods in a DLL with a variety of parameter types. You can call global static methods or static class methods in C++ DLLs. You can create the DLL code module with LabWindows/CVI, Microsoft Visual Studio, or any other environment that can create a C/C++ DLL, including LabVIEW-built shared libraries. Use the C/C++ DLL Adapter Configuration dialog box to configure the C/C++DLL Adapter.

When you specify a module for a step the TestStand Sequence Editor displays the C/C++ DLL Module tab on the Step Settings pane to specify a C/C++ DLL Adapter module call, to specify the source code associated with the module call, and to create and edit C/C++ code modules directly from TestStand. TestStand User Interfaces launch the Edit C/C++ DLL Call dialog box.

For DLLs built with LabWindows/CVI, you must use the LabWindows/CVI Adapter to create and edit code modules directly from TestStand. The LabWindows/CVI Adapter provides full integration with the LabWindows/CVI ADE for debugging. You can also use a text editor to create and edit code directly from TestStand.

(Windows 10/8.1/7) When you launch Visual Studio from TestStand, Visual Studio runs with the same privileges you used to run TestStand. If you launch TestStand while logged in as a user with standard privileges and then launch Visual Studio from TestStand, you cannot execute tasks in Visual Studio that require administrator privileges.
Note   (64-bit TestStand) 64-bit TestStand does not support Measurement Studio C++ MFC data types because no 64-bit version of Measurement Studio C++ MFC exists.

See Also

Adapter and Code Module Support for 64-bit TestStand

Bitness-Conditional Code for DLLs with Different 32-bit Interfaces and 64-bit Interfaces

C/C++ DLL Adapter Configuration dialog box

C/C++ DLL and LabWindows/CVI DLL Support for 64-bit TestStand

Edit C/C++ DLL Call dialog box

C/C++ DLL Module Tab

Loading Subordinate DLLs

Locating the Correct DLL in 32-bit TestStand and 64-bit TestStand

Mapping Parameters

Organizing Test Program Files with LabVIEW-Built Shared Libraries

Pointers and Handles in 32-bit TestStand and 64-bit TestStand

Programming with the TestStand API in Microsoft Visual C++