NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Passing .NET nested structs(array) to Teststand

Hi,

i am familiar with the mechanism of passing data messages from a C# .NET assembly ino the teststand (i.e. dont use classes but use structs - and pass this structs by reference into the teststand) - but now i have a struct containing an array of structs - i get some errormessage telling me that the array is empty and should contain at least one none empty element.

 

Any ideas ?

Rainer

0 Kudos
Message 1 of 3
(3,558 Views)

Hi Rainer,

 

please look at the following KB:

Why Can't I Return a Value From My .NET Code Module to an Array in TestStand?

http://digital.ni.com/public.nsf/allkb/6E4F445DD3300CC1862576730073E7C4?OpenDocument

 

 

Best regards,

0 Kudos
Message 2 of 3
(3,539 Views)

Rainer -

 

You may be running into one of the TestStand Known Issues (51390) that you cannot pass an empty array as a parameter to a .NET Code Module.

 

Are you passing your struct of array of structs as a parameter or are you attempting to store the struct returned in the return value?

 

Hope this helps.

Manooch H.
National Instruments
0 Kudos
Message 3 of 3
(3,535 Views)