NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How can i write/read (set/get) object properties of .Net-DLL-Teststep

Hello,

i have a custom C# DLL with some variables that can be read and written using the getter/setter functions. This is working fine in a c# console program.

 

public class xxxx: yyyyy
{
public string myVariable { get; set; }
}

 

var myObject = x.y.CreateObject;
myObject .myVariable = "data"; //setter
string readback = myObject.myVariable; //getter

 

Doing the same in Teststand, then i have no data in the readback variable.

 

So my question is: What do i have to do that i can set/get properties in the created object and read them back?

 

Thanks

Download All
0 Kudos
Message 1 of 2
(982 Views)