07-15-2009 07:37 PM
I've created an 'Empty' Array (i.e. autosizing) in TestStand.
I'd like to pass this - or a reference to it - to a C# DOTNET DLL, so that the DLL can add to the array.
I saw that the examples folders have a lack of .NET examples with arrays, and wondered if this can be done yet.
Thanks,
Ronnie
07-16-2009
05:37 PM
- last edited on
06-26-2024
09:43 AM
by
Content Cleaner
Believer,
You can pass arrays to .NET assemblies using the .NET adapter, but unfortunately you can not pass an empty array, as documented in the TestStand 4.2.x known issues page here: https://www.ni.com/en/support/documentation/bugs/09/archived--teststand-4-2-x-known-issues.html . This is a known issue that the developers are looking at possibly including in a future version of TestStand. A workaround would be to pass an array with one element in it to your code, then remove that element before adding to the array.
07-16-2009 05:40 PM
Thanks Eric. I wasn't sure if I could pass an array with dimensions already defined, and then still add to it.
I'll give it a try.
Thanks again,
Ronnie