NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I access the data that is stored in a .NET object in TestStand

I have several .NET dlls that I am using in my current TestStand application.  One of them looks at a XML file, parses it and provides information back to the user about the setup information.  One of the method calls for this dll is a method to obtain the UTM location of a device

 

public bool GetUTMData(string layoutID, out utm_coordinate utmData)
        {
            return m_proxy.GetUTMLocation(out utmData, layoutID);           
           
        }

 

 utm_coordinate is a class

 

Below are two screen captures of my TestStand sequence.  The first image I am instantiating the setup client dll.  The second image I am calling the GetUTMData method to provide me the UTM location.  The UTM data is stored in the utmData object reference.  My question is how do I access the individual pieces of data stored in utmData?

 

 

 

instantiateGridSetup.PNG

 

GetUTMData.PNG

0 Kudos
Message 1 of 2
(2,954 Views)

Matt,

 

You may have to do some modification to your DLL to get the information you are looking for.  If the members of the utm_coordinate class are exposed through the DLL as properties, you can use another .NET Action step and use the object reference you received from this step to access the properties of the class.  If they are not exposed, you need to add public properties to the utm_coordinate class to expose those variables.  Then you can put down another .NET Action step, enter the stored object reference (recieved from the GetUTMData method) as the Object Reference, set the Class to "utm_coordinate", change the "Do Not Call" dropdown to "Get Property" and select the property from the dropdown next to "Get Property".

Eric B.
National Instruments
0 Kudos
Message 2 of 2
(2,936 Views)