01-19-2018 06:11 AM
Hi,
I have a reference(generated after calling .net dll in labview ) in Teststand simple user interface and I need to set this value to object reference of the teststand.
How to this in simple user interface code. For more understanding please read the below example.
Ex: suppose if we want set the numeric or string value from userinteraface, we will use GetvalNum or GetValString method of properyobject class. Similary how can I set the reference value in propertyobject class.
Regards,
Anand
01-19-2018 09:11 AM
So you have a reference to a .NET object, but what do you mean by this?
@AnandR wrote:
....I need to set this value to object reference of the teststand.
What kind of object is this a reference to? If it's a TestStand object, you can set the value using an expression. If this is a .NET object, you'll need to use a .NET step to call a method of the appropriate class on that object.
-Trent
01-21-2018 06:46 AM
Hi Trent,
The reference is of .net object type. I have created this inside Teststand simple user interface. I have to pass this reference to teststand and save it for future use(means need to use in some steps of teststand). Which teststand variable help me to hold .Net object reference and how to pass this to teststand from simple user interface .
Regards,
Anand
01-22-2018
09:32 AM
- last edited on
10-17-2025
11:54 AM
by
Content Cleaner
You'll need to have some way to get access to SequenceContext from the UI, and then put the reference in a variable. For example, you could use a synchronous UI message to send SequenceContext from the Execution to the UI, and then put the .NET reference in a variable before returning to the execution.
Using TestStand User Interface Messages (UI Messages)