NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Call CVl DLL parameter issue

Hi,
I call a CVI dll from testsand, I can step into dll and find all data  is correct, but I cann't get data from testsand.
 
function declare :
void __stdcall  Get_Version (unsigned int short *wFirmVer,unsigned int short *wUIVer,unsigned int short *wCountryCode, unsigned char *respons,unsigned char *pbSubunitID);
And testsand call info in attached file .
please help me to analysis it ,thanks .
Sonic

Diffrent Strokes for Different Folks
0 Kudos
Message 1 of 2
(2,964 Views)
It appears that you have specified some of the parameters incorrectly in TestStand. The wFirmVer, wUIVer and wCountryCode parameters are declared as short ints (16-bit integers) in the source code but are shown as 8-bit integers in TestStand.

What versions of TestStand and CVI are you using? If you are using CVI 7.1 or greater and TestStand 3.1 or greater, TestStand will get the type information directly from the CVI DLL and you won't have to manually specify the types of the parameters in TestStand.
0 Kudos
Message 2 of 2
(2,945 Views)