NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to automatically load function parameters when editing c/c++ DLL call?

I built a DLL in CVI and is used in TestStand, I want this DLL to have the ability to automatically load function parameters after specifying Module pathname and function name in "Edit C/C++ DLL Call" dialog? How can I do it?
0 Kudos
Message 1 of 3
(3,467 Views)
You must have a type library for your DLL to load the parameters automatically.  This can be found in the Configuration >>Target Settings >> Type Library
 
If you are using a CVI based DLL, you can also use the LabWindows/CVI Adapter for additional debugging capabilities.
 
Allen P.
NI
 
0 Kudos
Message 2 of 3
(3,459 Views)
Staring with CVI 7.1 and TestStand 3.1 you do not need a type library for TestStand to load parameters automatically. Just make sure you declare your exported functions with the __declspec(dllexport) modifier as in the following code:
 
__declspec(dllexport) void fun(void)
{
}
 
0 Kudos
Message 3 of 3
(3,443 Views)