NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

DLL in TestStand

Hi,
 
       I am having a DLL that is returning a pointer to character. Is there any provision to receive that pointer in TestStand. I am using this DLL as an adapter in TestStand. While the DLL is getting attached, TestStand is not recognizing the prototype of the DLL and also TestStand is not returning other than numeric and boolean.
 
        Looking for help !!!
 
Thanks in advance,
Vivek
0 Kudos
Message 1 of 3
(3,223 Views)
Hi Vivek,

If the parameter does not show up in TestStand, you can click on the "Add Parameter" button to add it. Next, select "String" from the "Category" dropdown, and "C String (const)" from the "Type" dropdown. I hope this helps.

Regards,

Ebele O.
National Instruments
0 Kudos
Message 2 of 3
(3,173 Views)

You cannot return a string as the return value of a function to TestStand, but you can return a string as a char buffer parameter.

Declare your function as follows:

void __declspec(dllexport) Read(char data[])
{
    strcpy(data, "Hello");
}

0 Kudos
Message 3 of 3
(3,157 Views)