NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Populate TestStand Array in .NET DLL

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

 

CropperCapture[3].Png

TestStand 4.2.1, LabVIEW 2009, LabWindows/CVI 2009
0 Kudos
Message 1 of 3
(3,555 Views)

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.

Eric B.
National Instruments
Message 2 of 3
(3,535 Views)

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

TestStand 4.2.1, LabVIEW 2009, LabWindows/CVI 2009
0 Kudos
Message 3 of 3
(3,533 Views)