NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

error with more than 63 function parameters

Me again,

 

I have to test a function with more than 63 Function Parameters...

 

Teststand works fine for me till 63 Parameters, but if i add one more in my IDL TestStand throws this Exception:

 

"This function does not have parameter information in the DLL or uses types not recognized by TestStand"

 

I don't use other Types than in Functions which work correctly

 

 

 

Is there a Limit to the Number of Parameters?

 

 

using  Microsoft Visual Studio 2010 and Teststand 2012

0 Kudos
Message 1 of 6
(4,006 Views)

There might very well be some sort of limitation. Either in Visual Studio or TestStand. Usage of such a large number of parameters is pretty uncommon. You can probably work around it by passing your parameters as a struct or an array instead of passing each parameter individually. Or, if the problem is specific to type library use, you could try not having a type library and see if you can then call it. TestStand can automatically get most of the parameter type info from Visual Studio created C++ dlls without a type library (though you can't get parameter names that way). If you discover more info about this issue, like whether or not it's specific to type library usage, please let us know. I've recorded this issue in our tracking database for further investigation.

 

-Doug

0 Kudos
Message 2 of 6
(3,996 Views)

It really seems to be an Type Library Problem.. I just deleted my 3 functions with more than 63 parameters in my .def and .idl file, instead i set " __declspec(dllexport)" in the header.

 

The Functions appear in Teststand without any error, but accourdingly without parameter names!

 

0 Kudos
Message 3 of 6
(3,972 Views)

I found a limitation of 63 parameters in TestStand's type library reading code. I have logged the issue in our tracking database to consider changing in a future version of TestStand.

 

-Doug

Message 4 of 6
(3,964 Views)

thanks dug, also if it is not usual to use so much parameter arguments!

 

I will think about a workaround!

0 Kudos
Message 5 of 6
(3,960 Views)

WOW,

 

good to know that limitation is set to 63.

If i am using more than 5 parameters i always lose the track

on TS and IDE as well.

 

Regards 

Juergen

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 6 of 6
(3,943 Views)