Quantcast
Channel: NI TestStand topics
Viewing all articles
Browse latest Browse all 6555

C# DLL struct

$
0
0

I am trying to demonstrate how TestStand can retrieve data from a  C# DLL method returning an array of type struct.

I created a custom type in TestStand that matched the signature .NET struct but I keep running into the same error:

"No corresponding subproperty in argument 'Locals.newarray<Array Element prototype>' of type 'Row' for field '<mystring>k_BackingField of .NET struct 'TestStandObjectArray.Row'."

I have set the ".NET Struct Passing" tab to "Allow Objects of this Type to be Passed as .NET Structs".

I have also tried "Exclude when Passing Struct" on this tab as well.

I have attached my DLL, CS file, TestStand sequence, and TestStand types.ini file.

Any tips or help would be appreciated.


Viewing all articles
Browse latest Browse all 6555

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>