NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

.net Object reference Value

Hi,

 

I just ran by this thread. As almost a year passed since this was published I was wondering if TS 2010 version has any kind of .NET Object viewing.

Even simple things like viewing List<string> Objects returned by a .NET function would be helpfull.

0 Kudos
Message 11 of 13
(967 Views)

Individual string values will show up if you store a reference to a .NET string in an object reference variable, but for a List<String> it will only show the typename (i.e. List<String>). One thing you could do is create a new class derived from List<String> that overrides ToString() (it's a virtual method) and returns a string showing all of the values, then they will be displayed in the TestStand variables view. Or you could just debug into a code module which returns or takes this list and look at it in visual studio.

 

Hope this helps,

-Doug

0 Kudos
Message 12 of 13
(954 Views)

Ok, thanks. I am using an existing .NET library, I will need to build a wrapper around it.

 

Thanks,

Orly

0 Kudos
Message 13 of 13
(946 Views)